source: trunk/anuga_work/development/2010-projects/anuga_1d/avalanche-sudi/parameters.py @ 8427

Last change on this file since 8427 was 8427, checked in by davies, 13 years ago

Adding the trapezoidal channel validation test, and editing the ANUGA manual

File size: 592 bytes
Line 
1from numpy import sqrt
2from Numeric import zeros, Float
3from config import g
4from scipy import sin, cos, tan, arcsin, arccos, arctan, pi
5
6L = 200.0
7N = 400
8
9cell_len = L/N
10points = zeros(N+1, Float)
11for i in range(N+1):
12    #points[i] = i*cell_len
13    points[i] = i*cell_len - 0.5*L
14
15
16
17friction_slope = 0.05 #tan(delta) #0.05 # NOTE THAT friction_slope must less than bed_slope
18bed_slope = 0.1#0.002 #tan(theta) #0.1      # bottom slope, positive if it is increasing bottom.
19thet = arctan(bed_slope)
20
21F2 = g*cos(thet)*cos(thet)*friction_slope
22m = -1.0*g*bed_slope + F2   # auxiliary variable
Note: See TracBrowser for help on using the repository browser.