Step 6: Slip on Two Faults and Elastic Materials#
Features
Triangular cells
pylith.meshio.MeshIOPetsc
pylith.problems.TimeDependent
pylith.bc.DirichletTimeDependent
spatialdata.spatialdb.SimpleDB
spatialdata.spatialdb.ZeroDB
pylith.meshio.OutputSolnBoundary
pylith.meshio.DataWriterHDF5
Static simulation
pylith.materials.Elasticity
pylith.materials.IsotropicLinearElasticity
pylith.faults.FaultCohesiveKin
pylith.faults.KinSrcStep
spatialdata.spatialdb.UniformDB
Simulation parameters#
In this example we add coseismic slip on the splay fault.
We specify 2 meters of reverse slip on the main fault and 1 meter of reverse slip on the splay fault.
Fig. 83 shows the boundary conditions on the domain.
The parameters specific to this example are in step06_twofaults-elastic.cfg
.
Important
In 2D simulations slip is specified in terms of opening and left-lateral components. This provides a consistent, unique sense of slip that is independent of the fault orientation. For our geometry in this example, right lateral slip corresponds to reverse slip on both of the dipping faults.
Important
Both faults contain one end that is buried within the domain. The splay fault ends where it meets the main fault. When PyLith inserts cohesive cells into a mesh with buried edges (in this case a point), we must identify these buried edges so that PyLith properly adjusts the topology along these edges.
For properly topology of the cohesive cells, the main fault must be listed first in the array of faults so that it will be created before the splay fault.
We create an array of 2 faults, which are FaultCohesiveKin
by default, and use UniformDB
objects to specify uniform reverse slip on each fault.
Because the wedge is not constrained by any Dirichlet boundary conditions,
we change the preconditioner for the displacement field to ilu
to avoid a zero pivot.
[pylithapp.problem]
interfaces = [fault, splay]
[pylithapp.problem.interfaces.fault]
label = fault
label_value = 20
edge = fault_end
edge_value = 21
observers.observer.data_fields = [slip]
[pylithapp.problem.interfaces.fault.eq_ruptures.rupture]
db_auxiliary_field = spatialdata.spatialdb.UniformDB
db_auxiliary_field.description = Fault rupture for main fault
db_auxiliary_field.values = [initiation_time, final_slip_left_lateral, final_slip_opening]
db_auxiliary_field.data = [0.0*s, -2.0*m, 0.0*m]
[pylithapp.problem.interfaces.splay]
label = splay
label_value = 22
edge = splay_end
edge_value = 23
observers.observer.data_fields = [slip]
[pylithapp.problem.interfaces.splay.eq_ruptures.rupture]
db_auxiliary_field = spatialdata.spatialdb.UniformDB
db_auxiliary_field.description = Fault rupture for splay fault
db_auxiliary_field.values = [initiation_time, final_slip_left_lateral, final_slip_opening]
db_auxiliary_field.data = [0.0*s, -1.0*m, 0.0*m]
[pylithapp.petsc]
fieldsplit_displacement_pc_type = ilu
Running the simulation#
$ pylith step06_twofaults_elastic.cfg
# The output should look something like the following.
>> /software/unix/py39-venv/pylith-debug/lib/python3.9/site-packages/pylith/meshio/MeshIOObj.py:44:read
-- meshiopetsc(info)
-- Reading finite-element mesh
>> /src/cig/pylith/libsrc/pylith/meshio/MeshIO.cc:94:void pylith::meshio::MeshIO::read(pylith::topology::Mesh*)
-- meshiopetsc(info)
-- Component 'reader': Domain bounding box:
(-100000, 100000)
(-100000, 0)
# -- many lines omitted --
>> /software/unix/py39-venv/pylith-debug/lib/python3.9/site-packages/pylith/problems/TimeDependent.py:139:run
-- timedependent(info)
-- Solving problem.
0 TS dt 0.01 time 0.
0 SNES Function norm 2.225574998436e-02
Linear solve converged due to CONVERGED_ATOL iterations 415
1 SNES Function norm 8.564274482242e-13
Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
1 TS dt 0.01 time 0.01
>> /software/unix/py39-venv/pylith-debug/lib/python3.9/site-packages/pylith/problems/Problem.py:201:finalize
-- timedependent(info)
-- Finalizing problem.
From the end of the output written to the terminal window, we see that the linear solver converged in 415 iterations and met the absolute convergence tolerance (ksp_atol
).
As we expect for this linear problem, the nonlinear solver converged in 1 iteration.
Visualizing the results#
The output
directory contains the simulation output.
Each “observer” writes its own set of files, so the solution over the domain is in one set of files, the boundary condition information is in another set of files, and the material information is in yet another set of files.
The HDF5 (.h5
) files contain the mesh geometry and topology information along with the solution fields.
The Xdmf (.xmf
) files contain metadata that allow visualization tools like ParaView to know where to find the information in the HDF5 files.
To visualize the data using ParaView or Visit, load the Xdmf files.
In Fig. 84 we use ParaView to visualize the y displacement field using the viz/plot_dispwarp.py
Python script.
First, we start ParaView from the examples/reverse-2d
directory.
Before running the viz/plot_dispwarp.py
Python script as described in ParaView Python Scripts, we set the simulation name in the ParaView Python Shell.
>>> SIM = "step06_twofaults_elastic"
>>> FIELD_COMPONENT = "X"