Changeset 5458
- Timestamp:
- Jul 2, 2008, 11:51:19 AM (17 years ago)
- Location:
- anuga_work/development/boxingday08
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified anuga_work/development/boxingday08/project.py ¶
r5419 r5458 77 77 #read in polyline boundary 78 78 from anuga.shallow_water.data_manager import urs2sts,create_sts_boundary 79 base_name='polyline' 79 urs_name='polyline' 80 #base_name=urs_name 81 tide=0.35 82 base_name='tide_polyline' 83 #base_name='most_polyline' 80 84 import os 81 85 if os.path.exists(base_name+'.sts'): 82 86 print 'sts boundary file already created.' 83 87 else: 84 urs2sts(base_name,mean_stage=0.0,verbose=False) 88 print 'creatin sts file' 89 urs2sts(urs_name,base_name,mean_stage=tide,verbose=False) 85 90 86 91 order_filename='sts_order.txt' … … 118 123 mesh_elevname = 'phuket_mesh_elev' 119 124 boundary_most_in = dir+sep+'out' 120 boundary_most_out = dir+sep+'most_boundary_condition' 125 #boundary_most_out = dir+sep+'most_boundary_condition' 126 boundary_most_out = dir+sep+'tide_most_boundary_condition' 121 127 122 128 dir='mesh_polygons' … … 140 146 from pylab import plot,show,hold 141 147 bounding_polygon=ensure_numeric(bounding_polygon)#for plotting only 148 #boundary=ensure_numeric(boundary) 149 #plot(boundary[:,0],boundary[:,1],'o') 142 150 plot(bounding_polygon[:,0],bounding_polygon[:,1],'o') 143 151 plot(bounding_polygon[:,0],bounding_polygon[:,1]) -
TabularUnified anuga_work/development/boxingday08/run_boxingday_most.py ¶
r5442 r5458 143 143 #------------------------------------------------------------------------------ 144 144 145 tide = 0. 0145 tide = 0.35 146 146 domain.set_quantity('stage', tide) 147 147 domain.set_quantity('friction', 0.01) … … 187 187 'origin': domain.geo_reference.get_origin(), 188 188 'mean_stage': tide, 189 'zscale': 1 , #Enhance tsunami189 'zscale': 1.0, #Enhance tsunami 190 190 'fail_on_NaN': False, 191 191 'inverted_bathymetry': True}, … … 195 195 196 196 print 'Available boundary tags', domain.get_boundary_tags() 197 #Bf = File_boundary(project.boundary_most_out+'.sww',198 #domain, time_thinning=1, use_cache=True,verbose = True)197 Bf = File_boundary(project.boundary_most_out+'.sww', 198 domain, time_thinning=1, use_cache=True,verbose = True) 199 199 Br = Reflective_boundary(domain) 200 200 Bd = Dirichlet_boundary([tide,0.0,0.0]) 201 201 202 domain.set_boundary({'ocean': B d,202 domain.set_boundary({'ocean': Bf, 203 203 'otherocean': Bd, 204 204 'land': Br, -
TabularUnified anuga_work/development/boxingday08/run_boxingday_polyline.py ¶
r5442 r5458 46 46 #------------------------------------------------------------------------------ 47 47 48 #scenario = 'poor_simulation'49 scenario = 'good_simulation'48 scenario = 'poor_simulation' 49 #scenario = 'good_simulation' 50 50 51 51 if os.access(scenario, os.F_OK) == 0: … … 92 92 93 93 from Numeric import arange,allclose 94 #This needs to be done by the user. Not easy at the moment 94 95 boundary_tags={'ocean': arange(0,41).tolist(), 'otherocean': [41,44], 'land': [42,43]} 95 96 … … 145 146 #------------------------------------------------------------------------------ 146 147 147 tide = 0. 0148 tide = 0.35 148 149 domain.set_quantity('stage', tide) 149 150 domain.set_quantity('friction', 0.01) … … 165 166 # Setup boundary conditions 166 167 #------------------------------------------------------------------------------ 167 boundary_urs_in='data/boxing'168 168 boundary_urs_out=project.base_name 169 169
Note: See TracChangeset
for help on using the changeset viewer.