[cig-commits] r11370 - short/3D/PyLith/trunk/examples/twocells/twohex8
willic3 at geodynamics.org
willic3 at geodynamics.org
Fri Mar 7 11:30:43 PST 2008
Author: willic3
Date: 2008-03-07 11:30:42 -0800 (Fri, 07 Mar 2008)
New Revision: 11370
Modified:
short/3D/PyLith/trunk/examples/twocells/twohex8/pylithapp.cfg
Log:
Added the use of a uniform database for this problem, so we would have at
least one example that showed how to do this.
File has been modified so it is easy to switch between SimpleDB and UniformDB,
and this will be described in the manual.
Modified: short/3D/PyLith/trunk/examples/twocells/twohex8/pylithapp.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/twocells/twohex8/pylithapp.cfg 2008-03-07 16:40:53 UTC (rev 11369)
+++ short/3D/PyLith/trunk/examples/twocells/twohex8/pylithapp.cfg 2008-03-07 19:30:42 UTC (rev 11370)
@@ -74,10 +74,17 @@
# in the mesh file.
id = 1
-# The properties for this material are given in the spatial database file
-# 'matprops.spatialdb'.
-db.iohandler.filename = matprops.spatialdb
+# We define uniform material properties for this problem rather than
+# using a spatial database file.
+db = spatialdata.spatialdb.UniformDB
+db.values = [vp,vs,density,viscosity]
+db.data = [5773.502691896258, 3333.333333333333, 2700.0, 1.0e18]
+# If we instead wanted to used the 'matprops.spatialdb' file to define
+# material properties we would comment out the three 'db' lines above
+# and uncomment the line below:
+# db.iohandler.filename = matprops.spatialdb
+
# We are doing 2D quadrature for a quad.
quadrature = pylith.feassemble.quadrature.Quadrature3D
quadrature.cell = pylith.feassemble.FIATLagrange
More information about the cig-commits
mailing list