Changeset 5714
- Timestamp:
- Aug 29, 2008, 3:25:34 PM (16 years ago)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/Hinwood_2008/run_dam.py
r5713 r5714 196 196 #------------------------------------------------------------- 197 197 if __name__ == "__main__": 198 198 199 # Import scenario metadata for the simulations that is to be run 199 200 from scenarios import scenarios 200 201 201 #scenarios = [scenarios[0]] 202 202 # Basic parameters of computer flume model (default: w=0.1, max=0.0001, ys=0.01, fr=0.0) 203 203 width = 0.1 204 204 maximum_triangle_area=0.01 205 yieldstep = 0.01 206 #yieldstep = 0.5 205 yieldstep = 0.5 207 206 friction=0.0 208 isTest=True 209 #isTest=False 210 207 208 # Select coarse fast run (isTest is True) or detailed slower run (isTest is False) 209 #isTest=True 210 isTest=False 211 212 # Loop through experiments and run simulations 211 213 for run_data in scenarios: 212 214 main(run_data, -
anuga_validation/Hinwood_2008/scenarios.py
r5712 r5714 1 1 """ 2 2 Scenario information, used to run simulations and create graphs. 3 4 The Hinwood study consisted of four scenarios each conducted twice, leading to 5 8 experiments in total. 3 6 """ 4 7 5 8 # A list of scenario dictionaries 9 # Each element will represent one experiment (8 in the Hinwood study) 6 10 scenarios = [] 7 11 12 13 14 # Experiment S1R1 8 15 offshore_water_depth = .4 9 16 data = {'xleft':[-3.106,0.0 - offshore_water_depth], # Av' of ADV and Gauge A … … 23 30 'break_type':['none', 'plunge', 'plunge', 'plunge', 'plunge', \ 24 31 'plunge'], 25 #'axis':[0,80,-0.04,0.04], 26 #'axis_maximum_x':6.0, 27 #'ANUGA_start_time':0.38, 28 #'band_offset':-0.5, 29 'wave_times':[20.0,59.0] # this is in Anuga time 30 } 31 scenarios.append(data) 32 33 32 'wave_times':[20.0, 59.0] 33 } 34 scenarios.append(data) 35 36 # Experiment S1R2 34 37 data = {'xleft':[-3.106,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 35 38 'xtoe':[0.0,0.0 - offshore_water_depth], … … 48 51 'break_type':['none', 'plunge', 'plunge', 'plunge', 'plunge', \ 49 52 'plunge'], 50 'wave_times':[23.0, 59.0] # this is in Anuga time53 'wave_times':[23.0, 59.0] 51 54 } 52 55 scenarios.append(data) 53 56 54 57 55 58 # Experiment S2R1 56 59 data = {'xleft':[-4.586,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 57 60 'xtoe':[0.0,0.0 - offshore_water_depth], … … 67 70 'start_slope_x':5, 68 71 'finish_slope_x':6.5, 69 'break_xs':[5.93, 5.93,5.907,5.78], # since depth finishes at 65 sec72 'break_xs':[5.93, 5.93, 5.907, 5.78], # since depth finishes at 65 sec 70 73 'break_type':['none', 'front steepened', 'front steepened', 'spill'], 71 'wave_times':[15.0, 64.0] # this is in Anuga time74 'wave_times':[15.0, 64.0] 72 75 } 73 76 scenarios.append(data) 74 77 78 # Experiment S2R2 75 79 data = {'xleft':[-4.586,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 76 80 'xtoe':[0.0,0.0 - offshore_water_depth], … … 86 90 'start_slope_x':5, 87 91 'finish_slope_x':6.5, 88 'break_xs':[6.32, 6.32,6.033,5.935], # since depth finishes at 75 sec92 'break_xs':[6.32, 6.32, 6.033, 5.935], # since depth finishes at 75 sec 89 93 'break_type':['none', 'front steepened', 'front steepened', 90 94 'weak break'], 91 'wave_times':[34.0,74.0] # this is in Anuga time 92 } 93 scenarios.append(data) 94 95 'wave_times':[34.0, 74.0] 96 } 97 scenarios.append(data) 98 99 100 # Experiment S3R1 101 # Now the slope has changed - and when tank was refilled the depth also changed 95 102 offshore_water_depth = .336 96 103 data = {'xleft':[-3.875,0.0 - offshore_water_depth], # Av' of ADV and Gauge A … … 107 114 12.569], 108 115 109 # remove110 116 'gauge_bed_elevation':[-0.336000, -0.237263, -0.213789, -0.190315, 111 117 -0.143368, … … 115 121 'start_slope_x':8., 116 122 'finish_slope_x':9.5, 117 'break_xs':[9.063, 9.063,9.043,9.043],123 'break_xs':[9.063, 9.063, 9.043, 9.043], 118 124 'break_type':['none','collapse', 'collapse', 'collapse'], 119 'wave_times':[30.0, 74.0] # this is in Anuga time125 'wave_times':[30.0, 74.0] 120 126 } 121 127 scenarios.append(data) 122 128 129 # Experiment S3R2 123 130 data = {'xleft':[-3.875,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 124 131 'xtoe':[0.0,0.0 - offshore_water_depth], … … 134 141 12.569], 135 142 136 # remove137 143 'gauge_bed_elevation':[-0.336000, -0.237263, -0.213789, -0.190315, 138 144 -0.143368, … … 141 147 'start_slope_x':8., 142 148 'finish_slope_x':9.5, 143 'break_xs':[9.17, 9.135,9.135,9.105],149 'break_xs':[9.17, 9.135, 9.135, 9.105], 144 150 'break_type':['collapse', 'collapse', 'collapse', 145 151 'collapse'], 146 'wave_times':[30.0,85.0] # this is in Anuga time 147 } 148 scenarios.append(data) 149 152 'wave_times':[30.0, 85.0] 153 } 154 scenarios.append(data) 155 156 # Experiment S4R1 150 157 data = {'xleft':[-2.43,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 151 158 'xtoe':[0.0,0.0 - offshore_water_depth], … … 160 167 12.569], 161 168 162 # remove163 169 'gauge_bed_elevation':[-0.336000, -0.237263, -0.213789, -0.190315, 164 170 -0.143368, … … 168 174 'start_slope_x':6, 169 175 'finish_slope_x':9, 170 # The ANUGA_start_time has not been subtracted from these values 171 'break_times':[64.29,68.69,73.49,79.39,84.69], # last wave removed 172 'break_xs':[7.673,7.673,7.43,7.448,7.448], # Pressure info ends early 176 177 'break_xs':[7.673, 7.673, 7.43, 7.448, 7.448], # Pressure info ends early 173 178 'break_type':['none','spill', 'spill', 'spill', 'spill'], 174 'wave_times':[34.0, 75.0] # this is in Anuga time175 } 176 scenarios.append(data) 177 178 179 'wave_times':[34.0, 75.0] 180 } 181 scenarios.append(data) 182 183 # Experiment S4R2 179 184 data = {'xleft':[-2.43,0.0 - offshore_water_depth], # Av' of ADV and Gauge A 180 185 'xtoe':[0.0,0.0 - offshore_water_depth], … … 190 195 12.569], 191 196 192 # remove193 197 'gauge_bed_elevation':[-0.336000, -0.237263, -0.213789, -0.190315, 194 198 -0.143368, … … 198 202 'start_slope_x':6, 199 203 'finish_slope_x':9, 200 'break_xs':[8.53, 7.46,7.492,7.492,7.444],204 'break_xs':[8.53, 7.46, 7.492, 7.492, 7.444], 201 205 'break_type':['collapse', 'spill', 'spill', 'spill', 'spill'], 202 'wave_times':[34.0, 75.0] # this is in Anuga time203 } 204 scenarios.append(data) 205 206 'wave_times':[34.0, 75.0] 207 } 208 scenarios.append(data) 209 -
anuga_work/development/Hinwood_2008/run_dam.py
r5711 r5714 373 373 use_limits=False, 374 374 friction=friction, 375 end_tag='_ I')375 end_tag='_Z') 376 376 #gauges_for_slope(pro_instance.outputdir,[run_data]) -
anuga_work/development/Hinwood_2008/validation_graphs.py
r5709 r5714 22 22 23 23 END_TAG = '_I' 24 #END_TAG = '_Z'25 #END_TAG = '_I' 24 END_TAG = '_Ole' 25 26 26 27 27 WIDTH = 0.1
Note: See TracChangeset
for help on using the changeset viewer.