[cig-commits] r16785 - in short/3D/PyLith/trunk/examples/3d/hex8: . spatialdb

willic3 at geodynamics.org willic3 at geodynamics.org
Tue May 25 01:37:55 PDT 2010


Author: willic3
Date: 2010-05-25 01:37:54 -0700 (Tue, 25 May 2010)
New Revision: 16785

Added:
   short/3D/PyLith/trunk/examples/3d/hex8/spatialdb/mat_druckerprager.spatialdb
   short/3D/PyLith/trunk/examples/3d/hex8/step09.cfg
Log:
Example exactly like example 8, except we use Drucker-Prager elastoplastic
rheology for the lower crust.
One of the time steps doesn't converge in the nonlinear solution, but the
solution seems OK so far.



Added: short/3D/PyLith/trunk/examples/3d/hex8/spatialdb/mat_druckerprager.spatialdb
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/spatialdb/mat_druckerprager.spatialdb	                        (rev 0)
+++ short/3D/PyLith/trunk/examples/3d/hex8/spatialdb/mat_druckerprager.spatialdb	2010-05-25 08:37:54 UTC (rev 16785)
@@ -0,0 +1,30 @@
+// -*- C++ -*- (tell Emacs to use C++ mode for syntax highlighting)
+//
+// This spatial database specifies the distribution of material
+// properties for a power-law viscoelastic material. In this case,
+// the material properties are uniform.
+//
+#SPATIAL.ascii 1
+SimpleDB {
+  num-values = 6 // number of material property values
+  value-names =  density vs vp friction-angle cohesion dilatation-angle // names of the material property values
+  value-units =  kg/m**3  m/s  m/s degree kPa degree // units
+  num-locs = 1 // number of locations
+  data-dim = 0
+  space-dim = 3
+  cs-data = cartesian {
+    to-meters = 1.0
+    space-dim = 3
+  }
+}
+// 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)
+// (7) friction-angle (degree)
+// (8) cohesion (kPa)
+// (8) dilatation-angle (degree)
+0.0  0.0  0.0   2500.0  3000.0  5291.502622129181 30.0 5000.0 30.0

