examples.diffusion.steadyState.mesh20x20.tri2DinputΒΆ

This input file again solves a 2D diffusion problem on a triangular mesh.

>>> DiffusionTerm().solve(var)

The result is again tested in the same way:

>>> Lx = nx * dx
>>> x = mesh.cellCenters[0]
>>> analyticalArray = valueLeft + (valueRight - valueLeft) * x / Lx
>>> print(var.allclose(analyticalArray, rtol = 1e-8))
1
Last updated on Jun 26, 2024. Created using Sphinx 7.1.2.