Fluid model
Poisson
Weak discretization of Poisson's equation with a diffusion matrix, stabilization and an optional time-dependent right-hand side.
Overview
diffusion/Poisson problems. It is also the building block reused by other models for initial electrostatic solves.
Use cases
- elliptic benchmark problems
- electrostatic field solves with prescribed source terms
- testing weak Poisson discretizations and boundary handling
Governing equations
PDEs solved by model:
Find such that
where are real-valued functions, is parametrized by time , and is a positive matrix. Boundary terms from integration by parts are assumed to vanish.
Normalization
No dedicated velocity normalization is used.
Discretization
TimeDependentSource(ifwith_t_dep_sourceis True)PoissonSolve
Diagnostics
The following scalars are tracked during simulation:
- No default scalar diagnostics are defined by this model.
Examples

Poisson convergence on a distorted mesh
A cosine source on a periodic box, solved with splines of degree 1 to 3 on a mesh that the Colella mapping has bent. The error of the potential against the exact solution falls with the mesh width h at least as fast as h^(p+1) for a spline degree p, on the curved mesh as well as on the straight one. The prescribed source and reference potential are on .

Poisson time-dependent source
Drive a 1D Poisson solve with an oscillating cosine-mode charge density and compare Struphy’s FEEC potential against the exact solution, at every time step. The prescribed source is on the periodic interval .