OneSimulation docs Website Free books Plans on Gumroad

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.

Computed reaction–diffusion field and its nodal error against the exact solution
Measured error of the custom equation under mesh refinement