Changeset 4570 for anuga_work/production/shark_bay_2007/project.py
- Timestamp:
- Jun 28, 2007, 5:54:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/shark_bay_2007/project.py
r4552 r4570 32 32 33 33 #tide = -3.9 34 #tide = 0.035 tide = 3.634 tide = 0.0 35 #tide = 3.6 36 36 37 37 #Maybe will try to make project a class to allow these parameters to be passed in. … … 40 40 finaltime=25000 41 41 starttime=3600 42 setup=' final'42 setup='basic' 43 43 source='shark_bay' 44 44 … … 67 67 'clipped_bathymetry_final', 'coast_points_final'] 68 68 69 # final topo name69 # final topo name 70 70 combined_name ='shark_bay_combined_elevation' 71 71 combined_small_name = 'shark_bay_combined_elevation_small' … … 74 74 anuga_dir = join(home, state, scenario, 'anuga') 75 75 76 topographies_in_dir = join(home, state, scenario, 'elevation_final', 'test_area') 76 topographies_in_dir = join(home, state, scenario, 77 'elevation_final', 'test_area') 78 77 79 topographies_dir = join(anuga_dir, 'topographies') # Output dir for ANUGA 78 80 … … 87 89 88 90 89 mesh es_dir = join(anuga_dir, 'meshes')90 mesh es_dir_name = join(meshes_dir, scenario_name)91 mesh_dir = join(anuga_dir, 'meshes') 92 mesh_name = join(mesh_dir, scenario_name) 91 93 92 94 … … 97 99 # locations for boundary conditions 98 100 if source=='shark_bay': 99 boundar ies_file_name = 'shark_bay_3867_18052007'100 boundar ies_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000')101 boundary_file_name = 'shark_bay_3867_18052007' 102 boundary_dir = join(anuga_dir, 'boundaries', 'shark_bay', '1_10000') 101 103 102 boundar ies_name = join(boundaries_dir, boundaries_file_name)104 boundary_name = join(boundary_dir, boundary_file_name) 103 105 104 106 #output locations 105 output_dir = join(anuga_dir, 'outputs') 107 output_dir = join(anuga_dir, 'outputs')+sep 106 108 output_build_time_dir = output_dir+build_time+sep 107 109 output_run_time_dir = output_dir +run_time+dir_comment+sep … … 147 149 148 150 #from anuga.coordinate_transforms.redfearn import redfearn 149 poly_all= read_polygon(join(polygons_dir, 'boundary_extent.csv'))150 res_ poly_all= 250000*res_factor151 bounding_polygon = read_polygon(join(polygons_dir, 'boundary_extent.csv')) 152 res_bounding_polygon = 250000*res_factor 151 153 152 154 #Interior regions 153 155 poly_inundated_area = read_polygon(join(polygons_dir, 'inundated_area.csv')) 154 res_inundated_area = 50000*res_factor156 res_inundated_area = 1000*res_factor 155 157 156 158 poly_bay_area = read_polygon(join(polygons_dir, 'bay_area.csv')) 157 res_bay_area = 100000*res_factor159 res_bay_area = 5000*res_factor 158 160 159 interior_regions = [[poly_bay_area, res_bay_area], [poly_inundated_area, res_inundated_area]] 161 interior_regions = [[poly_bay_area, res_bay_area], 162 [poly_inundated_area, res_inundated_area]] 160 163 161 trigs_min = number_mesh_triangles(interior_regions, poly_all, res_poly_all) 164 trigs_min = number_mesh_triangles(interior_regions, 165 bounding_polygon, 166 res_bounding_polygon) 162 167 163 168 print 'min number triangles', trigs_min 164 169 170 onshore_polygon = read_polygon(join(topographies_in_dir, 171 'initial_condition.txt')) 165 172
Note: See TracChangeset
for help on using the changeset viewer.