1D Poisson code in fenicsx

Can you please share 1D Poisson code in Fenicsx?

See https://github.com/FEniCS/dolfinx/blob/main/python/demo/demo_poisson.py. It is straightforward to adapt this demo for a 1D mesh, e.g., https://github.com/FEniCS/dolfinx/blob/main/python/dolfinx/mesh.py#L458-L476.

1 Like

See also the discussion here