Changeset 12117


Ignore:
Timestamp:
04/24/12 21:42:26 (13 years ago)
Author:
Eric.Larour
Message:

Added defaults for materials class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/materials.py

    r12038 r12117  
    1919                self.rheology_n   = float('NaN')
    2020                self.rheology_law = "";
     21
     22                self.setdefaultparameters()
    2123                #}}}
    2224        def __repr__(obj):
     
    4042                return string
    4143                #}}}
     44        def setdefaultparameters(obj):
     45                # {{{setdefaultparameters
     46                        #ice density (kg/m^3)
     47                        obj.rho_ice=917
     48
     49                        #water density (kg/m^3)
     50                        obj.rho_water=1023
     51
     52                        #water viscosity (N.s/m^2)
     53                        obj.mu_water=0.001787 
     54
     55                        #ice heat capacity cp (J/kg/K)
     56                        obj.heatcapacity=2093
     57
     58                        #ice latent heat of fusion L (J/kg)
     59                        obj.latentheat=3.34*10**5
     60
     61                        #ice thermal conductivity (W/m/K)
     62                        obj.thermalconductivity=2.4
     63
     64                        #the melting point of ice at 1 atmosphere of pressure in K
     65                        obj.meltingpoint=273.15
     66
     67                        #rate of change of melting point with pressure (K/Pa)
     68                        obj.beta=9.8*10**-8
     69
     70                        #mixed layer (ice-water interface) heat capacity (J/kg/K)
     71                        obj.mixed_layer_capacity=3974
     72
     73                        #thermal exchange velocity (ice-water interface) (m/s)
     74                        obj.thermal_exchange_velocity=1.00*10**-4
     75
     76                        #Rheology law: what is the temperature dependence of B with T
     77                        #available: none, paterson and arrhenius
     78                        obj.rheology_law='Paterson'
     79                        return obj
     80                #}}}
Note: See TracChangeset for help on using the changeset viewer.