Changeset 3423
- Timestamp:
- Jul 25, 2006, 4:57:26 PM (19 years ago)
- Location:
- development/dam_2006
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
development/dam_2006/project.py
r3421 r3423 38 38 #community_scenario = gaugedir + 'community_onslow.csv' 39 39 #gaugetimeseries = gaugedir + 'onslow' 40 depth_filename = 40 depth_filename = outputtimedir + "depth.csv" 41 velocity_filename = outputtimedir + "velocity.csv" 41 42 42 43 -
development/dam_2006/run_dam.py
r3421 r3423 27 27 from pyvolution.util import Screen_Catcher 28 28 from pyvolution.region import Set_region 29 from fit_interpolate.interpolate import interpolate_sww2csv 30 import create_mesh 29 31 30 32 # Application specific imports 31 33 import project # Definition of file names and polygons 32 import create_mesh33 34 34 35 def main(): … … 43 44 print'output dir', project.outputtimedir 44 45 46 #FIXME this isn't working 45 47 #normal screen output is stored in 46 48 screen_output_name = project.outputtimedir + "screen_output.txt" … … 53 55 create_mesh.generate(project.mesh_filename, 54 56 0.75, 55 is_course=True) # this creates the mesh56 #is_course=False) # this creates the mesh57 #is_course=True) # this creates the mesh 58 is_course=False) # this creates the mesh 57 59 58 60 head,tail = path.split(project.mesh_filename) … … 106 108 t0 = time.time() 107 109 108 for t in domain.evolve(yieldstep = 0.1, finaltime = 15):110 for t in domain.evolve(yieldstep = 0.1, finaltime = 25): 109 111 domain.write_time() 110 112 … … 122 124 # Calc gauge info 123 125 #------------------------------------------------------------------------- 124 #interpolate_sww2csv(project.basename +".sww",125 #points,126 # "depth.csv",127 # "velocity.csv")126 interpolate_sww2csv(project.outputtimedir + project.basename +".sww", 127 points, 128 project.depth_filename, 129 project.velocity_filename) 128 130 129 131 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.