[cig-commits] r15320 - short/3D/PyLith/trunk/examples/3d/hex8
brad at geodynamics.org
brad at geodynamics.org
Wed Jun 17 10:56:42 PDT 2009
Author: brad
Date: 2009-06-17 10:56:42 -0700 (Wed, 17 Jun 2009)
New Revision: 15320
Modified:
short/3D/PyLith/trunk/examples/3d/hex8/gravity.cfg
short/3D/PyLith/trunk/examples/3d/hex8/gravity_istress.cfg
short/3D/PyLith/trunk/examples/3d/hex8/initial_stress.spatialdb
Log:
Updated gravity parameter settings.
Modified: short/3D/PyLith/trunk/examples/3d/hex8/gravity.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/gravity.cfg 2009-06-17 17:56:19 UTC (rev 15319)
+++ short/3D/PyLith/trunk/examples/3d/hex8/gravity.cfg 2009-06-17 17:56:42 UTC (rev 15320)
@@ -18,8 +18,8 @@
# 'y_neg', and 'z_neg'.
bc = [x_pos,x_neg,y_pos,y_neg,z_neg]
-# Use gravity for this problem.
-use_gravity = True
+# Set gravity field (default is None)
+gravity_field = spatialdata.spatialdb.GravityField
[pylithapp.timedependent.implicit]
# Set the output to an array of 2 output managers.
Modified: short/3D/PyLith/trunk/examples/3d/hex8/gravity_istress.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/gravity_istress.cfg 2009-06-17 17:56:19 UTC (rev 15319)
+++ short/3D/PyLith/trunk/examples/3d/hex8/gravity_istress.cfg 2009-06-17 17:56:42 UTC (rev 15320)
@@ -18,6 +18,9 @@
# 'y_neg', and 'z_neg'.
bc = [x_pos,x_neg,y_pos,y_neg,z_neg]
+# Set gravity field (default is None)
+gravity_field = spatialdata.spatialdb.GravityField
+
[pylithapp.timedependent.implicit]
# Set the output to an array of 2 output managers.
# We will output the solution over the domain and the ground surface.
@@ -30,9 +33,11 @@
# initial stresses
# ----------------------------------------------------------------------
[pylithapp.timedependent.materials.elastic]
+db_initial_stress = spatialdata.spatialdb.SimpleDB
db_initial_stress.iohandler.filename = initial_stress.spatialdb
[pylithapp.timedependent.materials.viscoelastic]
+db_initial_stress = spatialdata.spatialdb.SimpleDB
db_initial_stress.iohandler.filename = initial_stress.spatialdb
# ----------------------------------------------------------------------
@@ -89,12 +94,12 @@
# Give basename for VTK output of state variables.
[pylithapp.timedependent.materials.elastic.output]
-cell_filter = pylith.meshio.CellFilterAvg
+cell_filter = pylith.meshio.CellFilterAvgMesh
writer.filename = gravity_istress-elastic.vtk
[pylithapp.timedependent.materials.viscoelastic.output]
cell_info_fields = [density,mu,lambda,maxwell_time]
-cell_filter = pylith.meshio.CellFilterAvg
+cell_filter = pylith.meshio.CellFilterAvgMesh
writer.filename = gravity_istress-viscoelastic.vtk
[pylithapp.petsc]
Modified: short/3D/PyLith/trunk/examples/3d/hex8/initial_stress.spatialdb
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/initial_stress.spatialdb 2009-06-17 17:56:19 UTC (rev 15319)
+++ short/3D/PyLith/trunk/examples/3d/hex8/initial_stress.spatialdb 2009-06-17 17:56:42 UTC (rev 15320)
@@ -6,10 +6,15 @@
#SPATIAL.ascii 1
SimpleDB {
num-values = 6 // number of stress components
- value-names = stress_xx stress_yy stress_zz stress_xy stress_yz stress_xz // names of the stress components
+
+ // names of the stress components
+ value-names = stress-xx stress-yy stress-zz stress-xy stress-yz stress-xz
+
value-units = Pa Pa Pa Pa Pa Pa // units
+
num-locs = 4 // number of locations: 1 value at the mid-depth for each
// layer of elements.
+
data-dim = 1
space-dim = 3
cs-data = cartesian {
@@ -21,9 +26,12 @@
// (1) x coordinate (m)
// (2) y coordinate (m)
// (3) z coordinate (m)
-// (4) density (kg/m^3)
-// (5) vs (m/s)
-// (6) vp (m/s)
+// (4) stress-xx (Pa)
+// (5) stress-yy (Pa)
+// (6) stress-zz (Pa)
+// (7) stress-xy (Pa)
+// (8) stress-yz (Pa)
+// (9) stress-xz (Pa)
0.0 0.0 -3500.0 -3.064578125e+07 -3.064578125e+07 -8.58081875e+07 0.0 0.0 0.0
0.0 0.0 -2500.0 -2.188984375e+07 -2.188984375e+07 -6.12915625e+07 0.0 0.0 0.0
0.0 0.0 -1500.0 -1.313390625e+07 -1.313390625e+07 -3.67749375e+07 0.0 0.0 0.0
More information about the CIG-COMMITS
mailing list