Changeset 694
- Timestamp:
- Dec 8, 2004, 2:29:01 PM (20 years ago)
- Location:
- inundation/ga/storm_surge
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified inundation/ga/storm_surge/examples/beach.py ¶
r690 r694 40 40 41 41 domain.store = True 42 domain.set_name(name + ' 5')42 domain.set_name(name + '6') 43 43 domain.default_order = 2 44 44 print "Output being written to " + data_dir + sep + \ … … 149 149 N = len(x) 150 150 151 tt = sin(2*pi*t/ 80)151 tt = sin(2*pi*t/100) 152 152 153 153 if tt > 0.95: … … 157 157 158 158 domain.forcing_terms.append(Wind_stress(gust2, 90)) 159 160 #Add lateral wind gusts bearing 255 degrees 161 def gust3(t,x,y): 162 from math import sin, pi 163 from Numeric import zeros, ones, Float 164 165 N = len(x) 166 167 tt = sin(2*pi*(t-30)/55) 168 169 if tt > 0.96: 170 return 24000*tt*ones(N, Float) 171 else: 172 return zeros(N, Float) 173 174 domain.forcing_terms.append(Wind_stress(gust3, 255)) 159 175 160 176 -
TabularUnified inundation/ga/storm_surge/validation/run_merimbula.py ¶
r528 r694 11 11 12 12 from shallow_water import Domain, Reflective_boundary, File_boundary,\ 13 Dirichlet_boundary 13 Dirichlet_boundary, Wind_stress 14 14 from pmesh2domain import pmesh_to_domain_instance 15 15 … … 24 24 print "Number of triangles = ", len(domain) 25 25 26 domain.default_order = 1 27 domain.filename = filename 26 domain.default_order = 2 27 domain.store = True 28 domain.set_name('merimbula') 28 29 29 30 domain.set_quantity('friction', 0.07) 31 domain.set_quantity('level', 0.5) 32 33 34 #Add lateral wind gusts bearing 135 degrees 35 def gust(t,x,y): 36 from math import sin, pi 37 from Numeric import zeros, ones, Float 38 39 N = len(x) 40 41 tt = sin(2*pi*t/30) 42 43 if tt > 0.98: 44 return 24000*tt*ones(N, Float) 45 else: 46 return zeros(N, Float) 47 48 domain.forcing_terms.append(Wind_stress(gust, 135)) 49 30 50 31 51 ###################### … … 33 53 34 54 filename = 'Eden_Australia_31082004.txt' 35 Bf = File_boundary( domain, filename)55 Bf = File_boundary(filename, domain) 36 56 37 57 inflow_stage = 20.0
Note: See TracChangeset
for help on using the changeset viewer.