Last change
on this file since 12004 was 12004, checked in by cborstad, 13 years ago |
merged trunk-jpl into trunk-jpl-damage through revision 11990
|
File size:
1.1 KB
|
Line | |
---|
1 | #module imports
|
---|
2 | from fielddisplay import fielddisplay
|
---|
3 |
|
---|
4 | class hydrology:
|
---|
5 | #properties
|
---|
6 | def __init__(self):
|
---|
7 | # {{{ Properties
|
---|
8 | self.spcwatercolumn = float('NaN')
|
---|
9 | self.n = 0
|
---|
10 | self.CR = 0
|
---|
11 | self.p = 0
|
---|
12 | self.q = 0
|
---|
13 | self.kn = 0
|
---|
14 | self.stabilization = 0
|
---|
15 |
|
---|
16 | #}}}
|
---|
17 | def __repr__(obj):
|
---|
18 | # {{{ Display
|
---|
19 |
|
---|
20 | string=' hydrology solution parameters:'
|
---|
21 | string="%s\n\n%s"%(string,fielddisplay(obj,'spcwatercolumn','water thickness constraints (NaN means no constraint)'))
|
---|
22 | string="%s\n%s"%(string,fielddisplay(obj,'n','Manning roughness coefficient'))
|
---|
23 | string="%s\n%s"%(string,fielddisplay(obj,'CR','tortuosity parameter'))
|
---|
24 | string="%s\n%s"%(string,fielddisplay(obj,'p','dimensionless exponent in Manning velocity formula'))
|
---|
25 | string="%s\n%s"%(string,fielddisplay(obj,'q','dimensionless exponent in Manning velocity formula'))
|
---|
26 | string="%s\n%s"%(string,fielddisplay(obj,'kn','parameter in effective pressure formula'))
|
---|
27 | string="%s\n%s"%(string,fielddisplay(obj,'stabilization','artificial diffusivity (default is 1). can be more than 1 to increase diffusivity.'))
|
---|
28 | return string
|
---|
29 | #}}}
|
---|
Note:
See
TracBrowser
for help on using the repository browser.