Added: short/3D/PyLith/trunk/examples/3d/hex8/step09.cfg
===================================================================
--- short/3D/PyLith/trunk/examples/3d/hex8/step09.cfg	                        (rev 0)
+++ short/3D/PyLith/trunk/examples/3d/hex8/step09.cfg	2010-05-25 08:37:54 UTC (rev 16785)
@@ -0,0 +1,251 @@
+# -*- Python -*-
+[pylithapp]
+
+# ----------------------------------------------------------------------
+# PROBLEM DESCRIPTION
+# ----------------------------------------------------------------------
+
+#
+# This is a time-dependent problem with velocity boundary conditions
+# and multiple earthquake ruptures as well as fault creep at constant
+# velocity.
+# This problem is identical to example 8 except that it includes
+# Drucker-Prager elastoplastic rheology, which requires the use of a
+# nonlinear solver.
+# Two materials are used:
+# 1. Elastic upper crust.
+# 2. Elastoplastic (Drucker-Prager) lower crust.
+
+# ----------------------------------------------------------------------
+# RUNNING THE SIMULATON
+# ----------------------------------------------------------------------
+
+# This is not a self-contained simulation configuration file. This
+# file only specifies parameters specific to tutorial step09.
+# The general parameters are specificed in the pylithapp.cfg
+# file which PyLith reads by default.
+#
+# To run the simulation:
+# pylith step09.cfg
+#
+# Output will be directed to the directory step09.
+
+# ----------------------------------------------------------------------
+# problem
+# ----------------------------------------------------------------------
+[pylithapp.timedependent]
+# For this problem we must switch to a nonlinear solver.
+implicit.solver = pylith.problems.SolverNonlinear
+
+# Set bc to an array of 3 boundary conditions: 'x_pos','x_neg', and 'z_neg'.
+bc = [x_pos,x_neg,z_neg]
+
+# Set interfaces to an array of 1 fault: 'fault'.
+interfaces = [fault]
+
+[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.
+output = [domain,subdomain]
+
+# Set subdomain component to OutputSolnSubset (boundary of the domain).
+output.subdomain = pylith.meshio.OutputSolnSubset
+
+# Change time stepping algorithm from uniform time step, to adaptive
+# time stepping.
+time_step = pylith.problems.TimeStepAdapt
+
+# Change the total simulation time to 700 years, and set the maximum time
+# step size to 5 years.
+[pylithapp.timedependent.implicit.time_step]
+total_time = 700.0*year
+max_dt = 5.0*year
+stability_factor = 1.0 ; use time step equal to stable value from materials
+# For this problem we set adapt_skip to zero so that the time step size is
+# readjusted every time step.
+adapt_skip = 0
+
+# ----------------------------------------------------------------------
+# materials
+# ----------------------------------------------------------------------
+# Change material type of lower crust to Drucker-Prager.
+[pylithapp.timedependent]
+materials.lower_crust = pylith.materials.DruckerPrager3D
+
+# Provide a spatial database from which to obtain property values.
+# In this case, we prefer to obtain the Drucker-Prager properties from one
+# database and the elastic properties from another database, so we use
+# a CompositeDB. Each part of the CompositeDB is a SimpleDB.
+[pylithapp.timedependent.materials.lower_crust]
+db_properties = spatialdata.spatialdb.CompositeDB
+db_properties.db_A = spatialdata.spatialdb.SimpleDB
+db_properties.db_B = spatialdata.spatialdb.SimpleDB
+# Since there are additional properties and state variables for the
+# Drucker-Prager model, we explicitly request that they be output.
+# Properties are named in cell_info_fields and state variables are named in
+# cell_data_fields.
+output.cell_info_fields = [density,mu,lambda,alpha_yield,beta,alpha_flow]
+output.cell_data_fields = [total_strain,stress,plastic_strain]
+
+# Provide the values to be obtained from each database and the database
+# name.
+[pylithapp.timedependent.materials.lower_crust.db_properties]
+values_A = [density,vs,vp]   ; Elastic properties.
+db_A.label = Elastic properties
+db_A.iohandler.filename = spatialdb/mat_elastic.spatialdb
+values_B = [friction-angle,cohesion,dilatation-angle]   ; Drucker-Prager properties.
+db_B.label = Drucker-Prager properties
+db_B.iohandler.filename = spatialdb/mat_druckerprager.spatialdb
+
+# ----------------------------------------------------------------------
+# boundary conditions
+# ----------------------------------------------------------------------
+# Set the parameters for Dirichlet boundary conditions applied on the
+# +x, -x, and -z faces of the box.
+#
+# We fix the x degree of freedom on the +x and -x faces, and
+# fix the z degree of freedom on the bottom (-z) face. Constant velocities
+# in the +y and -y directions are applied on -x and +x.
+#
+# For x_pos and x_neg, we retain the default ZeroDispDB for displacements
+# (db_initial), since we do not want initial displacements. We change the
+# default database for velocities (db_rate) to UniformDB, which allows
+# nonzero velocities. Using UniformDB, we also specify the velocity values
+# in this .cfg file, rather than using a spatialdb file.
+#
+# For z_neg, we keep the default ZeroDispDB, since we just want zero
+# z-displacements on that boundary.
+# Note that since the fault cuts through the base of the model (z_neg),
+# we can only constrain the portion of the bottom boundary that does not
+# include the fault. A nodeset named 'face_zneg_nofault' has been defined
+# in Cubit for this purpose.
+#
+
+# The label corresponds to the name of the nodeset in CUBIT.
+
+# +x face
+[pylithapp.timedependent.bc.x_pos]
+bc_dof = [0, 1]
+label = face_xpos
+db_initial.label = Dirichlet BC on +x
+db_rate = spatialdata.spatialdb.UniformDB
+db_rate.label = Dirichlet rate BC on +x
+db_rate.values = [displacement-rate-x,displacement-rate-y,rate-start-time]
+db_rate.data = [0.0*cm/year,-1.0*cm/year,0.0*year]
+
+# -x face
+[pylithapp.timedependent.bc.x_neg]
+bc_dof = [0, 1]
+label = face_xneg
+db_initial.label = Dirichlet BC on -x
+db_rate = spatialdata.spatialdb.UniformDB
+db_rate.label = Dirichlet rate BC on +x
+db_rate.values = [displacement-rate-x,displacement-rate-y,rate-start-time]
+db_rate.data = [0.0*cm/year,1.0*cm/year,0.0*year]
+
+# -z face
+[pylithapp.timedependent.bc.z_neg]
+bc_dof = [2]
+label = face_zneg_nofault
+db_initial.label = Dirichlet BC on -z
+
+# ----------------------------------------------------------------------
+# faults
+# ----------------------------------------------------------------------
+[pylithapp.timedependent.interfaces]
+
+# Set the parameters for the fault interface conditions.
+[pylithapp.timedependent.interfaces.fault]
+# This corresponds to the label of the Cubit nodeset defining the fault.
+label = fault
+# Provide quadrature information for the fault surface.
+quadrature.cell = pylith.feassemble.FIATLagrange
+quadrature.cell.dimension = 2
+
+# Due to the complex time history used for the fault, a number of additional
+# info fields are available.
+output.vertex_info_fields = [normal_dir,strike_dir,dip_dir,final_slip_creep,final_slip_one,final_slip_two,final_slip_three,slip_time_creep,slip_time_one,slip_time_two,slip_time_three]
+
+# Set earthquake sources to an array consisting of creep and 3 ruptures.
+eq_srcs = [creep,one,two,three]
+eq_srcs.creep.origin_time = 00.0*year
+eq_srcs.one.origin_time = 200.0*year
+eq_srcs.two.origin_time = 400.0*year
+eq_srcs.three.origin_time = 600.0*year
+
+# Define slip and origin time for first rupture.
+[pylithapp.timedependent.interfaces.fault.eq_srcs.one.slip_function]
+slip.iohandler.filename = spatialdb/finalslip_rupture.spatialdb
+slip_time.iohandler.filename = spatialdb/sliptime.spatialdb
+
+# Define slip and origin time for second rupture.
+[pylithapp.timedependent.interfaces.fault.eq_srcs.two.slip_function]
+slip.iohandler.filename = spatialdb/finalslip_rupture.spatialdb
+slip_time.iohandler.filename = spatialdb/sliptime.spatialdb
+
+# Define slip and origin time for third rupture.
+[pylithapp.timedependent.interfaces.fault.eq_srcs.three.slip_function]
+slip.iohandler.filename = spatialdb/finalslip_rupture.spatialdb
+slip_time.iohandler.filename = spatialdb/sliptime.spatialdb
+
+# Define slip rate and origin time for fault creep.
+[pylithapp.timedependent.interfaces.fault.eq_srcs.creep]
+slip_function = pylith.faults.ConstRateSlipFn
+origin_time = 0.0*s
+slip_function.slip_rate.iohandler.filename = spatialdb/sliprate_creep.spatialdb
+slip_function.slip_time.iohandler.filename = spatialdb/sliptime.spatialdb
+
+# ----------------------------------------------------------------------
+# output
+# ----------------------------------------------------------------------
+# Give basename for VTK domain output of solution over domain.
+[pylithapp.problem.formulation.output.domain]
+# We specify that output occurs in terms of a given time frequency, and
+# ask for output every 50 years. The time stamps of the output files are
+# in years (rather than the default of seconds), and we give a format for
+# the time stamp.
+output_freq = time_step
+time_step = 50.0*year
+writer.filename = step09/step09.vtk
+writer.time_format = %04.0f
+writer.time_constant = 1.0*year
+
+# Give basename for VTK domain output of solution over ground surface.
+[pylithapp.problem.formulation.output.subdomain]
+# Name of nodeset for ground surface.
+label = face_zpos
+# We keep the default output frequency behavior (skip every n steps), and
+# ask to skip 0 steps between output, so that we get output every time step.
+skip = 0
+writer.filename = step09/step09-groundsurf.vtk
+writer.time_format = %04.0f
+writer.time_constant = 1.0*year
+
+# Give basename for VTK fault rupture output.
+[pylithapp.problem.interfaces.fault.output]
+# We keep the default output frequency behavior (skip every n steps), and
+# ask to skip 0 steps between output, so that we get output every time step.
+skip = 0
+writer.filename = step09/step09-fault.vtk
+writer.time_format = %04.0f
+writer.time_constant = 1.0*year
+
+# Give basename for VTK output of upper_crust state variables.
+[pylithapp.timedependent.materials.upper_crust.output]
+# Average values over quadrature points.
+cell_filter = pylith.meshio.CellFilterAvgMesh
+output_freq = time_step
+time_step = 50.0*year
+writer.filename = step09/step09-upper_crust.vtk
+writer.time_format = %04.0f
+writer.time_constant = 1.0*year
+
+# Give basename for VTK output of lower_crust state variables.
+[pylithapp.timedependent.materials.lower_crust.output]
+# Average values over quadrature points.
+cell_filter = pylith.meshio.CellFilterAvgMesh
+output_freq = time_step
+time_step = 50.0*year
+writer.filename = step09/step09-lower_crust.vtk
+writer.time_format = %04.0f
+writer.time_constant = 1.0*year



More information about the CIG-COMMITS mailing list