Changeset 15396 for issm/trunk/src/m/classes/thermal.py
- Timestamp:
- 07/02/13 09:24:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:ignore
-
old new 1 par 2 ad 3 proj-* 1 4 projects 2 5 autom4te.cache
-
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 14311,14313,14316-14506,14508-15387,15390-15392
- Property svn:ignore
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/classes/thermal.py
r14310 r15396 1 #module imports2 1 import numpy 3 2 from fielddisplay import fielddisplay … … 14 13 """ 15 14 16 #properties 17 def __init__(self): 18 # {{{ Properties 15 def __init__(self): # {{{ 19 16 self.spctemperature = float('NaN') 20 17 self.penalty_threshold = 0 … … 29 26 30 27 #}}} 31 def __repr__(self): 32 # {{{ Display 28 def __repr__(self): # {{{ 33 29 string=' Thermal solution parameters:' 34 string="%s\n%s"%(string,fielddisplay(self,'spctemperature','temperature constraints (NaN means no constraint) '))35 string="%s\n%s"%(string,fielddisplay(self,'stabilization','0 ->no, 1->artificial_diffusivity, 2->SUPG'))30 string="%s\n%s"%(string,fielddisplay(self,'spctemperature','temperature constraints (NaN means no constraint) [K]')) 31 string="%s\n%s"%(string,fielddisplay(self,'stabilization','0: no, 1: artificial_diffusivity, 2: SUPG')) 36 32 string="%s\n%s"%(string,fielddisplay(self,'maxiter','maximum number of non linear iterations')) 37 33 string="%s\n%s"%(string,fielddisplay(self,'penalty_lock','stabilize unstable thermal constraints that keep zigzagging after n iteration (default is 0, no stabilization)')) … … 40 36 return string 41 37 #}}} 42 43 def setdefaultparameters(self): 44 # {{{setdefaultparameters 38 def setdefaultparameters(self): # {{{ 45 39 46 40 #Number of unstable constraints acceptable … … 61 55 return self 62 56 #}}} 63 64 57 def checkconsistency(self,md,solution,analyses): # {{{ 65 58 … … 78 71 return md 79 72 # }}} 80 81 def marshall(self,fid): # {{{ 82 WriteData(fid,'object',self,'fieldname','spctemperature','format','DoubleMat','mattype',1) 73 def marshall(self,md,fid): # {{{ 74 WriteData(fid,'object',self,'fieldname','spctemperature','format','DoubleMat','mattype',1,'forcinglength',md.mesh.numberofvertices+1) 83 75 WriteData(fid,'object',self,'fieldname','penalty_threshold','format','Integer') 84 76 WriteData(fid,'object',self,'fieldname','stabilization','format','Integer') … … 88 80 WriteData(fid,'object',self,'fieldname','isenthalpy','format','Boolean') 89 81 # }}} 90
Note:
See TracChangeset
for help on using the changeset viewer.