Changeset 4773 for anuga_validation/uq_flume_2007/run_dam.py
- Timestamp:
- Oct 31, 2007, 4:56:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/uq_flume_2007/run_dam.py
r4750 r4773 1 1 """Script for running a dam break simulation of UQ's dam break tank. 2 3 The simulation is based on the simulation Matt has presented and will 4 form part of the ANUGA validation paper. 5 6 i want to compare the stage at .4m and the velocity at .45m. 2 7 3 8 … … 33 38 def main(): 34 39 35 slope s = [0]36 friction s = [0.01] #can enter multiple frictions eg [0.00, 0.01]37 inital_depth s = [0.2] #can enter multiple initial depths eg [0.1, 0.2]38 gate_position s = [0.75]40 slope= 0 41 friction = 0.01 42 inital_depth = 0.2 43 gate_position = 0.75 39 44 40 scenario(0, 0.01, 0.02, 0.75)45 return scenario(slope, friction, inital_depth, gate_position) 41 46 42 47 … … 49 54 create_mesh.generate(project.mesh_filename, 50 55 gate_position, 51 is_course=True) # this creates the mesh52 #is_course=False) # this creates the mesh56 #is_course=True) # this creates the mesh 57 is_course=False) # this creates the mesh 53 58 54 59 head,tail = path.split(project.mesh_filename) … … 101 106 print 'finished' 102 107 103 points = [[0.4,0.2] ]108 points = [[0.4,0.2], [0.45,0.2]] 104 109 #------------------------------------------------------------------------- 105 110 # Calculate gauge info … … 108 113 interpolate_sww2csv( project.basename +".sww", 109 114 points, 110 project.depth_filename + '.csv',111 project.velocity_x_filename + '.csv',112 project.velocity_y_filename + '.csv')115 project.depth_filename , 116 project.velocity_x_filename, 117 project.velocity_y_filename ) 113 118 114 119
Note: See TracChangeset
for help on using the changeset viewer.