[cig-commits] r5783 -
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel
willic3 at geodynamics.org
willic3 at geodynamics.org
Fri Jan 12 13:30:43 PST 2007
Author: willic3
Date: 2007-01-12 13:30:43 -0800 (Fri, 12 Jan 2007)
New Revision: 5783
Added:
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicPowerLawMaxwellViscoelasticESF.py
Modified:
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py
Log:
Added new material model to hold original ESF-based power-law model.
Added: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicPowerLawMaxwellViscoelasticESF.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicPowerLawMaxwellViscoelasticESF.py 2007-01-12 21:24:40 UTC (rev 5782)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicPowerLawMaxwellViscoelasticESF.py 2007-01-12 21:30:43 UTC (rev 5783)
@@ -0,0 +1,62 @@
+#!/usr/bin/env python
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+# PyLith by Charles A. Williams, Brad Aagaard, and Matt Knepley
+#
+# Copyright (c) 2004-2006 Rensselaer Polytechnic Institute
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#
+
+from pylith3d.MaterialModel.MaterialModel import MaterialModel
+
+class IsotropicPowerLawMaxwellViscoelasticESF(MaterialModel):
+
+ def __init__(self):
+ MaterialModel.__init__(self)
+
+ # print "Hello from IsotropicPowerLawMaxwellViscoelasticESF.__init__!"
+ # print ""
+ self.materialModel = 9
+ self.numberProperties = 5
+ self.propertyDict = {'density': None,
+ 'youngsModulus': None,
+ 'poissonsRatio': None,
+ 'powerLawExponent': None,
+ 'viscosityCoefficient': None}
+ self.propertyPosition = ['density',
+ 'youngsModulus',
+ 'poissonsRatio',
+ 'powerLawExponent',
+ 'viscosityCoefficient']
+ self.propertyList = [0.0,
+ 0.0,
+ 0.0,
+ 0.0,
+ 0.0]
+ return
+
+# version
+# $Id: IsotropicPowerLawMaxwellViscoelasticESF.py,v 1.2 2004/08/12 16:49:07 willic3 Exp $
+
+# End of file
Modified: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py 2007-01-12 21:24:40 UTC (rev 5782)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py 2007-01-12 21:30:43 UTC (rev 5783)
@@ -36,6 +36,7 @@
"IsotropicLinearMaxwellViscoelastic",
"IsotropicLinearMaxwellViscoelasticESF",
"IsotropicPowerLawMaxwellViscoelastic",
+ "IsotropicPowerLawMaxwellViscoelasticESF",
"IsotropicLinearGenMaxwellViscoelastic"]
def copyright():
More information about the cig-commits
mailing list