Changeset 6321
- Timestamp:
- Feb 12, 2009, 3:21:39 PM (16 years ago)
- Location:
- anuga_work/production/patong
- Files:
-
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/patong/project.py
r6271 r6321 92 92 93 93 # gauges - used in get_timeseries.py 94 gauge_name = ' patong.csv'94 gauge_name = 'gauges.csv' 95 95 96 96 # BOUNDING POLYGON - used in build_boundary.py and run_patong.py respectively … … 98 98 # Check the run_patong.py for boundary_tags 99 99 # thinned ordering file from Hazard Map: format is index,latitude,longitude (with title) 100 order_filename = ' thinned_boundary_ordering.csv'100 order_filename = 'urs_order.csv' 101 101 #landward bounding points 102 landward = 'landward_bounding_polygon .csv'102 landward = 'landward_bounding_polygon2.csv' 103 103 104 104 #------------------------------------------------------------------------------ … … 107 107 # Output filename for elevation 108 108 # this is a combination of all the data (utilisied in build_boundary) 109 combined_name ='patong_combined_elevation '109 combined_name ='patong_combined_elevation_large' 110 110 combined_smaller_name = 'patong_combined_elevation_smaller' 111 111 … … 174 174 175 175 # Initial bounding polygon for data clipping 176 poly_all = read_polygon(polygons_dir+' poly_all.csv')176 poly_all = read_polygon(polygons_dir+'bounding_polygon.csv') 177 177 res_poly_all = 150000*res_factor 178 178 -
anuga_work/production/patong/run_patong.py
r6264 r6321 33 33 from anuga.interface import create_sts_boundary 34 34 from anuga.interface import csv2building_polygons 35 from file_length import file_length 35 36 36 37 from anuga.caching import cache … … 80 81 # Counting segments 81 82 N = len(urs_bounding_polygon)-1 82 83 # boundary tags refer to project.landward 4 points equals 5 segments start at N 84 boundary_tags={'back': [N+1,N+2,N+3], 'side': [N,N+4], 'ocean': range(N)} 83 # Number of landward_boundary points 84 M = file_length(project.landward_dir) 85 86 # Boundary tags refer to project.landward_boundary 87 # 4 points equals 5 segments start at N 88 boundary_tags={'back': range(N+1,N+M), 89 'side': [N,N+M], 90 'ocean': range(N)} 85 91 86 92 #-------------------------------------------------------------------------- … … 176 182 177 183 Br = Reflective_boundary(domain) 178 #Bd = Dirichlet_boundary([project.tide,0,0])179 Bs = Transmissive_stage_zero_momentum_boundary(domain)184 Bd = Dirichlet_boundary([project.tide,0,0]) 185 #Bs = Transmissive_stage_zero_momentum_boundary(domain) 180 186 Bf = Field_boundary(urs_boundary_name+'.sts', 181 187 domain, 182 188 mean_stage= project.tide, 183 189 time_thinning=project.time_thinning, 184 default_boundary=B s,190 default_boundary=Bd, 185 191 use_cache=True, 186 192 verbose=True, … … 188 194 189 195 domain.set_boundary({'back': Br, 190 'side': B s,196 'side': Bd, 191 197 'ocean': Bf}) 192 198
Note: See TracChangeset
for help on using the changeset viewer.