[cig-commits] r7216 - short/3D/PyLith/trunk/tests/3d/hex8

willic3 at geodynamics.org willic3 at geodynamics.org
Wed Jun 13 13:58:32 PDT 2007


Author: willic3
Date: 2007-06-13 13:58:32 -0700 (Wed, 13 Jun 2007)
New Revision: 7216

Added:
   short/3D/PyLith/trunk/tests/3d/hex8/eightcells.mesh
   short/3D/PyLith/trunk/tests/3d/hex8/fourcells.mesh
   short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-eightcells.cfg
   short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-fourcells.cfg
   short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-eightcells.spatialdb
   short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-fourcells.spatialdb
Log:
Added 4-cell and 8-cell tests.



Added: short/3D/PyLith/trunk/tests/3d/hex8/eightcells.mesh
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/eightcells.mesh	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/eightcells.mesh	2007-06-13 20:58:32 UTC (rev 7216)
@@ -0,0 +1,77 @@
+mesh = {
+  dimension = 3
+  use-index-zero = true
+  vertices = {
+    dimension = 3
+    count = 27
+    coordinates = {
+             0     -1.0 -1.0 -1.0
+             1     -1.0  0.0 -1.0
+             2     -1.0  1.0 -1.0
+             3      0.0 -1.0 -1.0
+             4      0.0  0.0 -1.0
+             5      0.0  1.0 -1.0
+             6      1.0 -1.0 -1.0
+             7      1.0  0.0 -1.0
+             8      1.0  1.0 -1.0
+             9     -1.0 -1.0  0.0
+            10     -1.0  0.0  0.0
+            11     -1.0  1.0  0.0
+            12      0.0 -1.0  0.0
+            13      0.0  0.0  0.0
+            14      0.0  1.0  0.0
+            15      1.0 -1.0  0.0
+            16      1.0  0.0  0.0
+            17      1.0  1.0  0.0
+            18     -1.0 -1.0  1.0
+            19     -1.0  0.0  1.0
+            20     -1.0  1.0  1.0
+            21      0.0 -1.0  1.0
+            22      0.0  0.0  1.0
+            23      0.0  1.0  1.0
+            24      1.0 -1.0  1.0
+            25      1.0  0.0  1.0
+            26      1.0  1.0  1.0
+    }
+  }
+  cells = {
+    count = 8
+    num-corners = 8
+    simplices = {
+             0       0  3  4  1  9 12 13 10
+             1       3  6  7  4 12 15 16 13
+             2       1  4  5  2 10 13 14 11
+             3       4  7  8  5 13 16 17 14
+             4       9 12 13 10 18 21 22 19
+             5      12 15 16 13 21 24 25 22
+             6      10 13 14 11 19 21 23 20
+             7      13 16 17 14 22 25 26 23
+    }
+    material-ids = {
+             0   0
+             1   0
+             2   0
+             3   0
+             4   0
+             5   0
+             6   0
+             7   0
+    }
+  }
+  group = {
+    name = x_neg
+    type = vertices
+    count = 9
+    indices = {
+      0  1  2  9 10 11 18 19 20
+    }
+  }
+  group = {
+    name = x_pos
+    type = vertices
+    count = 9
+    indices = {
+      6  7  8 15 16 17 24 25 26
+    }
+  }
+}

Added: short/3D/PyLith/trunk/tests/3d/hex8/fourcells.mesh
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/fourcells.mesh	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/fourcells.mesh	2007-06-13 20:58:32 UTC (rev 7216)
@@ -0,0 +1,60 @@
+mesh = {
+  dimension = 3
+  use-index-zero = true
+  vertices = {
+    dimension = 3
+    count = 18
+    coordinates = {
+             0     -1.0 -1.0 -0.5
+             1     -1.0  0.0 -0.5
+             2     -1.0  1.0 -0.5
+             3      0.0 -1.0 -0.5
+             4      0.0  0.0 -0.5
+             5      0.0  1.0 -0.5
+             6      1.0 -1.0 -0.5
+             7      1.0  0.0 -0.5
+             8      1.0  1.0 -0.5
+             9     -1.0 -1.0  0.5
+            10     -1.0  0.0  0.5
+            11     -1.0  1.0  0.5
+            12      0.0 -1.0  0.5
+            13      0.0  0.0  0.5
+            14      0.0  1.0  0.5
+            15      1.0 -1.0  0.5
+            16      1.0  0.0  0.5
+            17      1.0  1.0  0.5
+    }
+  }
+  cells = {
+    count = 4
+    num-corners = 8
+    simplices = {
+             0       0  3  4  1  9 12 13 10
+             1       3  6  7  4 12 15 16 13
+             2       1  4  5  2 10 13 14 11
+             3       4  7  8  5 13 16 17 14
+    }
+    material-ids = {
+             0   0
+             1   0
+             2   0
+             3   0
+    }
+  }
+  group = {
+    name = x_neg
+    type = vertices
+    count = 6
+    indices = {
+      0  1  2  9 10 11
+    }
+  }
+  group = {
+    name = x_pos
+    type = vertices
+    count = 6
+    indices = {
+      6  7  8 15 16 17
+    }
+  }
+}

Added: short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-eightcells.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-eightcells.cfg	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-eightcells.cfg	2007-06-13 20:58:32 UTC (rev 7216)
@@ -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 = eightcells.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-eightcells.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-eightcells.spatialdb
+
+# ----------------------------------------------------------------------
+# PETSc
+# ----------------------------------------------------------------------
+[pylithapp.petsc]
+pc_type = jacobi
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.output]
+filename = shearelastic-eightcells.vtk

Added: short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-fourcells.cfg
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-fourcells.cfg	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearelastic-fourcells.cfg	2007-06-13 20:58:32 UTC (rev 7216)
@@ -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 = fourcells.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-fourcells.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-fourcells.spatialdb
+
+# ----------------------------------------------------------------------
+# PETSc
+# ----------------------------------------------------------------------
+[pylithapp.petsc]
+pc_type = jacobi
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+[pylithapp.problem.formulation.output.output]
+filename = shearelastic-fourcells.vtk

Added: short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-eightcells.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-eightcells.spatialdb	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-eightcells.spatialdb	2007-06-13 20:58:32 UTC (rev 7216)
@@ -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.0  0.0  0.0     0.0  +0.01  0.0
+-1.0  0.0  0.0     0.0  -0.01  0.0

Added: short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-fourcells.spatialdb
===================================================================
--- short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-fourcells.spatialdb	2007-06-13 20:52:06 UTC (rev 7215)
+++ short/3D/PyLith/trunk/tests/3d/hex8/shearxyz-fourcells.spatialdb	2007-06-13 20:58:32 UTC (rev 7216)
@@ -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.0  0.0  0.0     0.0  +0.01  0.0
+-1.0  0.0  0.0     0.0  -0.01  0.0



More information about the cig-commits mailing list