source: issm/branches/trunk-jpl-damage/src/py/classes/friction.py@ 12004

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: 611 bytes
RevLine 
[11787]1#module imports
2from fielddisplay import fielddisplay
3
4class friction:
5 #properties
6 def __init__(self):
7 # {{{ Properties
8 self.coefficient = float('NaN')
9 self.p = float('NaN')
10 self.q = float('NaN')
11 #}}}
12 def __repr__(obj):
13 # {{{ Display
14 string="Sigma= drag^2 * Neff ^r * u ^s, with Neff=rho_ice*g*thickness+rho_water*g*bed, r=q/p and s=1/p"
15 string="%s\n\n%s"%(string,fielddisplay(obj,"coefficient","friction coefficient [SI]"))
16 string="%s\n%s"%(string,fielddisplay(obj,"p","p exponent"))
17 string="%s\n%s"%(string,fielddisplay(obj,"q","q exponent"))
18 return string
19 #}}}
Note: See TracBrowser for help on using the repository browser.