Changeset 3535 for development/dam_2006/run_dam.py
- Timestamp:
- Aug 29, 2006, 11:30:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/run_dam.py
r3533 r3535 26 26 # Application specific imports 27 27 import project # Definition of file names and polygons 28 28 29 29 30 def main(): … … 71 72 domain.set_quantities_to_be_stored(['stage', 'xmomentum', 'ymomentum']) 72 73 domain.set_minimum_sww_depth(0.01) 74 domain.set_store_vertices_uniquely(True) # for writting to sww 73 75 74 76 #------------------------------------------------------------------------- … … 88 90 domain.set_region('dam','stage',0.2, 89 91 location = 'unique vertices') 90 domain.set_region(Set_region('dam','stage',0.2, 91 location = 'unique vertices')) 92 domain.set_store_vertices_uniquely(True) # for writting to sww 92 #domain.set_region(Set_region('dam','stage',0.2, 93 # location = 'unique vertices')) 93 94 94 95 Br = Reflective_boundary(domain) 95 Bd = Dirichlet_boundary([0,0,0]) 96 Bd = Dirichlet_boundary([0,0,0]) # to drain the water out. 96 97 domain.set_boundary( {'wall': Br, 'edge': Bd} ) 97 98 … … 116 117 117 118 #------------------------------------------------------------------------- 118 # Calc gauge info119 # Calculate gauge info 119 120 #------------------------------------------------------------------------- 120 121 interpolate_sww2csv(project.outputtimedir + project.basename +".sww",
Note: See TracChangeset
for help on using the changeset viewer.