Changeset 1761 for inundation/validation/LWRU2
- Timestamp:
- Aug 25, 2005, 10:06:22 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/validation/LWRU2/lwru2.py
r1753 r1761 74 74 from pyvolution.shallow_water import Domain, Reflective_boundary,\ 75 75 File_boundary, Transmissive_Momentum_Set_Stage_boundary 76 from pyvolution.mesh_factory import rectangular 76 from pyvolution.mesh_factory import rectangular_cross 77 77 from pyvolution.pmesh2domain import pmesh_to_domain_instance 78 78 from Numeric import array, zeros, Float, allclose … … 91 91 ####################### 92 92 # Domain 93 93 94 94 if read_mesh is True: 95 95 print 'Creating domain from', filenames.mesh_filename … … 101 101 102 102 103 104 else: 103 104 else: 105 105 print 'Creating regular mesh' 106 106 N = 100 107 points, vertices, boundary = rectangular (N, N/5*3,107 points, vertices, boundary = rectangular_cross(N, N/5*3, 108 108 len1=5.448, len2=3.402) 109 109 print 'Creating domain' 110 110 111 111 #domain = Domain(points, vertices, boundary) 112 112 domain = cache(Domain, (points, vertices, boundary)) … … 135 135 verbose = True, 136 136 use_cache = True) 137 137 138 138 domain.set_quantity('friction', 0.0) 139 139 domain.set_quantity('stage', 0.0) … … 157 157 #Set boundary conditions 158 158 if read_mesh is True: 159 domain.set_boundary({'wave': Bts, 'wall': Br}) 160 else: 159 domain.set_boundary({'wave': Bts, 'wall': Br}) 160 else: 161 161 domain.set_boundary({'left': Bts, 'right': Br, 'bottom': Br, 'top': Br}) 162 162
Note: See TracChangeset
for help on using the changeset viewer.