Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
TensorMesh
Light Logo Dark Logo
TensorMesh
English · 中文

Documentation

  • Get Started
    • Installation
    • Quickstart
    • Verify Install
  • User Guide
    • Concepts
    • Meshes
    • Elements and Quadrature
    • Forms
    • Boundary Conditions
    • Sparse Solvers
    • Time Integration
    • Batched Workflows
    • Differentiability
  • Example Gallery
    • Basics & Visualization
    • Poisson Equation
    • Diffusion
    • Wave Equation
    • Solid Mechanics
      • Cantilever Beam
      • Hyperelastic Beam (Neo-Hookean)
      • Hertzian Contact
      • Plasticity (J2 with Isotropic Hardening)
    • Fluid Mechanics
      • Lid-Driven Cavity
      • Cylinder Flow (Vortex Shedding)
      • Flow Past Multiple Obstacles
      • Rayleigh-Bénard Convection
      • Taylor-Green Vortex (Convergence Study)
    • Magnetostatics (Maxwell)
    • Inverse Design & Identification
    • Physics-Informed Learning
    • ML Datasets
    • Distributed FEM
  • API Reference
    • tensormesh.mesh
    • tensormesh.element
    • tensormesh.assemble
    • tensormesh.operator
    • tensormesh.sparse
    • tensormesh.ode
    • tensormesh.functional
    • tensormesh.optimizer
    • tensormesh.material
    • tensormesh.distributed
    • tensormesh.nn
    • tensormesh.dataset
    • tensormesh.visualization
  • Performance
    • Benchmark
    • Scaling Guide
    • Profiling
  • Community
    • Discord
    • GitHub Discussions
    • GitHub Issues
    • Contributing
    • Citing TensorMesh
Back to top
View this page

Example Gallery¶

Hands-on, runnable examples — from FEM building-block visualizations, through canonical PDE solves, to research-grade fluid, solid, and electromagnetic problems. Each page maps the underlying mathematics to a concrete TensorMesh script you can run.

Basics & Visualization

Basis points, shape functions, element ordering, and a mesh-generation gallery.

Basics & Visualization
Poisson Equation

Elliptic PDE in 2D / 3D, batched RHS, and h-adaptive refinement on the L-shape.

Poisson Equation
Diffusion

Transient heat equation and nonlinear Allen-Cahn phase-field evolution.

Diffusion
Wave Equation

Hyperbolic PDE with explicit central-difference time stepping.

Wave Equation
Solid Mechanics

Linear elasticity, hyperelasticity, contact, and plasticity — a progressive solver ladder.

Solid Mechanics
Fluid Mechanics

Incompressible Navier-Stokes: cavity, cylinder flow, Rayleigh-Bénard, and more.

Fluid Mechanics
Magnetostatics

3D Maxwell: magnetic field around a wire via a stabilized nodal curl-curl formulation.

Magnetostatics (Maxwell)
Inverse Design & Identification

Differentiable FEM: coefficient-field identification and density-based topology optimization.

Inverse Design & Identification
Physics-Informed Learning

Train a neural network to minimize the assembled Galerkin residual ||K u - F||².

Physics-Informed Learning
ML Datasets

Batch generation of heat and wave snapshots for training neural operators.

ML Datasets
Distributed FEM

Graph coloring, spectral partitioning, and multi-GPU assembly benchmarks.

Distributed FEM
Next
Basics & Visualization
Previous
Differentiability
Copyright © 2026, TensorMesh Contributors
Made with Sphinx and @pradyunsg's Furo