Changeset 694 for inundation/ga/storm_surge/validation
- Timestamp:
- Dec 8, 2004, 2:29:01 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.