Changeset 5360
- Timestamp:
- May 23, 2008, 6:57:13 PM (17 years ago)
- Location:
- anuga_work/production/perth
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/perth/build_perth.py
r4147 r5360 31 31 #from anuga.pmesh.mesh_interface import create_mesh_from_regions 32 32 from anuga.geospatial_data.geospatial_data import * 33 from anuga. abstract_2d_finite_volumes.utilimport start_screen_catcher, copy_code_files33 from anuga.shallow_water.data_manager import start_screen_catcher, copy_code_files 34 34 35 35 # Application specific imports … … 55 55 # Fine pts file to be clipped to area of interest 56 56 #------------------------------------------------------------------------------- 57 print"project. bounding_polygon",project.bounding_polygon57 print"project.poly_all",project.poly_all 58 58 print"project.combined_dir_name",project.combined_dir_name 59 59 … … 66 66 island_in_dir_name3 = project.island_in_dir_name3 67 67 offshore_in_dir_name = project.offshore_in_dir_name 68 offshore1_in_dir_name = project.offshore1_in_dir_name 68 69 69 70 70 onshore_dir_name = project.onshore_dir_name … … 103 103 G1 = Geospatial_data(file_name = onshore_dir_name + '.pts') 104 104 print'create Geospatial data2 objects from topographies' 105 G2 = Geospatial_data(file_name = coast_in_dir_name + '. xya')105 G2 = Geospatial_data(file_name = coast_in_dir_name + '.txt') 106 106 print'create Geospatial data3 objects from topographies' 107 107 G3 = Geospatial_data(file_name = island_dir_name + '.pts') … … 113 113 G6 = Geospatial_data(file_name = island_dir_name3 + '.pts') 114 114 print'create Geospatial data7 objects from topographies' 115 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.xya') 116 print'create Geospatial data8 objects from topographies' 117 G_off1 = Geospatial_data(file_name = offshore1_in_dir_name + '.xya') 115 G_off = Geospatial_data(file_name = offshore_in_dir_name + '.txt') 116 118 117 119 118 print'add all geospatial objects' -
anuga_work/production/perth/project.py
r5357 r5360 81 81 anuga_dir = home+state+sep+scenario+sep+'anuga'+sep 82 82 83 topographies_in_dir = home+s ep+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep83 topographies_in_dir = home+state+sep+scenario+sep+'elevation_final'+sep+'points'+sep 84 84 topographies_dir = anuga_dir+'topographies'+sep 85 85 #topographies_time_dir = topographies_dir+build_time+sep … … 173 173 174 174 #Polygon designed by 20m contours, or 3km from the coastline 175 poly_internal_20_3 = read_polygon(polygons_dir+'internal h20mORd3km.csv')175 poly_internal_20_3 = read_polygon(polygons_dir+'internal_h20mORd3km.csv') 176 176 res_internal_20_3 = 20000*res_factor 177 177 … … 181 181 182 182 #Polygon designed to incorporate coastline of rottnest 183 poly_rottnest = read_polygon(polygons_dir+'rottnest.csv') 184 res_rottnest = 1000*res_factor 183 poly_rottnest_ex = read_polygon(polygons_dir+'rottnest_external.csv') 184 res_rottnest_ex = 1000*res_factor 185 186 #Polygon designed to cut out the rottnest island land. 187 poly_rottnest_in = read_polygon(polygons_dir+'rottnest_internal.csv') 188 res_rottnest_in = 20000*res_factor 185 189 186 190 #Polygon designed to incorporate perth and Fremantle CBD … … 202 206 ,[poly_garden_rockingham,res_garden_rockingham] 203 207 ,[poly_penguin,res_penguin],[poly_geordie_bay,res_geordie_bay] 204 ,[poly_sorrento_gauge,res_sorrento_gauge],[poly_rottnest, res_rottnest]] 205 206 boundary_tags={'back': [4], 'side': [0,3],'ocean': [1, 2]} 208 ,[poly_sorrento_gauge,res_sorrento_gauge],[poly_rottnest_in, res_rottnest_in] 209 ,[poly_rottnest_ex, res_rottnest_ex]] 210 211 boundary_tags={'back': [0,1,2], 'side': [3,6],'ocean': [4, 5]} 207 212 208 213 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all) -
anuga_work/production/perth/run_perth.py
r5111 r5360 93 93 interior_regions=project.interior_regions, 94 94 filename=project.meshes_dir_name+'.msh', 95 use_cache= False,95 use_cache=True, 96 96 verbose=True) 97 97 barrier() … … 134 134 domain.set_quantity('elevation', 135 135 filename = kwargs['bathy_file'], 136 use_cache = True,136 use_cache = False, 137 137 verbose = True, 138 138 alpha = kwargs['alpha']) … … 179 179 Bf = Field_boundary(kwargs['boundary_file'], 180 180 domain, time_thinning=kwargs['time_thinning'], mean_stage=kwargs['tide'], 181 use_cache= True, verbose=True)181 use_cache=False, verbose=True) 182 182 domain.set_boundary({'back': Br, 183 183 'side': Bd,
Note: See TracChangeset
for help on using the changeset viewer.