Step 3: Multiple Earthquake Ruptures and Velocity Boundary Conditions#

This example involves a quasistatic simulation that solves for the deformation from velocity boundary conditions and multiple earthquake ruptures on the fault. The velocity boundary conditions match those in Step 2. We prescribe the first earthquake rupture to occur at 100 years with 1 meter of right-lateral slip and the second earthquake rupture to occur at 200 years with 3 meters of right-lateral slip. Fig. 58 shows the boundary conditions on the domain.

Fig. 58 Boundary conditions for quasistatic simulation with velocity boundary conditions and coseismic slip. We set the x displacement to zero on the +x and -x boundaries. We set the y velocity to -1 cm/yr on the +x boundary and +1 cm/yr on the -x boundary. We prescribe 1 meter of right-lateral slip to occur at 100 years and 3 meters of right-lateral slip to occur at 200 years.#

Features

  • Triangular cells

  • pylith.meshio.MeshIOPetsc

  • pylith.problems.TimeDependent

  • pylith.materials.Elasticity

  • pylith.materials.IsotropicLinearElasticity

  • pylith.faults.FaultCohesiveKin

  • pylith.faults.KinSrcStep

  • field split preconditioner

  • Schur complement preconditioner

  • pylith.bc.DirichletTimeDependent

  • spatialdata.spatialdb.UniformDB

  • pylith.meshio.OutputSolnBoundary

  • pylith.meshio.DataWriterHDF5

  • Quasistatic simulation

  • spatialdata.spatialdb.SimpleDB

Simulation parameters#

The parameters specific to this example are in step03_multislip_velbc.cfg. These include:

  • pylithapp.metadata Metadata for this simulation. Even when the author and version are the same for all simulations in a directory, we prefer to keep that metadata in each simulation file as a reminder to keep it up-to-date for each simulation.

  • pylithapp Parameters defining where to write the output.

  • pylithapp.problem Parameters defining the start time and end time for the quasistatic simulation.

  • pylithapp.problem.fault Parameters for prescribed slip on the fault.

  • pylithapp.problem.bc Parameters for velocity boundary conditions.

Listing 55 Run Step 3 simulation#
$ pylith step03_multislip_velbc.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(topology::Mesh *)
 -- meshiopetsc(info)
 -- Component 'reader': Domain bounding box:
    (-50000, 50000)
    (-75000, 75000)

# -- many lines omitted --

25 TS dt 0.1 time 2.4
    0 SNES Function norm 1.078084164687e-03
    Linear solve converged due to CONVERGED_ATOL iterations 29
    1 SNES Function norm 2.500834427760e-12
  Nonlinear solve converged due to CONVERGED_FNORM_ABS iterations 1
26 TS dt 0.1 time 2.5
 >> /software/unix/py39-venv/pylith-debug/lib/python3.9/site-packages/pylith/problems/Problem.py:201:finalize
 -- timedependent(info)
 -- Finalizing problem.

The beginning of the output written to the terminal is identical to that from Step 1. At the end of the output, we see that the simulation advanced the solution 26 time steps. Remember that the PETSc TS monitor shows the nondimensionalized time and time step values.

Visualizing the results#

In Fig. 59 we use ParaView to visualize the x displacement field using the viz/plot_dispwarp.py Python script. As in Step 2 we override the default name of the simulation file with the name of the current simulation.

Listing 56 Set the simulation in the ParaView Python Shell.#
>>> SIM = "step03_multislip_velbc"

Next we run the viz/plot_dispwarp.py Python script as described in ParaView Python Scripts.

Tip

You can use the “play” button to animate the solution in time.

Solution for Step 3 at t=190 yr. The colors indicate the magnitude of the displacement, and the deformation is exaggerated by a factor of 1000.

Fig. 59 Solution for Step 3 at t=190 yr. The colors of the shaded surface indicate the magnitude of the y displacement, and the deformation is exaggerated by a factor of 1000. The undeformed configuration is show by the gray wireframe.#