[cig-commits] r5369 -
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel
willic3 at geodynamics.org
willic3 at geodynamics.org
Tue Nov 28 19:28:08 PST 2006
Author: willic3
Date: 2006-11-28 19:28:08 -0800 (Tue, 28 Nov 2006)
New Revision: 5369
Added:
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicLinearMaxwellViscoelasticESF.py
Modified:
short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py
Log:
Instead of replacing Maxwell model with new method, keep old one as a
different material model.
Added: short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicLinearMaxwellViscoelasticESF.py
===================================================================
--- short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicLinearMaxwellViscoelasticESF.py 2006-11-28 23:28:36 UTC (rev 5368)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/IsotropicLinearMaxwellViscoelasticESF.py 2006-11-29 03:28:08 UTC (rev 5369)
@@ -0,0 +1,57 @@
+#!/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 IsotropicLinearMaxwellViscoelasticESF(MaterialModel):
+
+ def __init__(self):
+ # print "Hello from IsotropicLinearMaxwellViscoelasticESF.__init__!"
+ # print ""
+ self.materialModel = 8
+ self.numberProperties = 4
+ self.propertyDict = {'density': None,
+ 'youngsModulus': None,
+ 'poissonsRatio': None,
+ 'viscosity': None}
+ self.propertyPosition = ['density',
+ 'youngsModulus',
+ 'poissonsRatio',
+ 'viscosity']
+ self.propertyList = [0.0,
+ 0.0,
+ 0.0,
+ 0.0]
+ return
+
+# version
+# $Id: IsotropicLinearMaxwellViscoelasticESF.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 2006-11-28 23:28:36 UTC (rev 5368)
+++ short/3D/PyLith/branches/pylith-0.8/pylith3d/pylith3d/MaterialModel/__init__.py 2006-11-29 03:28:08 UTC (rev 5369)
@@ -34,6 +34,7 @@
__all__ = ["MaterialModel",
"IsotropicLinearElastic",
"IsotropicLinearMaxwellViscoelastic",
+ "IsotropicLinearMaxwellViscoelasticESF",
"IsotropicPowerLawMaxwellViscoelastic",
"IsotropicLinearGenMaxwellViscoelastic"]
More information about the cig-commits
mailing list