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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 127 - (hide annotations)
Fri Jul 22 05:11:29 2005 UTC (17 years, 8 months ago) by jgs
Original Path: trunk/esys2/modellib/py_src/materials.py
File MIME type: text/x-python
File size: 1970 byte(s)
moved modellib code to esys2/modellib/py_src

1 jgs 127 # $Id$
2    
3    
4     from esys.modelframe import Model
5    
6     class MaterialTable(Model):
7     """@brief a simple matrial table which allows setting physical parameters of a model
8    
9     @param density (in/out) - density
10     @param c_p (in/out) - c_p
11     @param thermal_permabilty (in/out) - permabilty
12     @param viscosity (in/out) - viscosity
13     @param radiation_coefficient (in/out) -
14    
15     """
16     def __init__(self,debug=False):
17     Model.__init__(self,debug=debug)
18     self.declareParameter(g=9.81, \
19     density=1., \
20     c_p=1., \
21     thermal_permabilty=1., \
22     radiation_coefficient=0.)
23    
24     class SimpleSolidMaterial(MaterialTable):
25     """@brief a simple matrial table which allows setting physical parameters of a model
26    
27     @param density (in/out) - density
28     @param c_p (in/out) - c_p
29     @param thermal_permabilty (in/out) - permabilty
30     @param viscosity (in/out) - viscosity
31     @param radiation_coefficient (in/out) -
32    
33     """
34     def __init__(self,debug=False):
35     MaterialTable.__init__(self,debug=debug)
36     self.declareParameter(lame_lambda=1.,\
37     lame_my=1.)
38    
39     class SimpleFluidMaterial(MaterialTable):
40     """@brief a simple matrial table which allows setting physical parameters of a model
41    
42     @param density (in/out) - density
43     @param c_p (in/out) - c_p
44     @param thermal_permabilty (in/out) - permabilty
45     @param viscosity (in/out) - viscosity
46     @param radiation_coefficient (in/out) -
47    
48     """
49     def __init__(self,debug=False):
50     MaterialTable.__init__(self,debug=debug)
51     self.declareParameter(viscosity=1., \
52     hydraulic_conductivity=1.e-4)
53    

Properties

Name Value
svn:eol-style native
svn:keywords Author Date Id Revision

  ViewVC Help
Powered by ViewVC 1.1.26