Changeset 6502
- Timestamp:
- Mar 13, 2009, 9:02:45 AM (16 years ago)
- Location:
- anuga_work/production/australia_ph2
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/LHI/run_model.py
r6491 r6502 80 80 # Reading the landward defined points, this incorporates the original clipping 81 81 # polygon minus the 100m contour 82 83 # NO LANDWARD BOUNDARY FOR ISLAND MODEL84 82 ##landward_boundary = read_polygon(project.landward_boundary) 85 83 … … 88 86 89 87 # Number of boundary segments 90 num_ocean_segments = len(event_sts) #- 188 num_ocean_segments = len(event_sts) - 1 91 89 # Number of landward_boundary points 92 90 num_land_points = 0 #file_length(project.landward_boundary) … … 94 92 # Boundary tags refer to project.landward_boundary 95 93 # 4 points equals 5 segments start at N 96 boundary_tags={ #'back': range(num_ocean_segments+1,97 #num_ocean_segments+num_land_points),98 #'side': [num_ocean_segments,99 #num_ocean_segments+num_land_points],94 boundary_tags={'back': range(num_ocean_segments+1, 95 num_ocean_segments+num_land_points), 96 'side': [num_ocean_segments, 97 num_ocean_segments+num_land_points], 100 98 'ocean': range(num_ocean_segments)} 101 99 … … 106 104 interior_regions=project.interior_regions, 107 105 mesh_filename=project.meshes, 108 use_cache= False,106 use_cache=True, 109 107 verbose=True) 110 108 print domain.statistics() … … 127 125 else: 128 126 IC = 0 129 domain.set_quantity('stage', IC, use_cache= False, verbose=True)127 domain.set_quantity('stage', IC, use_cache=True, verbose=True) 130 128 domain.set_quantity('friction', project.friction) 131 129 domain.set_quantity('elevation', 132 130 filename=project.combined_elevation+'.pts', 133 use_cache= False,131 use_cache=True, 134 132 verbose=True, 135 133 alpha=project.alpha) … … 155 153 default_boundary=Bd, 156 154 boundary_polygon=bounding_polygon_sts, 157 use_cache= False,155 use_cache=True, 158 156 verbose=True) 159 domain.set_boundary({'ocean': Bf}) 157 domain.set_boundary({'back': Br, 158 'side': Bd, 159 'ocean': Bf}) 160 160 161 161 elif project.wave == 'Tb': … … 163 163 verbose=True) 164 164 165 domain.set_boundary({'ocean': Tb}) 165 domain.set_boundary({'back': Br, 166 'side': Bd, 167 'ocean': Tb}) 166 168 else: 167 169 print 'No wave specified in project script (Bf or Tb)' -
anuga_work/production/australia_ph2/darwin/project.py
r6476 r6502 28 28 tide = 0 # difference between MSL and HAT 29 29 zone = 52 # specify zone of model 30 event_number = 7 1261# the event number or the mux file name30 event_number = 70906 # the event number or the mux file name 31 31 # contributing events: 17898 (Flores), 64977 (Seram), 70906 (Sumba_normal), 32 32 # 71261 (Timor_OTF) … … 34 34 friction=0.01 # manning's friction coefficient 35 35 starttime=0 # start time for simulation 36 finaltime= 1000 # final time for simulation36 finaltime=80000 # final time for simulation 37 37 38 38 # index is only used when wave = Tb … … 40 40 wave = 'Tb' # Bf (sts wave) Tb (index wave) 41 41 42 setup = ' trial' # This can be one of three values42 setup = 'final' # This can be one of three values 43 43 # trial - coarsest mesh, fast 44 44 # basic - coarse mesh
Note: See TracChangeset
for help on using the changeset viewer.