Changeset 2957 for development/stochastic_study
- Timestamp:
- May 24, 2006, 2:35:03 PM (18 years ago)
- Location:
- development/stochastic_study
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
development/stochastic_study/project.py
r2448 r2957 9 9 basename = 'simulation' 10 10 mesh_filename = basename + '.msh' 11 12 13 # Gauges (3 timeseries (Ch 5-7-9)) 14 gauges = [[4.521, 1.196], [4.521, 1.696], [4.521, 2.196]] 15 gauge_names = ['ch5', 'ch7', 'ch9'] 16 11 17 12 18 # Stats (Suresh ?) -
development/stochastic_study/run_model.py
r2866 r2957 57 57 print domain.statistics() 58 58 59 import sys; sys.exit()60 61 59 62 60 domain.set_datadir('.') … … 88 86 finaltime = 22.5 89 87 timestep = 0.05 90 91 88 92 89 … … 124 121 # Now extract the 3 timeseries (Ch 5-7-9) and store them 125 122 # in three files for this realisation 126 gauges = [[4.521, 1.196], [4.521, 1.696], [4.521, 2.196]]127 gauge_names = ['ch5', 'ch7', 'ch9']128 129 130 123 f = file_function(domain.filename + '.sww', 131 124 quantities='stage', 132 interpolation_points= gauges,133 verbose =True)125 interpolation_points=project.gauges, 126 verbose=True) 134 127 135 128 136 129 simulation_name = domain.filename + '_realisation_%d' %realisation 137 130 138 for k, name in enumerate( gauge_names):131 for k, name in enumerate(project.gauge_names): 139 132 fid = open(simulation_name + '_' + name + '.txt', 'w') 140 for t in f. T:133 for t in f.get_time(): 141 134 #For all precomputed timesteps 142 135 val = f(t, point_id = k)[0]
Note: See TracChangeset
for help on using the changeset viewer.