Skip to main content
QUICK REVIEW

[Paper Review] Defmod - Parallel multiphysics finite element code for modeling crustal deformation during the earthquake/rifting cycle

Shehzad Ali|arXiv (Cornell University)|Feb 3, 2014
Advanced Numerical Methods in Computational MathematicsEngineering11 references11 citations
TL;DR

Defmod is an open-source, parallel, unstructured finite element code in Fortran 95 that models crustal deformation across earthquake and rifting cycles using multiphysics simulations. It supports dynamic and quasistatic processes—including co-seismic slip, dike intrusion, poroelastic rebound, and viscoelastic relaxation—via PETSc-based solvers, enabling scalable simulations on thousands of cores with high parallel efficiency and stabilized linear elements for accurate poroelasticity modeling.

ABSTRACT

In this article, we present Defmod, an open source, fully unstructured, two or three dimensional, parallel finite element code for modeling crustal deformation over time scales ranging from milliseconds to thousands of years. Unlike existing public domain numerical codes, Defmod can simulate deformation due to all major processes that make up the earthquake/rifting cycle, in non-homogeneous media. Specifically, it can be used to model deformation due to dynamic and quasistatic processes such as co-seismic slip or dike intrusion(s), poroelastic rebound due to fluid flow and post-seismic or post-rifting viscoelastic relaxation. It can also be used to model deformation due to processes such as post-glacial rebound, hydrological (un)loading, injection and/or withdrawal of fluids from subsurface reservoirs etc. Defmod is written in Fortran 95 and uses PETSc's parallel sparse data structures and implicit solvers. Problems can be solved using (stabilized) linear triangular, quadrilateral, tetrahedral or hexahedral elements on shared or distributed memory machines with hundreds or even thousands of processor cores. In the current version of the code, prescribed loading is supported. Results are written in ASCII VTK format for easy visualization. The source code is released under the terms of GNU General Public License (v3.0) and is freely available from https://bitbucket.org/stali/defmod/.

Motivation & Objective

  • To develop a flexible, open-source finite element code capable of simulating complex crustal deformation processes over diverse timescales.
  • To enable simulation of multiple interrelated geophysical processes—such as seismic slip, fluid-induced poroelastic rebound, and viscoelastic relaxation—within a single unified framework.
  • To support non-homogeneous media with variable rheologies and complex geometries using unstructured meshes and stabilized finite elements.
  • To provide high-performance, scalable simulations on shared or distributed memory architectures using PETSc’s parallel sparse solvers.
  • To create a tool suitable not only for research but also for teaching and educational use due to its concise, ~2000-line Fortran 95 implementation.

Proposed method

  • Defmod solves the Cauchy equation of motion using the finite element method, discretizing the weak form into a semi-discrete system: Mü + Cü + Ku = f.
  • It employs Lagrange multipliers to enforce fault slip, displacement, and velocity constraints via augmented system equations: Mü + Cu̇ + Ku + Gᵀλ = f and Gu = l.
  • For dynamic wave propagation, it uses an explicit central difference scheme for acceleration and backward difference for velocity, with lumped mass matrix for efficient inversion.
  • Rayleigh damping (C = αM + βK) is used to control numerical dissipation, with time step limited by the CFL condition: Δt ≤ L/c, where c = √(E/ρ).
  • For quasistatic problems, it uses implicit time integration with PETSc’s iterative or direct solvers, solving the coupled momentum and continuity equations for poroelasticity.
  • A local pressure projection scheme (Bochev & Dohrmann, 2006) is implemented to satisfy the inf-sup condition for linear elements in poroelastic problems.

Experimental results

Research questions

  • RQ1Can a single finite element code efficiently simulate multiple interrelated processes in the earthquake/rifting cycle, including dynamic rupture, fluid flow, and viscoelastic relaxation?
  • RQ2How does the performance of Defmod scale across thousands of processor cores for both explicit elastodynamic and implicit quasistatic problems?
  • RQ3What is the accuracy and stability of Defmod’s implementation of stabilized linear elements for poroelastic problems compared to higher-order methods?
  • RQ4To what extent can a compact, ~2000-line Fortran 95 code achieve high performance and scalability in large-scale geophysical simulations?
  • RQ5How effective is the wave absorption scheme based on Lysmer and Kuhlemeyer’s dashpots in minimizing spurious reflections at domain boundaries?

Key findings

  • Defmod achieves a parallel efficiency of 0.90 or higher for both explicit elastodynamic and implicit quasistatic problems on up to 1024 cores, with performance remaining stable at high core counts.
  • For explicit elastodynamic problems, efficiency drops from 0.93 to 0.80 when scaling from 512 to 1024 cores, primarily due to reduced work per core (down to 24.4K DOFs/core).
  • The implicit quasistatic solver maintains higher efficiency (0.87 at 1024 cores) due to additional local computations per core, such as stress recovery and force vector assembly.
  • The code successfully simulates poroelastic rebound with stabilized linear elements, avoiding locking and ensuring accuracy without requiring higher-order elements.
  • The final preconditioned residual norm for the implicit solver at the 500th iteration is 4.965×10⁻⁵ at 1024 cores, indicating robust convergence.
  • Defmod demonstrates strong scaling on a 3D Lamb’s problem with ~25 million degrees of freedom, confirming its capability to handle large-scale geophysical simulations on modern HPC clusters.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.