Ignore:
Timestamp:
Dec 8, 2004, 2:29:01 PM (20 years ago)
Author:
ole
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/validation/run_merimbula.py

    r528 r694  
    1111
    1212from shallow_water import Domain, Reflective_boundary, File_boundary,\
    13      Dirichlet_boundary
     13     Dirichlet_boundary, Wind_stress
    1414from pmesh2domain import pmesh_to_domain_instance
    1515
     
    2424print "Number of triangles = ", len(domain)
    2525
    26 domain.default_order = 1
    27 domain.filename = filename
     26domain.default_order = 2
     27domain.store = True
     28domain.set_name('merimbula')
    2829
    2930domain.set_quantity('friction', 0.07)
     31domain.set_quantity('level', 0.5)
     32
     33
     34#Add lateral wind gusts bearing 135 degrees
     35def 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   
     48domain.forcing_terms.append(Wind_stress(gust, 135))
     49
    3050
    3151######################
     
    3353
    3454filename = 'Eden_Australia_31082004.txt'
    35 Bf = File_boundary(domain, filename)
     55Bf = File_boundary(filename, domain)
    3656
    3757inflow_stage = 20.0
Note: See TracChangeset for help on using the changeset viewer.