[cig-commits] r7212 - short/3D/PyLith/trunk/tests/3d/hex8
willic3 at geodynamics.org
willic3 at geodynamics.org
Wed Jun 13 12:52:48 PDT 2007
Author: willic3
Date: 2007-06-13 12:52:47 -0700 (Wed, 13 Jun 2007)
New Revision: 7212
Added:
short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-threecells.cfg
short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-threecells.spatialdb
short/3D/PyLith/trunk/tests/3d/hex8/threecells.mesh
Removed:
short/3D/PyLith/trunk/tests/3d/hex8/matprops-twocells.spatialdb
Modified:
short/3D/PyLith/trunk/tests/3d/hex8/matprops.spatialdb
short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-twocells.cfg
Log:
Added three-cell example.
Altered default elastic material properties to give shear modulus of
30 GPa and Poisson's ratio of 0.25.
Deleted: short/3D/PyLith/trunk/tests/3d/hex8/matprops-twocells.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/matprops-twocells.spatialdb 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/matprops-twocells.spatialdb 2007-06-13 19:52:47 UTC (rev 7212)
@@ -1,14 +0,0 @@
-#SPATIAL.ascii 1
-SimpleDB {
- num-values = 3
- value-names = density vs vp
- value-units = kg/m^3 m/s m/s
- num-locs = 1
- data-dim = 0
- space-dim = 3
- cs-data = cartesian {
- to-meters = 1.0
- space-dim = 3
- }
-}
-0.0 0.0 0.0 2700.0 3333.333333333333 5773.502691896258
Modified: short/3D/PyLith/trunk/tests/3d/hex8/matprops.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/matprops.spatialdb 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/matprops.spatialdb 2007-06-13 19:52:47 UTC (rev 7212)
@@ -11,4 +11,4 @@
space-dim = 3
}
}
-0.0 0.0 0.0 2500.0 3000.0 5291.502622129181
+0.0 0.0 0.0 2700.0 3333.333333333333 5773.502691896258
Added: short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-threecells.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-threecells.cfg 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-threecells.cfg 2007-06-13 19:52:47 UTC (rev 7212)
@@ -0,0 +1,81 @@
+# -*- Python -*-
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# journal
+# ----------------------------------------------------------------------
+[pylithapp.journal.info]
+timedependent = 1
+explicit = 1
+implicit = 1
+petsc = 1
+solverlinear = 1
+meshioascii = 1
+homogeneous = 1
+implicitelasticity = 1
+quadrature3d = 1
+fiatsimplex = 1
+
+# ----------------------------------------------------------------------
+# mesh_generator
+# ----------------------------------------------------------------------
+[pylithapp.mesh_generator]
+debug = 1
+importer = pylith.meshio.MeshIOAscii
+
+[pylithapp.mesh_generator.importer]
+filename = threecells.mesh
+coordsys.space_dim = 3
+
+# ----------------------------------------------------------------------
+# problem
+# ----------------------------------------------------------------------
+[pylithapp.timedependent]
+total_time = 0.0*s
+default_dt = 1.0*s
+dimension = 3
+formulation = pylith.problems.Implicit
+bc = pylith.bc.BCSixSides
+
+# ----------------------------------------------------------------------
+# materials
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.materials]
+material = pylith.materials.ElasticIsotropic3D
+
+[pylithapp.timedependent.materials.material]
+label = elastic material
+id = 0
+db.iohandler.filename = matprops.spatialdb
+quadrature = pylith.feassemble.quadrature.Quadrature3D
+quadrature.cell = pylith.feassemble.FIATLagrange
+quadrature.cell.dimension = 3
+
+# ----------------------------------------------------------------------
+# boundary conditions
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.bc.x_neg]
+fixed_dof = [0, 1, 2]
+id = 3
+label = x_neg
+db.label = Dirichlet BC -x edge
+db.iohandler.filename = shearxyz-threecells.spatialdb
+
+[pylithapp.timedependent.bc.x_pos]
+fixed_dof = [0, 1, 2]
+id = 4
+label = x_pos
+db.label = Dirichlet BC +x edge
+db.iohandler.filename = shearxyz-threecells.spatialdb
+
+# ----------------------------------------------------------------------
+# PETSc
+# ----------------------------------------------------------------------
+[pylithapp.petsc]
+pc_type = jacobi
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.output]
+filename = shearelastic-threecells.vtk
Modified: short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-twocells.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-twocells.cfg 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-twocells.cfg 2007-06-13 19:52:47 UTC (rev 7212)
@@ -46,7 +46,7 @@
[pylithapp.timedependent.materials.material]
label = elastic material
id = 0
-db.iohandler.filename = matprops-twocells.spatialdb
+db.iohandler.filename = matprops.spatialdb
quadrature = pylith.feassemble.quadrature.Quadrature3D
quadrature.cell = pylith.feassemble.FIATLagrange
quadrature.cell.dimension = 3
Added: short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-threecells.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-threecells.spatialdb 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-threecells.spatialdb 2007-06-13 19:52:47 UTC (rev 7212)
@@ -0,0 +1,15 @@
+#SPATIAL.ascii 1
+SimpleDB {
+ num-values = 3
+ value-names = dof-0 dof-1 dof-2
+ value-units = m m m
+ num-locs = 2
+ data-dim = 1
+ space-dim = 3
+ cs-data = cartesian {
+ to-meters = 1.0
+ space-dim = 3
+ }
+}
++1.5 0.0 0.0 0.0 +0.015 0.0
+-1.5 0.0 0.0 0.0 -0.015 0.0
Added: short/3D/PyLith/trunk/tests/3d/hex8/threecells.mesh
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/threecells.mesh 2007-06-13 19:20:09 UTC (rev 7211)
+++ short/3D/PyLith/trunk/tests/3d/hex8/threecells.mesh 2007-06-13 19:52:47 UTC (rev 7212)
@@ -0,0 +1,56 @@
+mesh = {
+ dimension = 3
+ use-index-zero = true
+ vertices = {
+ dimension = 3
+ count = 16
+ coordinates = {
+ 0 -1.5 -0.5 -0.5
+ 1 -1.5 0.5 -0.5
+ 2 -0.5 -0.5 -0.5
+ 3 -0.5 0.5 -0.5
+ 4 0.5 -0.5 -0.5
+ 5 0.5 0.5 -0.5
+ 6 1.5 -0.5 -0.5
+ 7 1.5 0.5 -0.5
+ 8 -1.5 -0.5 0.5
+ 9 -1.5 0.5 0.5
+ 10 -0.5 -0.5 0.5
+ 11 -0.5 0.5 0.5
+ 12 0.5 -0.5 0.5
+ 13 0.5 0.5 0.5
+ 14 1.5 -0.5 0.5
+ 15 1.5 0.5 0.5
+ }
+ }
+ cells = {
+ count = 3
+ num-corners = 8
+ simplices = {
+ 0 0 2 3 1 8 10 11 9
+ 1 2 4 5 3 10 12 13 11
+ 2 4 6 7 5 12 14 15 13
+ }
+ material-ids = {
+ 0 0
+ 1 0
+ 2 0
+ }
+ }
+ group = {
+ name = x_neg
+ type = vertices
+ count = 4
+ indices = {
+ 0 1 6 7
+ }
+ }
+ group = {
+ name = x_pos
+ type = vertices
+ count = 4
+ indices = {
+ 8 9 14 15
+ }
+ }
+}
More information about the cig-commits
mailing list