Changeset 5390
- Timestamp:
- Jun 4, 2008, 11:17:06 AM (17 years ago)
- Location:
- anuga_work/development/Hinwood_2008
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/Hinwood_2008/run_dam.py
r5370 r5390 205 205 return pro_instance 206 206 207 def set_z_origin_to_water_depth(seabed_coords): 208 offset = seabed_coords['offshore_water_depth'] 209 for x in seabed_coords.keys(): 210 if not x == 'offshore_water_depth': 211 seabed_coords[x][1] -= offset 212 return seabed_coords 207 213 #------------------------------------------------------------- 208 214 if __name__ == "__main__": 209 215 #slopes = [[-4.5,0.0],[0.0,0.0],[1.285,0.090],[16.1,.960]] 210 slope = {'xleft':[-4.5,0.0], 211 'xtoe':[0.0,0.0], 212 'xbeach':[1.285,0.090], 213 'xright':[16.1,.960]} 214 main( 'T1R5_boundary.tsm', 8, slope, 216 run_data_T1R5 = {'xleft':[-4.5,0.0], 217 'xtoe':[0.0,0.0], 218 'xbeach':[1.285,0.090], 219 'xright':[16.1,.960], 220 'offshore_water_depth':.4} 221 run_data_T1R5 = set_z_origin_to_water_depth(run_data_T1R5) 222 main( 'T1R5_boundary.tsm', 8, run_data_T1R5, 215 223 is_trial_run = True, 216 224 outputdir_name='Hinwood_low_stage_low_velocity_draft')
Note: See TracChangeset
for help on using the changeset viewer.