Changeset 22122
- Timestamp:
- 09/26/17 11:59:15 (8 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/balancethickness.py
r21049 r22122 15 15 self.thickening_rate = float('NaN') 16 16 self.stabilization = 0 17 18 self.omega = float('NaN') 17 19 18 20 #set defaults … … 44 46 md = checkfield(md,'fieldname','balancethickness.thickening_rate','size',[md.mesh.numberofvertices],'NaN',1,'Inf',1) 45 47 md = checkfield(md,'fieldname','balancethickness.stabilization','size',[1],'values',[0,1,2,3]) 46 48 #md = checkfield(md,'fieldname','balancethickness.omega','size', [md.mesh.numberofvertices],'NaN',1,'Inf',1,'>=',0); 47 49 return md 48 50 # }}} … … 54 56 WriteData(fid,prefix,'object',self,'fieldname','thickening_rate','format','DoubleMat','mattype',1,'scale',1./yts) 55 57 WriteData(fid,prefix,'object',self,'fieldname','stabilization','format','Integer') 58 WriteData(fid,prefix,'object',self,'fieldname','omega','format','DoubleMat','mattype',1); 56 59 # }}} -
issm/trunk-jpl/src/m/classes/constants.py
r21049 r22122 13 13 def __init__(self): # {{{ 14 14 self.g = 0 15 self.omega = 0 15 16 self.yts = 0 16 17 self.referencetemperature = 0 … … 24 25 25 26 string="%s\n%s"%(string,fielddisplay(self,"g","gravitational acceleration [m/s^2]")) 27 string="%s\n%s"%(string,fielddisplay(self,"omega","angular velocity of Earth [rad/s]")) 26 28 string="%s\n%s"%(string,fielddisplay(self,"yts","number of seconds in a year [s/yr]")) 27 29 string="%s\n%s"%(string,fielddisplay(self,"referencetemperature","reference temperature used in the enthalpy model [K]")) … … 33 35 #acceleration due to gravity (m/s^2) 34 36 self.g=9.81 37 38 #Earth's rotation speed 39 self.omega = 7.292*1e-5; 35 40 36 41 #converstion from year to seconds … … 45 50 46 51 md = checkfield(md,'fieldname','constants.g','>',0,'size',[1]) 52 md = checkfield(md,'fieldname','constants.omega','>=',0,'size',[1]) 47 53 md = checkfield(md,'fieldname','constants.yts','>',0,'size',[1]) 48 54 md = checkfield(md,'fieldname','constants.referencetemperature','size',[1]) -
issm/trunk-jpl/src/m/classes/esa.py
r21650 r22122 15 15 16 16 def __init__(self): # {{{ 17 self.deltathickness = np.nan17 self.deltathickness = float('NaN') 18 18 self.love_h = 0 #provided by PREM model() 19 19 self.love_l = 0 #ideam -
issm/trunk-jpl/src/m/classes/fourierlove.py
r22004 r22122 68 68 self.g0=10 # m/s^2 69 69 self.r0=6378*1e3 #m 70 self.mu0=1 0^11 # Pa70 self.mu0=1e11 # Pa 71 71 self.allow_layer_deletion=1 72 72 self.forcing_type = 11 -
issm/trunk-jpl/src/m/classes/model.py
r22057 r22122 48 48 from transient import transient 49 49 from giaivins import giaivins 50 from esa import esa 50 51 from autodiff import autodiff 51 52 from inversion import inversion … … 111 112 self.love = fourierlove() 112 113 self.gia = giaivins() 114 self.esa = esa() 113 115 114 116 self.autodiff = autodiff() … … 155 157 'calving', 156 158 'gia', 159 'esa', 157 160 'love', 158 161 'autodiff', … … 197 200 string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("levelset","[%s,%s]" % ("1x1",obj.levelset.__class__.__name__),"parameters for moving boundaries (level-set method)")) 198 201 string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("calving","[%s,%s]" % ("1x1",obj.calving.__class__.__name__),"parameters for calving")) 202 string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("gia","[%s,%s]" % ("1x1",obj.gia.__class__.__name__),"parameters for gia solution")) 199 203 string="%s\n%s" % (string,'%19s: %-22s -- %s' % ("love","[%s,%s]" % ("1x1",obj.love.__class__.__name__),"parameters for love solution")) 204 string="%s\n%s" % (string,'%19s: %-22s -- %s' % ("esa","[%s,%s]" % ("1x1",obj.esa.__class__.__name__),"parameters for elastic adjustment solution")) 200 205 string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("autodiff","[%s,%s]" % ("1x1",obj.autodiff.__class__.__name__),"automatic differentiation parameters")) 201 206 string="%s\n%s" % (string,"%19s: %-22s -- %s" % ("inversion","[%s,%s]" % ("1x1",obj.inversion.__class__.__name__),"parameters for inverse methods")) -
issm/trunk-jpl/src/m/classes/slr.py
r22107 r22122 44 44 string=' slr parameters:' 45 45 string="%s\n%s"%(string,fielddisplay(self,'deltathickness','thickness change (main loading of the slr solution core [m]')) 46 string="%s\n%s"%(string,fielddisplay(self,'sealevel','current sea level (prior to computation) [m]')) 46 47 string="%s\n%s"%(string,fielddisplay(self,'reltol','sea level rise relative convergence criterion, (NaN: not applied)')) 47 48 string="%s\n%s"%(string,fielddisplay(self,'abstol','sea level rise absolute convergence criterion, (default, NaN: not applied')) … … 60 61 string="%s\n%s"%(string,fielddisplay(self,'rotation','earth rotational potential perturbation')) 61 62 string="%s\n%s"%(string,fielddisplay(self,'ocean_area_scaling','correction for model representation of ocean area [default: No correction]')) 63 string="%s\n%s"%(string,fielddisplay(self,'steric_rate','rate of steric ocean expansion (in mm/yr)')) 62 64 string="%s\n%s"%(string,fielddisplay(self,'degacc','accuracy (default .01 deg) for numerical discretization of the Green''s functions')) 63 65 string="%s\n%s"%(string,fielddisplay(self,'transitions','indices into parts of the mesh that will be icecaps'))
Note:
See TracChangeset
for help on using the changeset viewer.