Docs › Examples › Your own equation
Your own equation
When the model is not in the box, define the coefficients, source and boundary values directly and solve it with the same meshes, methods and solvers.
The worked example
A stationary reaction–diffusion equation with a spatially varying diffusion coefficient on the unit square. The forcing is derived from a chosen exact solution, so the numerical error is known, and a refinement study on 24, 48 and 96 cells shows how it falls.

