examples.diffusionΒΆ

Modules

anisotropy

Solve the diffusion equation with an anisotropic diffusion coefficient.

circle

Solve the diffusion equation in a circular domain meshed with triangles.

circleQuad

Solve the diffusion equation in a circular domain meshed with quadrangles.

coupled

Solve the biharmonic equation as a coupled pair of diffusion equations.

electrostatics

Solve the Poisson equation in one dimension.

explicit

mesh1D

Solve a one-dimensional diffusion equation under different conditions.

mesh20x20

Solve a two-dimensional diffusion problem in a square domain.

mesh20x20Coupled

Solve a coupled set of diffusion equations in two dimensions.

nthOrder

steadyState

test

Run all the test cases in examples/diffusion/

variable

This example is a 1D steady state diffusion test case as in ./examples/diffusion/variable/mesh2x1/input.py with then number of cells set to nx = 10.

Last updated on May 15, 2026. Created using Sphinx 9.1.0.