/[escript]/trunk/modellib/py_src/materials.py
ViewVC logotype

Diff of /trunk/modellib/py_src/materials.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2060 by ksteube, Thu Sep 25 06:43:44 2008 UTC revision 2061 by jfenwick, Wed Nov 19 03:40:21 2008 UTC
# Line 59  class MaterialTable(ParameterSet): Line 59  class MaterialTable(ParameterSet):
59         """         """
60         A simple matrial table which allows setting physical ivar of a model         A simple matrial table which allows setting physical ivar of a model
61    
62         @ivar density (in/out): density         @ivar density: density(in/out)
63         @ivar heat_capacity (in/out):  heat_capacity         @ivar heat_capacity:  heat_capacity(in/out)
64         @ivar thermal_permabilty (in/out): permabilty         @ivar thermal_permabilty: permabilty(in/out)
65         @ivar viscosity (in/out): viscosity         @ivar viscosity: viscosity(in/out)
66         @ivar radiation_coefficient (in/out):         @ivar radiation_coefficient: (in/out)
67         """         """
68         def __init__(self,**kwargs):         def __init__(self,**kwargs):
69             super(MaterialTable, self).__init__(**kwargs)             super(MaterialTable, self).__init__(**kwargs)
# Line 75  class MaterialTable(ParameterSet): Line 75  class MaterialTable(ParameterSet):
75    
76  class SimpleEarthModel(ParameterSet):  class SimpleEarthModel(ParameterSet):
77         """         """
78         B simple matrial table run convection models::         A simple matrial table run convection models::
79    
80             density=density0*(1-expansion_coefficient*(temperature-reference_temperature))             density=density0*(1-expansion_coefficient*(temperature-reference_temperature))
81             viscocity=viscocity0*(exp(alpha*(1/reference_temperature - 1/temperature))             viscocity=viscocity0*(exp(alpha*(1/reference_temperature - 1/temperature))
82    
83         @ivar gravity (in): gravity constants (9.81)         @ivar gravity: gravity constants (9.81) (in)
84         @ivar reference_temperature (in): reference temperature         @ivar reference_temperature: reference temperature (in)
85         @ivar density0 (in): density at reference temperature         @ivar density0: density at reference temperature  (in)
86         @ivar viscosity0 (in): viscosity0 at reference temperature         @ivar viscosity0: viscosity0 at reference temperature  (in)
87         @ivar alpha (in): viscosity contrast         @ivar alpha: viscosity contrast  (in)
88         @ivar expansion_coefficient (in): Raleigh number         @ivar expansion_coefficient: Raleigh number  (in)
89         @ivar heat_capacity (in): heat capacity         @ivar heat_capacity: heat capacity  (in)
90         @ivar thermal_permabilty (in): permabilty         @ivar thermal_permabilty: permabilty  (in)
91         @ivar temperature (in): temperature         @ivar temperature: temperature  (in)
92         @ivar viscosity (out): viscosity         @ivar viscosity: viscosity  (out)
93         @ivar density (out): density         @ivar density: density  (out)
94         """         """
95         def __init__(self,**kwargs):         def __init__(self,**kwargs):
96             super(SimpleEarthModel, self).__init__(**kwargs)             super(SimpleEarthModel, self).__init__(**kwargs)
# Line 115  class SimpleSolidMaterial(MaterialTable) Line 115  class SimpleSolidMaterial(MaterialTable)
115         A simple matrial table which allows setting physical parameters of         A simple matrial table which allows setting physical parameters of
116         a model.         a model.
117    
118         @ivar density (in/out): density         @ivar density: density  (in/out)
119         @ivar heat_capacity (in/out): heat_capacity         @ivar heat_capacity: heat_capacity  (in/out)
120         @ivar thermal_permabilty (in/out): permabilty         @ivar thermal_permabilty: permabilty  (in/out)
121         @ivar viscosity (in/out): viscosity         @ivar viscosity: viscosity  (in/out)
122         @ivar radiation_coefficient (in/out):         @ivar radiation_coefficient:  (in/out)
123         """         """
124         def __init__(self,**kwargs):         def __init__(self,**kwargs):
125             super(MaterialTable, self).__init__(**kwargs)             super(MaterialTable, self).__init__(**kwargs)
# Line 130  class SimpleFluidMaterial(MaterialTable) Line 130  class SimpleFluidMaterial(MaterialTable)
130         """         """
131         A simple matrial table which allows setting physical ivar of a model.         A simple matrial table which allows setting physical ivar of a model.
132    
133         @ivar density (in/out): density         @ivar density: density(in/out)
134         @ivar heat_capacity (in/out): heat_capacity         @ivar heat_capacity: heat_capacity(in/out)
135         @ivar thermal_permabilty (in/out): permabilty         @ivar thermal_permabilty: permabilty (in/out)
136         @ivar viscosity (in/out): viscosity         @ivar viscosity: viscosity (in/out)
137         @ivar radiation_coefficient (in/out):         @ivar radiation_coefficient:(in/out)
138         """         """
139         def __init__(self,**kwargs):         def __init__(self,**kwargs):
140             super(MaterialTable, self).__init__(**kwargs)             super(MaterialTable, self).__init__(**kwargs)

Legend:
Removed from v.2060  
changed lines
  Added in v.2061

  ViewVC Help
Powered by ViewVC 1.1.26