Changeset 6342
- Timestamp:
- Feb 16, 2009, 8:56:21 AM (16 years ago)
- Location:
- anuga_work/production
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/production/australia_ph2/ceduna/build_boundary_27255.py
r6291 r6342 5 5 Input: order_filename from project.py 6 6 event_number needs to be reflected in the project file 7 Output: creates a sts file and csv files stored in project. boundaries_dir_event.7 Output: creates a sts file and csv files stored in project.event_folder. 8 8 The run_busselton.py is reliant on the output of this script. 9 9 """ … … 95 95 96 96 maxname = 'max_sts_stage.csv' 97 fid_max = open(project. boundaries_dir_event+sep+maxname,'w')97 fid_max = open(project.event_folder+sep+maxname,'w') 98 98 s = 'index, x, y, max_stage \n' 99 99 fid_max.write(s) … … 112 112 113 113 minname = 'min_sts_stage.csv' 114 fid_min = open(project. boundaries_dir_event+sep+minname,'w')114 fid_min = open(project.event_folder+sep+minname,'w') 115 115 s = 'index, x, y, max_stage \n' 116 116 fid_min.write(s) … … 126 126 127 127 128 fid_sts = open(project. boundaries_dir_event+sep+basename+'_'+ str(index)+'.csv', 'w')128 fid_sts = open(project.event_folder+sep+basename+'_'+ str(index)+'.csv', 'w') 129 129 s = 'time, stage, xmomentum, ymomentum \n' 130 130 fid_sts.write(s) … … 144 144 return quantities,elevation,time 145 145 146 quantities,elevation,time=get_sts_gauge_data( os.path.join(project.boundaries_dir_event,project.scenario_name),verbose=False)146 quantities,elevation,time=get_sts_gauge_data(project.event_sts,verbose=False) 147 147 148 148 print len(elevation), len(quantities['stage'][0,:]) -
anuga_work/production/australia_ph2/ceduna/project.py
r6293 r6342 44 44 friction = 0.01 # manning's friction coefficient 45 45 starttime = 0 46 finaltime = 80000 # final time for simulation46 finaltime = 1000 #80000 # final time for simulation 47 47 48 setup = ' trial' # Final can be replaced with trial or basic.48 setup = 'final' # Final can be replaced with trial or basic. 49 49 # Either will result in a coarser mesh that will allow a 50 50 # faster, but less accurate, simulation. … … 156 156 event_sts = join(boundaries_folder, str(event_number), scenario_name) 157 157 158 # The absolute pathname of the event folder 159 event_folder = join(boundaries_folder, str(event_number)) 160 158 161 # The absolute pathname for the output folder names 159 162 # Used for build_elevation.py -
anuga_work/production/australia_ph2/ceduna/run_model.py
r6291 r6342 26 26 # Related major packages 27 27 from anuga.interface import create_domain_from_regions 28 from anuga.interface import Transmissive_stage_zero_momentum_boundary29 28 from anuga.interface import Dirichlet_boundary 30 29 from anuga.interface import Reflective_boundary … … 32 31 from anuga.interface import create_sts_boundary 33 32 from anuga.interface import csv2building_polygons 33 from file_length import file_length 34 34 35 35 from anuga.shallow_water.data_manager import start_screen_catcher … … 70 70 # Number of boundary segments 71 71 N = len(event_sts)-1 72 # Number of landward_boundary points 73 M = file_length(project.landward_boundary) 72 74 73 75 # Boundary tags refer to project.landward_boundary 74 76 # 4 points equals 5 segments start at N 75 boundary_tags={'back': [N+1, N+2, N+3, N+4, N+5, N+6, N+7],76 'side': [N, N+8],77 boundary_tags={'back': range(N+1,N+M), 78 'side': [N,N+M], 77 79 'ocean': range(N)} 78 80 … … 101 103 default=project.tide, 102 104 geo_reference=domain.geo_reference) 103 domain.set_quantity('stage', IC, use_cache=True, verbose=True)105 domain.set_quantity('stage', 0, use_cache=True, verbose=True) 104 106 domain.set_quantity('friction', project.friction) 105 107 domain.set_quantity('elevation', … … 116 118 117 119 Br = Reflective_boundary(domain) 118 B t = Transmissive_stage_zero_momentum_boundary(domain)120 Bd = Dirichlet_boundary([project.tide,0,0]) 119 121 Bf = Field_boundary(project.event_sts+'.sts', 120 122 domain, mean_stage=project.tide, … … 125 127 verbose=True) 126 128 129 127 130 domain.set_boundary({'back': Br, 128 'side': B t,131 'side': Bd, 129 132 'ocean': Bf}) 130 133 -
anuga_work/production/australia_ph2/eucla_motel/run_model.py
r6315 r6342 103 103 default=project.tide, 104 104 geo_reference=domain.geo_reference) 105 domain.set_quantity('stage', IC, use_cache=True, verbose=True)105 domain.set_quantity('stage', 0, use_cache=True, verbose=True) 106 106 domain.set_quantity('friction', project.friction) 107 107 domain.set_quantity('elevation', -
anuga_work/production/busselton/get_timeseries.py
r6201 r6342 27 27 ##time_dirs = [time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 28 28 29 time_dir1 = '20081217_115336_run_final_0_27283_250m_none_dp_kvanputt' 29 ##time_dir1 = '20081217_115336_run_final_0_27283_250m_none_dp_kvanputt' 30 time_dir6 = '20081111_113832_run_final_0.6_27255_alpha0.1_kvanputt' 30 31 31 time_dirs = [time_dir 1]32 time_dirs = [time_dir6] 32 33 33 34 for time_dir in time_dirs: -
anuga_work/production/busselton/project.py
r6201 r6342 118 118 # gauges - used in get_timeseries.py 119 119 #gauge_name = scenario_name+'.txt' 120 gauge_name = 'Gauges.csv' 120 #gauge_name = 'Gauges.csv' 121 gauge_name = 'MH_gauges.csv' 121 122 # buildings - used in run_building_inundation.py 122 123 building = 'busselton_res_clip' -
anuga_work/production/geraldton/get_timeseries.py
r6202 r6342 18 18 directory = project.output_dir 19 19 20 time_dir1 = '20081117_141353_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'21 time_dir2 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'22 time_dir3 = '20081117_141520_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'23 time_dir4 = '20081117_141558_run_final_0.6_27255_alpha0.1_kvanputt' +sep+'gauge'24 time_dir5 = '20081117_141634_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'25 time_dir6 = '20081117_141717_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'20 ##time_dir1 = '20081117_141353_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge' 21 ##time_dir2 = '20081117_141443_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge' 22 ##time_dir3 = '20081117_141520_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge' 23 time_dir4 = '20081117_141558_run_final_0.6_27255_alpha0.1_kvanputt' 24 ##time_dir5 = '20081117_141634_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge' 25 ##time_dir6 = '20081117_141717_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge' 26 26 27 time_dirs = [time_dir 1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]27 time_dirs = [time_dir4] #[time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 28 28 29 29 for time_dir in time_dirs: -
anuga_work/production/geraldton/project.py
r6027 r6342 102 102 103 103 # gauges - used in get_timeseries.py 104 gauge_name = ' geraldton.csv'104 gauge_name = 'MH_gauges.csv' #'geraldton.csv' 105 105 gauge_name2 = 'thinned_MGA50.csv' 106 106 -
anuga_work/production/perth/get_timeseries.py
r6067 r6342 18 18 directory = project.output_dir 19 19 20 time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge'21 time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge'22 time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge'23 time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt' +sep+'gauge'24 time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge'25 time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge'20 ##time_dir1 = '20081031_133353_run_final_0.6_68693_alpha0.1_kvanputt'+sep+'gauge' 21 ##time_dir2 = '20081031_133511_run_final_0_68693_alpha0.1_kvanputt'+sep+'gauge' 22 ##time_dir3 = '20081031_133624_run_final_0_27255_alpha0.1_kvanputt'+sep+'gauge' 23 time_dir4 = '20081031_133735_run_final_0.6_27255_alpha0.1_kvanputt' 24 ##time_dir5 = '20081031_133841_run_final_0_27283_alpha0.1_kvanputt'+sep+'gauge' 25 ##time_dir6 = '20081031_133925_run_final_0.6_27283_alpha0.1_kvanputt'+sep+'gauge' 26 26 27 time_dirs = [time_dir 1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6]27 time_dirs = [time_dir4] #[time_dir1, time_dir2, time_dir3, time_dir4, time_dir5, time_dir6] 28 28 29 29 for time_dir in time_dirs: -
anuga_work/production/perth/project.py
r6067 r6342 100 100 101 101 # gauges - used in get_timeseries.py 102 gauge_name = 'perth.csv' 102 ##gauge_name = 'perth.csv' 103 gauge_name = 'MH_gauges.csv' 103 104 104 105 #buildings - used in run_building_inundation.py
Note: See TracChangeset
for help on using the changeset viewer.