Changeset 4044
- Timestamp:
- Nov 29, 2006, 2:26:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/dam_2006/run_dam.py
r4033 r4044 31 31 32 32 33 def main( ):33 def main(friction): 34 34 35 35 #-------------------------------------------------------------------------- … … 47 47 myid = 0 48 48 numprocs = 1 49 start_screen_catcher(project.outputtimedir, myid, numprocs)49 #start_screen_catcher(project.outputtimedir, myid, numprocs) 50 50 51 51 print 'USER: ', project.user … … 54 54 #------------------------------------------------------------------------- 55 55 56 gate_position = 2.056 gate_position = 0.85 57 57 create_mesh.generate(project.mesh_filename, 58 58 gate_position, … … 90 90 91 91 domain.set_quantity('stage', elevation_tilt) 92 domain.set_quantity('friction', 0.03)92 domain.set_quantity('friction', friction) 93 93 domain.set_quantity('elevation',elevation_tilt) 94 94 95 95 print 'Available boundary tags', domain.get_boundary_tags() 96 domain.set_region('dam','stage',0. 15,96 domain.set_region('dam','stage',0.20, 97 97 location = 'unique vertices') 98 98 #domain.set_region(Set_region('dam','stage',0.2, … … 108 108 t0 = time.time() 109 109 110 for t in domain.evolve(yieldstep = 0.0 5, finaltime = 10):110 for t in domain.evolve(yieldstep = 0.01, finaltime = 30): 111 111 domain.write_time() 112 112 … … 118 118 [gate_position - 0.45,0.2], 119 119 [gate_position - 0.35,0.2], 120 [gate_position - 0.25,0.2], 121 [0.55,0.2] 120 [gate_position - 0.25,0.2] 122 121 ] 123 122 … … 133 132 #------------------------------------------------------------- 134 133 if __name__ == "__main__": 135 main( )134 main(0.000) 136 135
Note: See TracChangeset
for help on using the changeset viewer.