Changeset 14751
- Timestamp:
- 04/25/13 08:02:02 (12 years ago)
- Location:
- issm/trunk-jpl/src/m/classes
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/classes/matdamageice.m
r14734 r14751 90 90 91 91 %GIA: 92 obj.lithosphere_shear_modulus = 6.7*10^10; %(Pa)93 obj.lithosphere_density = 3.32; %(g/cm^-3)94 obj.mantle_shear_modulus = 1.45*10^11; % (Pa)95 obj.mantle_viscosity = 10^21; %(Pa.s)96 obj.mantle_density = 3.34; %(g/cm^-3)92 obj.lithosphere_shear_modulus = 6.7*10^10; % (Pa) 93 obj.lithosphere_density = 3.32; % (g/cm^-3) 94 obj.mantle_shear_modulus = 1.45*10^11; % (Pa) 95 obj.mantle_viscosity = 10^21; % (Pa.s) 96 obj.mantle_density = 3.34; % (g/cm^-3) 97 97 98 98 end % }}} … … 106 106 md = checkfield(md,'materials.rheology_Z','>',0,'size',[md.mesh.numberofvertices 1]); 107 107 md = checkfield(md,'materials.rheology_law','values',{'None' 'Paterson' 'Arrhenius'}); 108 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0 );109 md = checkfield(md,'materials.lithosphere_density','>',0 );110 md = checkfield(md,'materials.mantle_shear_modulus','>',0 );111 md = checkfield(md,'materials.mantle_viscosity','>',0 );112 md = checkfield(md,'materials.mantle_density','>',0 );108 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0,'numel',1); 109 md = checkfield(md,'materials.lithosphere_density','>',0,'numel',1); 110 md = checkfield(md,'materials.mantle_shear_modulus','>',0,'numel',1); 111 md = checkfield(md,'materials.mantle_viscosity','>',0,'numel',1); 112 md = checkfield(md,'materials.mantle_density','>',0,'numel',1); 113 113 114 114 end % }}} … … 134 134 fielddisplay(obj,'lithosphere_density','Lithosphere density [g/cm^-3]'); 135 135 fielddisplay(obj,'mantle_shear_modulus','Mantle shear modulus [Pa]'); 136 fielddisplay(obj,'mantle_viscosity','Mantle viscosity [Pa .s]');136 fielddisplay(obj,'mantle_viscosity','Mantle viscosity [Pa s]'); 137 137 fielddisplay(obj,'mantle_density','Mantle density [g/cm^-3]'); 138 138 -
issm/trunk-jpl/src/m/classes/matdamageice.py
r14640 r14751 30 30 self.rheology_law = '' 31 31 32 #gia: 33 self.lithosphere_shear_modulus = 0. 34 self.lithosphere_density = 0. 35 self.mantle_shear_modulus = 0. 36 self.mantle_viscosity = 0. 37 self.mantle_density = 0. 38 32 39 if not len(args): 33 40 self.setdefaultparameters() … … 54 61 s+="%s\n" % fielddisplay(self,"rheology_Z","rheology multiplier") 55 62 s+="%s\n" % fielddisplay(self,"rheology_law","law for the temperature dependance of the rheology: 'None', 'Paterson' or 'Arrhenius'") 63 s+="%s\n" % fielddisplay(self,"lithosphere_shear_modulus","Lithosphere shear modulus [Pa]") 64 s+="%s\n" % fielddisplay(self,"lithosphere_density","Lithosphere density [g/cm^-3]") 65 s+="%s\n" % fielddisplay(self,"mantle_shear_modulus","Mantle shear modulus [Pa]") 66 s+="%s\n" % fielddisplay(self,"mantle_viscosity","Mantle viscosity [Pa s]") 67 s+="%s\n" % fielddisplay(self,"mantle_density","Mantle density [g/cm^-3]") 56 68 57 69 return s … … 95 107 #available: none, paterson and arrhenius 96 108 self.rheology_law='Paterson' 109 110 # GIA: 111 self.lithosphere_shear_modulus = 6.7*10**10; # (Pa) 112 self.lithosphere_density = 3.32; # (g/cm^-3) 113 self.mantle_shear_modulus = 1.45*10**11; # (Pa) 114 self.mantle_viscosity = 10**21; # (Pa.s) 115 self.mantle_density = 3.34; # (g/cm^-3) 97 116 # }}} 98 117 def checkconsistency(self,md,solution,analyses): # {{{ … … 105 124 md = checkfield(md,'materials.rheology_Z','>',0,'size',[md.mesh.numberofvertices,1]) 106 125 md = checkfield(md,'materials.rheology_law','values',['None','Paterson','Arrhenius']) 126 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0,'numel',[1]); 127 md = checkfield(md,'materials.lithosphere_density','>',0,'numel',[1]); 128 md = checkfield(md,'materials.mantle_shear_modulus','>',0,'numel',[1]); 129 md = checkfield(md,'materials.mantle_viscosity','>',0,'numel',[1]); 130 md = checkfield(md,'materials.mantle_density','>',0,'numel',[1]); 107 131 108 132 return md … … 125 149 WriteData(fid,'object',self,'class','materials','fieldname','rheology_Z','format','DoubleMat','mattype',1) 126 150 WriteData(fid,'data',StringToEnum(self.rheology_law)[0],'enum',MaterialsRheologyLawEnum(),'format','Integer') 151 152 WriteData(fid,'object',self,'class','materials','fieldname','lithosphere_shear_modulus','format','Double'); 153 WriteData(fid,'object',self,'class','materials','fieldname','lithosphere_density','format','Double'); 154 WriteData(fid,'object',self,'class','materials','fieldname','mantle_shear_modulus','format','Double'); 155 WriteData(fid,'object',self,'class','materials','fieldname','mantle_viscosity','format','Double'); 156 WriteData(fid,'object',self,'class','materials','fieldname','mantle_density','format','Double'); 127 157 # }}} -
issm/trunk-jpl/src/m/classes/matice.m
r14724 r14751 87 87 obj.rheology_law='Paterson'; 88 88 89 % GIA:90 obj.lithosphere_shear_modulus = 6.7*10^10; %(Pa)91 obj.lithosphere_density = 3.32; %(g/cm^-3)92 obj.mantle_shear_modulus = 1.45*10^11; % (Pa)93 obj.mantle_viscosity = 10^21; %(Pa.s)94 obj.mantle_density = 3.34; %(g/cm^-3)89 % GIA: 90 obj.lithosphere_shear_modulus = 6.7*10^10; % (Pa) 91 obj.lithosphere_density = 3.32; % (g/cm^-3) 92 obj.mantle_shear_modulus = 1.45*10^11; % (Pa) 93 obj.mantle_viscosity = 10^21; % (Pa.s) 94 obj.mantle_density = 3.34; % (g/cm^-3) 95 95 96 96 end % }}} … … 103 103 md = checkfield(md,'materials.rheology_n','>',0,'size',[md.mesh.numberofelements 1]); 104 104 md = checkfield(md,'materials.rheology_law','values',{'None' 'Paterson' 'Arrhenius'}); 105 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0 );106 md = checkfield(md,'materials.lithosphere_density','>',0 );107 md = checkfield(md,'materials.mantle_shear_modulus','>',0 );108 md = checkfield(md,'materials.mantle_viscosity','>',0 );109 md = checkfield(md,'materials.mantle_density','>',0 );105 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0,'numel',1); 106 md = checkfield(md,'materials.lithosphere_density','>',0,'numel',1); 107 md = checkfield(md,'materials.mantle_shear_modulus','>',0,'numel',1); 108 md = checkfield(md,'materials.mantle_viscosity','>',0,'numel',1); 109 md = checkfield(md,'materials.mantle_density','>',0,'numel',1); 110 110 111 111 end % }}} … … 130 130 fielddisplay(obj,'lithosphere_density','Lithosphere density [g/cm^-3]'); 131 131 fielddisplay(obj,'mantle_shear_modulus','Mantle shear modulus [Pa]'); 132 fielddisplay(obj,'mantle_viscosity','Mantle viscosity [Pa .s]');132 fielddisplay(obj,'mantle_viscosity','Mantle viscosity [Pa s]'); 133 133 fielddisplay(obj,'mantle_density','Mantle density [g/cm^-3]'); 134 134 end % }}} -
issm/trunk-jpl/src/m/classes/matice.py
r14640 r14751 14 14 15 15 def __init__(self): # {{{ 16 self.rho_ice = 0. 17 self.rho_water = 0. 18 self.rho_freshwater = 0. 19 self.mu_water = 0. 20 self.heatcapacity = 0. 21 self.latentheat = 0. 22 self.thermalconductivity = 0. 23 self.meltingpoint = 0. 24 self.beta = 0. 25 self.mixed_layer_capacity = 0. 26 self.thermal_exchange_velocity = 0. 27 self.rheology_B = float('NaN') 28 self.rheology_n = float('NaN') 29 self.rheology_law = '' 16 self.rho_ice = 0. 17 self.rho_water = 0. 18 self.rho_freshwater = 0. 19 self.mu_water = 0. 20 self.heatcapacity = 0. 21 self.latentheat = 0. 22 self.thermalconductivity = 0. 23 self.meltingpoint = 0. 24 self.beta = 0. 25 self.mixed_layer_capacity = 0. 26 self.thermal_exchange_velocity = 0. 27 self.rheology_B = float('NaN') 28 self.rheology_n = float('NaN') 29 self.rheology_law = '' 30 31 #gia: 32 self.lithosphere_shear_modulus = 0. 33 self.lithosphere_density = 0. 34 self.mantle_shear_modulus = 0. 35 self.mantle_viscosity = 0. 36 self.mantle_density = 0. 30 37 31 38 self.setdefaultparameters() … … 48 55 string="%s\n%s"%(string,fielddisplay(self,"rheology_n","Glen's flow law exponent")) 49 56 string="%s\n%s"%(string,fielddisplay(self,"rheology_law","law for the temperature dependance of the rheology: 'None', 'Paterson' or 'Arrhenius'")) 57 string="%s\n%s"%(string,fielddisplay(self,"lithosphere_shear_modulus","Lithosphere shear modulus [Pa]")) 58 string="%s\n%s"%(string,fielddisplay(self,"lithosphere_density","Lithosphere density [g/cm^-3]")) 59 string="%s\n%s"%(string,fielddisplay(self,"mantle_shear_modulus","Mantle shear modulus [Pa]")) 60 string="%s\n%s"%(string,fielddisplay(self,"mantle_viscosity","Mantle viscosity [Pa s]")) 61 string="%s\n%s"%(string,fielddisplay(self,"mantle_density","Mantle density [g/cm^-3]")) 50 62 51 63 return string … … 88 100 #available: none, paterson and arrhenius 89 101 self.rheology_law='Paterson' 102 103 # GIA: 104 self.lithosphere_shear_modulus = 6.7*10**10 # (Pa) 105 self.lithosphere_density = 3.32 # (g/cm^-3) 106 self.mantle_shear_modulus = 1.45*10**11 # (Pa) 107 self.mantle_viscosity = 10**21 # (Pa.s) 108 self.mantle_density = 3.34 # (g/cm^-3) 109 90 110 return self 91 111 #}}} … … 98 118 md = checkfield(md,'materials.rheology_n','>',0,'size',[md.mesh.numberofelements]) 99 119 md = checkfield(md,'materials.rheology_law','values',['None','Paterson','Arrhenius']) 120 md = checkfield(md,'materials.lithosphere_shear_modulus','>',0,'numel',[1]); 121 md = checkfield(md,'materials.lithosphere_density','>',0,'numel',[1]); 122 md = checkfield(md,'materials.mantle_shear_modulus','>',0,'numel',[1]); 123 md = checkfield(md,'materials.mantle_viscosity','>',0,'numel',[1]); 124 md = checkfield(md,'materials.mantle_density','>',0,'numel',[1]); 100 125 return md 101 126 # }}} … … 116 141 WriteData(fid,'object',self,'class','materials','fieldname','rheology_n','format','DoubleMat','mattype',2) 117 142 WriteData(fid,'data',StringToEnum(self.rheology_law)[0],'enum',MaterialsRheologyLawEnum(),'format','Integer') 143 144 WriteData(fid,'object',self,'class','materials','fieldname','lithosphere_shear_modulus','format','Double'); 145 WriteData(fid,'object',self,'class','materials','fieldname','lithosphere_density','format','Double'); 146 WriteData(fid,'object',self,'class','materials','fieldname','mantle_shear_modulus','format','Double'); 147 WriteData(fid,'object',self,'class','materials','fieldname','mantle_viscosity','format','Double'); 148 WriteData(fid,'object',self,'class','materials','fieldname','mantle_density','format','Double'); 118 149 # }}} -
issm/trunk-jpl/src/m/classes/surfaceforcings.py
r14640 r14751 13 13 14 14 def __init__(self): # {{{ 15 self.precipitation = float('NaN')16 self.mass_balance = float('NaN')17 self.ispdd = 018 self.issmbgradients = 019 self.isdelta18o = 020 self.href = float('NaN')21 self.smbref = float('NaN')22 self.b_pos = float('NaN')23 self.b_neg = float('NaN')24 self.monthlytemperatures = float('NaN')25 self.delta18o = float('NaN')26 self.delta18o_surface = float('NaN')27 self.temperatures_presentday = float('NaN')28 self.temperatures_lgm = float('NaN')15 self.precipitation = float('NaN') 16 self.mass_balance = float('NaN') 17 self.ispdd = 0 18 self.issmbgradients = 0 19 self.isdelta18o = 0 20 self.href = float('NaN') 21 self.smbref = float('NaN') 22 self.b_pos = float('NaN') 23 self.b_neg = float('NaN') 24 self.monthlytemperatures = float('NaN') 25 self.delta18o = float('NaN') 26 self.delta18o_surface = float('NaN') 27 self.temperatures_presentday = float('NaN') 28 self.temperatures_lgm = float('NaN') 29 29 self.precipitations_presentday = float('NaN') 30 30
Note:
See TracChangeset
for help on using the changeset viewer.