Ignore:
Timestamp:
Apr 11, 2014, 10:06:44 AM (11 years ago)
Author:
steve
Message:

Adding anuga_1d to test all

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga_1d/sqpipe/culvert.py

    r9081 r9085  
    3636def top(x):
    3737
    38     t = numpy.ones_like(x)
     38    t = numpy.ones_like(x)*4
    3939
    4040    t = numpy.where(x<-40, 20, t)
     
    4545    return height(x)*width(x)
    4646
     47def friction(x):
     48    return numpy.ones_like(x)*0.01
     49
    4750
    4851#===============================================================================
    4952
    5053def get_domain():
    51     N = 100
     54    N = 20
    5255    print "Evaluating domain with %d cells" %N
    5356
     
    5760
    5861    domain.set_spatial_order(2)
    59     domain.set_timestepping_method('euler')
     62    domain.set_timestepping_method('rk2')
    6063    domain.set_CFL(0.5)
    6164    domain.set_limiter("vanleer")
     
    6871    domain.set_quantity('width',width)
    6972    domain.set_quantity('top',top)
     73    domain.set_quantity('friction',friction)
    7074
    7175    Br = dom.Reflective_boundary(domain)
    7276    Bt = dom.Transmissive_boundary(domain)
    7377
    74     domain.set_boundary({'left': Br, 'right' : Bt})
     78    domain.set_boundary({'left': Br, 'right' : Br})
    7579
    7680    return domain
Note: See TracChangeset for help on using the changeset viewer.