source: issm/trunk/src/py/classes/thermal.py@ 11995

Last change on this file since 11995 was 11995, checked in by Mathieu Morlighem, 13 years ago

merged trunk-jpl and trunk for revision 11994M

File size: 1.2 KB
Line 
1#module imports
2from fielddisplay import fielddisplay
3
4class thermal:
5 #properties
6 def __init__(self):
7 # {{{ Properties
8 self.spctemperature = float('NaN')
9 self.penalty_threshold = 0
10 self.stabilization = 0
11 self.maxiter = 0
12 self.penalty_lock = 0
13 self.penalty_factor = 0
14 self.isenthalpy = 0
15 #}}}
16 def __repr__(obj):
17 # {{{ Display
18 string=' Thermal solution parameters:'
19 string="%s\n\n%s"%(string,fielddisplay(obj,'spctemperature','temperature constraints (NaN means no constraint)'))
20 string="%s\n%s"%(string,fielddisplay(obj,'stabilization','0->no, 1->artificial_diffusivity, 2->SUPG'))
21 string="%s\n%s"%(string,fielddisplay(obj,'maxiter','maximum number of non linear iterations'))
22 string="%s\n%s"%(string,fielddisplay(obj,'penalty_lock','stabilize unstable thermal constraints that keep zigzagging after n iteration (default is 0, no stabilization)'))
23 string="%s\n%s"%(string,fielddisplay(obj,'penalty_threshold','threshold to declare convergence of thermal solution (default is 0)'))
24 string="%s\n%s"%(string,fielddisplay(obj,'isenthalpy','use an enthalpy formulation to include temperate ice (default is 0)'))
25 return string
26 #}}}
Note: See TracBrowser for help on using the repository browser.