Changeset 7869 for trunk/anuga_core/source/anuga/shallow_water_balanced/test_swb_boundary_condition.py
 Timestamp:
 Jun 22, 2010, 5:52:28 PM (12 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/anuga_core/source/anuga/shallow_water_balanced/test_swb_boundary_condition.py
r7866 r7869 5 5 from math import pi, sqrt 6 6 import tempfile 7 8 import anuga 7 9 8 10 from anuga.config import g, epsilon … … 60 62 [30,30,30], [40,40,40]]) 61 63 62 D = Dirichlet_boundary([5, 2, 1])63 T = Transmissive_boundary(domain)64 R = Reflective_boundary(domain)64 D = anuga.Dirichlet_boundary([5, 2, 1]) 65 T = anuga.Transmissive_boundary(domain) 66 R = anuga.Reflective_boundary(domain) 65 67 domain.set_boundary({'First': D, 'Second': T, 'Third': R}) 66 68 … … 140 142 (0, 1): 'Internal'} 141 143 142 domain = Domain(points, vertices, boundary)144 domain = anuga.Domain(points, vertices, boundary) 143 145 domain.check_integrity() 144 146 … … 150 152 [30,30,30], [40,40,40]]) 151 153 152 D = Dirichlet_boundary([5, 2, 1])153 T = Transmissive_boundary(domain)154 R = Reflective_boundary(domain)154 D = anuga.Dirichlet_boundary([5, 2, 1]) 155 T = anuga.Transmissive_boundary(domain) 156 R = anuga.Reflective_boundary(domain) 155 157 domain.set_boundary({'First': D, 'Second': T, 156 158 'Third': R, 'Internal': None}) … … 192 194 [30,30,30], [40,40,40]]) 193 195 194 D = Dirichlet_boundary([5, 2, 1])195 T = Transmissive_stage_zero_momentum_boundary(domain)196 R = Reflective_boundary(domain)196 D = anuga.Dirichlet_boundary([5, 2, 1]) 197 T = anuga.Transmissive_stage_zero_momentum_boundary(domain) 198 R = anuga.Reflective_boundary(domain) 197 199 domain.set_boundary({'First': D, 'Second': T, 'Third': R}) 198 200 … … 270 272 # 271 273 # Time dependent boundary 272 Bt = Time_boundary(domain=domain, f=lambda t: [t, 0.0, 0.0])273 274 Br = Reflective_boundary(domain) # Reflective wall274 Bt = anuga.Time_boundary(domain=domain, f=lambda t: [t, 0.0, 0.0]) 275 276 Br = anuga.Reflective_boundary(domain) # Reflective wall 275 277 276 278 domain.set_boundary({'left': Bt, 'right': Br, 'top': Br, 'bottom': Br}) … … 326 328 327 329 # Boundary conditions 328 Br = Reflective_boundary(domain1)329 Bd = Dirichlet_boundary([0.3,0,0])330 Br = anuga.Reflective_boundary(domain1) 331 Bd = anuga.Dirichlet_boundary([0.3,0,0]) 330 332 domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br}) 331 333 … … 370 372 371 373 # Boundary conditions 372 Br = Reflective_boundary(domain2)373 Bf = Field_boundary(domain1.get_name() + '.sww', domain2)374 Br = anuga.Reflective_boundary(domain2) 375 Bf = anuga.Field_boundary(domain1.get_name() + '.sww', domain2) 374 376 domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf}) 375 377 domain2.check_integrity() … … 433 435 434 436 # Boundary conditions 435 Br = Reflective_boundary(domain1)436 Bd = Dirichlet_boundary([0.3,0,0])437 Br = anuga.Reflective_boundary(domain1) 438 Bd = anuga.Dirichlet_boundary([0.3,0,0]) 437 439 domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br}) 438 440 … … 498 500 499 501 # Boundary conditions 500 Br = Reflective_boundary(domain2)501 Bf = Field_boundary(domain1.get_name() + '.sww',502 Br = anuga.Reflective_boundary(domain2) 503 Bf = anuga.Field_boundary(domain1.get_name() + '.sww', 502 504 domain2, verbose=False) 503 505 domain2.set_boundary({'right':Br, 'bottom':Br, 'diagonal':Bf}) … … 605 607 606 608 # Boundary conditions 607 Br = Reflective_boundary(domain1)608 Bd = Dirichlet_boundary([0.3, 0, 0])609 Br = anuga.Reflective_boundary(domain1) 610 Bd = anuga.Dirichlet_boundary([0.3, 0, 0]) 609 611 domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br}) 610 612 … … 671 673 672 674 # Boundary conditions 673 Br = Reflective_boundary(domain2)674 Bf = Field_boundary(domain1.get_name() + '.sww',675 Br = anuga.Reflective_boundary(domain2) 676 Bf = anuga.Field_boundary(domain1.get_name() + '.sww', 675 677 domain2, mean_stage=mean_stage, verbose=False) 676 678 … … 761 763 762 764 # Create shallow water domain 763 domain1 = Domain(points, vertices, boundary)765 domain1 = anuga.Domain(points, vertices, boundary) 764 766 765 767 domain1.reduction = mean … … 784 786 785 787 # Boundary conditions 786 Br = Reflective_boundary(domain1)787 Bd = Dirichlet_boundary([0.3, 0, 0])788 Br = anuga.Reflective_boundary(domain1) 789 Bd = anuga.Dirichlet_boundary([0.3, 0, 0]) 788 790 domain1.set_boundary({'left': Bd, 'top': Bd, 'right': Br, 'bottom': Br}) 789 791 … … 846 848 847 849 # Boundary conditions 848 Br = Reflective_boundary(domain2)849 Bf = Field_boundary(domain1.get_name() + '.sww',850 Br = anuga.Reflective_boundary(domain2) 851 Bf = anuga.Field_boundary(domain1.get_name() + '.sww', 850 852 domain2, mean_stage=1, verbose=False) 851 853
Note: See TracChangeset
for help on using the changeset viewer.