Changeset 4310
- Timestamp:
- Mar 21, 2007, 6:25:37 PM (18 years ago)
- Location:
- anuga_work/production
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/broome_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 35 36 36 37 -
anuga_work/production/busselton_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \ -
anuga_work/production/dampier_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \ -
anuga_work/production/exmouth_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \ -
anuga_work/production/gold_coast_2007/export_results.py
r4294 r4310 5 5 from os import sep 6 6 7 time_dir = '20070228_071238' 7 #time_dir = '20070228_071238' # 6.0 m 8 #time_dir = '20070305_051718' # 2.5m 9 #time_dir = '20070305_051728' # 3.5m 10 #time_dir = '20070305_051817' # 4.5m 11 time_dir = '20070314_231144' # 4.5 tide 12 #time_dir = '20070314_231156' # 5m tide 13 8 14 9 15 directory = project.outputdir … … 24 30 25 31 if which_var == 2: # Depth 26 outname = name + '_depth -eq'32 outname = name + '_depth' 27 33 quantityname = 'stage-elevation' 28 34 … … 57 63 quantity = quantityname, 58 64 #timestep = 0, 59 cellsize = 50,65 cellsize = 20, 60 66 easting_min = project.eastingmin, 61 67 easting_max = project.eastingmax, -
anuga_work/production/gold_coast_2007/project.py
r4294 r4310 28 28 gc250 = 'dem_250' 29 29 30 # better DEM 31 gc5 = 'dem_5m_ascii' 32 offshore = 'xy_AHD' 33 coastline = 'coastline' 34 30 35 #swollen/ all data output 31 36 basename = 'source' … … 42 47 outputtimedir = outputdir + local_time + sep 43 48 polygondir = home+sep+state+sep+scenario_dir_name+sep+'anuga'+sep+'polygons'+sep 49 alex_datadir = home+sep+state+sep+scenario_dir_name+sep+'elevation_final'+sep+'points'+sep 44 50 45 #gauge_filename = gaugedir + 'sydney_slide_gauges.csv'46 51 codedir = getcwd()+sep 47 52 codedirname = codedir + 'project.py' … … 49 54 50 55 # Necessary if using point datasets, rather than grid 51 gc_dem_name = datadir + gc250 56 gc_dem_name = alex_datadir + gc5 57 offshore_name = datadir + offshore 58 coast_name = datadir + coastline 52 59 combined_dem_name = datadir + 'gc_elevation' 53 60 61 gauge_name = gaugedir + 'gc_gauges.csv' 62 buildings_filename = gaugedir + 'gc_nexis.csv' 63 buildings_filename_out = 'gc_nexis_modified.csv' 54 64 ############################### 55 65 # Domain definitions … … 57 67 58 68 # bounding polygon for study area 59 polyAll = read_polygon(polygondir+'extent .csv')69 polyAll = read_polygon(polygondir+'extentv2.csv') 60 70 61 71 print 'Area of bounding polygon', polygon_area(polyAll)/1000000.0 … … 70 80 print 'Area of local polygon', polygon_area(poly_int)/1000000.0 71 81 82 poly_bathy = read_polygon(polygondir+'mainland_only.csv') 83 72 84 ################################################################### 73 85 # Clipping regions for export to asc and regions for clipping data … … 75 87 76 88 # exporting asc grid 77 eastingmin = 53 845089 eastingmin = 534300 78 90 eastingmax = 546775 79 northingmin = 6890 54080 northingmax = 69 0292591 northingmin = 6890000 92 northingmax = 6912925 -
anuga_work/production/gold_coast_2007/run_goldcoast.py
r4294 r4310 55 55 gc_dem_name = project.gc_dem_name 56 56 meshname = project.meshname+'.msh' 57 57 ''' 58 58 # creates DEM from asc data 59 59 convert_dem_from_ascii2netcdf(gc_dem_name, use_cache=True, verbose=True) … … 62 62 dem2pts(gc_dem_name, use_cache=True, verbose=True) 63 63 64 G = Geospatial_data(file_name = project.gc_dem_name + '.pts') 64 G = Geospatial_data(file_name = project.gc_dem_name + '.pts') + \ 65 Geospatial_data(file_name = project.offshore_name + '.xya') +\ 66 Geospatial_data(file_name = project.coast_name + '.xya') 65 67 66 68 G.export_points_file(project.combined_dem_name + '.pts') 67 68 69 ''' 69 70 #---------------------------------------------------------------------------- 70 71 # Create the triangular mesh based on overall clipping polygon with a tagged … … 74 75 75 76 from anuga.pmesh.mesh_interface import create_mesh_from_regions 76 remainder_res = 1 50000.77 int_res = 1000 .77 remainder_res = 1000000. 78 int_res = 10000. 78 79 interior_regions = [[project.poly_int, int_res]] 79 80 … … 105 106 #------------------------------------------------------------------------------- 106 107 107 tide = 0.0 108 domain.set_quantity('stage', tide) 108 #tide = 3.0 109 tide = 1.0 110 from polygon import * 111 #IC = Polygon_function( [(project.poly_bathy, 0.)], default = tide) 112 #IC = Polygon_function( [(poly, 0.)], default = tide) 113 from anuga.utilities.polygon import read_polygon 114 poly = read_polygon('test.csv') 115 IC = Polygon_function( [(poly, 1000.)], default = 0.0) 116 domain.set_quantity('stage', IC) 109 117 domain.set_quantity('friction', 0.0) 110 118 domain.set_quantity('elevation', … … 122 130 Br = Reflective_boundary(domain) 123 131 Bd = Dirichlet_boundary([tide,0,0]) 132 # 10 min period = 1/600 frequency 133 from math import sin 124 134 Bw = Time_boundary(domain=domain, # Time dependent boundary 125 f=lambda t: [(60<t<660)*6., 0, 0]) 135 #f=lambda t: [1.0*sin(t/600.), 0, 0]) 136 f=lambda t: [(60<t<3660)*0.1, 0, 0]) 126 137 127 138 domain.set_boundary( {'e0': Bw, 'e1': Bd, 'e2': Bd, 'e3': Bd} ) … … 135 146 t0 = time.time() 136 147 137 for t in domain.evolve(yieldstep = 10, finaltime = 5000):148 for t in domain.evolve(yieldstep = 10, finaltime = 15000): 138 149 domain.write_time() 139 150 domain.write_boundary_statistics(tags = 'e0') -
anuga_work/production/onslow_2006/run_building_inundation.py
r3316 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \ -
anuga_work/production/perth_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \ -
anuga_work/production/pt_hedland_2006/run_building_inundation.py
r4228 r4310 33 33 34 34 add_depth_and_momentum2csv(swwfile, buildings_filename, buildings_filename_out) 35 35 inundation_damage(swwfile, buildings_filename, buildings_filename_out) 36 36 37 37 print '\n Augmented building file written to %s \n' \
Note: See TracChangeset
for help on using the changeset viewer.