[cig-commits] r7415 - short/3D/PyLith/trunk/examples/3d/hex8

brad at geodynamics.org brad at geodynamics.org
Fri Jun 22 23:56:37 PDT 2007


Author: brad
Date: 2007-06-22 23:56:37 -0700 (Fri, 22 Jun 2007)
New Revision: 7415

Added:
   short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg
Removed:
   short/3D/PyLith/trunk/examples/3d/hex8/hex8_1000m.cfg
Modified:
   short/3D/PyLith/trunk/examples/3d/hex8/dislocation.cfg
   short/3D/PyLith/trunk/examples/3d/hex8/mat_elastic.spatialdb
   short/3D/PyLith/trunk/examples/3d/hex8/shearxy.cfg
Log:
Switched to using pylithapp.cfg file as in other examples. Commented material database file.

Modified: short/3D/PyLith/trunk/examples/3d/hex8/dislocation.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/dislocation.cfg	2007-06-23 06:55:46 UTC (rev 7414)
+++ short/3D/PyLith/trunk/examples/3d/hex8/dislocation.cfg	2007-06-23 06:56:37 UTC (rev 7415)
@@ -4,10 +4,10 @@
 # This is not a self-contained simulation configuration file. This
 # file only specifies parameters specific to the boundary and
 # interface conditions. The general parameters are specificed in the
-# hex8_1000m file.
+# pylithapp.cfg file which PyLith reads by default.
 #
 # To run the simulation:
-# pylith hex8_1000m.cfg dislocation.cfg
+# pylith dislocation.cfg
 
 # ----------------------------------------------------------------------
 # problem

Deleted: short/3D/PyLith/trunk/examples/3d/hex8/hex8_1000m.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/hex8_1000m.cfg	2007-06-23 06:55:46 UTC (rev 7414)
+++ short/3D/PyLith/trunk/examples/3d/hex8/hex8_1000m.cfg	2007-06-23 06:56:37 UTC (rev 7415)
@@ -1,92 +0,0 @@
-# -*- Python -*-
-[pylithapp]
-
-# ----------------------------------------------------------------------
-# journal
-# ----------------------------------------------------------------------
-# Turn on some journals to show progress.
-[pylithapp.journal.info]
-timedependent = 1
-implicit = 1
-petsc = 1
-solverlinear = 1
-meshiocubit = 1
-implicitelasticity = 1
-faultcohesivekin = 1
-#quadrature3d = 1
-#fiatlagrange = 1
-
-# ----------------------------------------------------------------------
-# mesh_generator
-# ----------------------------------------------------------------------
-[pylithapp.mesh_generator]
-#debug = 1   ; uncomment to get very verbose mesh information
-
-# Change the default mesh importer to the CUBIT importer.
-importer = pylith.meshio.MeshIOCubit
-
-[pylithapp.mesh_generator.importer]
-# Set filename of mesh to import.
-filename = box_hex8_1000m.exo
-
-# ----------------------------------------------------------------------
-# materials
-# ----------------------------------------------------------------------
-[pylithapp.timedependent]
-# Use the local (user-defined) 4 item materials container
-materials = fourmaterials
-
-[pylithapp.timedependent.materials]
-# Change the default material properties for the viscoelatic materials
-# to elastic materials
-viscoelastic_neg = pylith.materials.ElasticIsotropic3D
-viscoelastic_pos = pylith.materials.ElasticIsotropic3D
-
-# The lines below set the parameters for each material in the
-# materials container.
-
-[pylithapp.timedependent.materials.elastic_pos]
-label = Elastic material +x
-id = 1
-db.iohandler.filename = mat_elastic.spatialdb
-quadrature = pylith.feassemble.quadrature.Quadrature3D
-quadrature.cell = pylith.feassemble.FIATLagrange
-quadrature.cell.dimension = 3
-
-[pylithapp.timedependent.materials.elastic_neg]
-label = Elastic material -x
-id = 2
-db.iohandler.filename = mat_elastic.spatialdb
-quadrature = pylith.feassemble.quadrature.Quadrature3D
-quadrature.cell = pylith.feassemble.FIATLagrange
-quadrature.cell.dimension = 3
-
-[pylithapp.timedependent.materials.viscoelastic_pos]
-label = Viscoelastic material +x
-id = 3
-db.iohandler.filename = mat_elastic.spatialdb
-quadrature = pylith.feassemble.quadrature.Quadrature3D
-quadrature.cell = pylith.feassemble.FIATLagrange
-quadrature.cell.dimension = 3
-
-[pylithapp.timedependent.materials.viscoelastic_neg]
-label = Viscoelastic material -x
-id = 4
-db.iohandler.filename = mat_elastic.spatialdb
-quadrature = pylith.feassemble.quadrature.Quadrature3D
-quadrature.cell = pylith.feassemble.FIATLagrange
-quadrature.cell.dimension = 3
-
-# ----------------------------------------------------------------------
-# PETSc
-# ----------------------------------------------------------------------
-# Set the solver options.
-
-[pylithapp.petsc]
-pc_type = bjacobi
-ksp_monitor = true
-ksp_view = true
-log_summary = false
-ksp_max_it = 500
-ksp_gmres_restart = 5000
-

Modified: short/3D/PyLith/trunk/examples/3d/hex8/mat_elastic.spatialdb
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/mat_elastic.spatialdb	2007-06-23 06:55:46 UTC (rev 7414)
+++ short/3D/PyLith/trunk/examples/3d/hex8/mat_elastic.spatialdb	2007-06-23 06:56:37 UTC (rev 7415)
@@ -1,9 +1,14 @@
+// -*- C++ -*- (tell Emacs to use C++ mode for syntax highlighting)
+//
+// This spatial database specifies the distribution of material
+// properties. In this case, the material properties are uniform.
+//
 #SPATIAL.ascii 1
 SimpleDB {
-  num-values = 3
-  value-names =  density vs vp
-  value-units =  kg/m^3  m/s  m/s
-  num-locs = 1
+  num-values = 3 // number of material property values
+  value-names =  density vs vp // names of the material property values
+  value-units =  kg/m^3  m/s  m/s // units (conversions not supported)
+  num-locs = 1 // number of locations
   data-dim = 0
   space-dim = 3
   cs-data = cartesian {
@@ -11,4 +16,11 @@
     space-dim = 3
   }
 }
-0.0  0.0  0.0   2500.0e-5  3000.0e-5  5291.502622129181e-5
+// Columns are
+// (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)
+0.0  0.0  0.0   2500.0  3000.0  5291.502622129181

Copied: short/3D/PyLith/trunk/examples/3d/hex8/pylithapp.cfg (from rev 7409, short/3D/PyLith/trunk/examples/3d/hex8/hex8_1000m.cfg)

Modified: short/3D/PyLith/trunk/examples/3d/hex8/shearxy.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/shearxy.cfg	2007-06-23 06:55:46 UTC (rev 7414)
+++ short/3D/PyLith/trunk/examples/3d/hex8/shearxy.cfg	2007-06-23 06:56:37 UTC (rev 7415)
@@ -4,8 +4,8 @@
 
 # This is not a self-contained simulation configuration file. This
 # file only specifies parameters specific to the boundary
-# conditions. The general parameters are specificed in the hex8_1000m
-# file.
+# conditions. The general parameters are specificed in the pylithapp.cfg
+# file which PyLith reads by default.
 #
 # To run the simulation:
 # pylith hex8_1000m.cfg shearxy.cfg



More information about the cig-commits mailing list