Poisson
Poisson approximation to the distance function.
Defined in Rodin/Distance/Poisson.h
class Poisson;
This class computes an approximation to the distance function by solving a Poisson equation with appropriate boundary conditions. The method solves the following equation.
where approximates the distance to the boundary.
Mathematical Background
Unlike the Eikonal equation which gives exact distances, the Poisson approach provides a smooth approximation that can be computed more efficiently for certain applications.
Usage Example
P1 fes(mesh); Poisson poissonDist; auto u = poissonDist(fes);
Public functions
-
template<class FES>auto operator()(const FES& fes) const -> auto
- Computes the Poisson-based distance approximation.
Function documentation
template<class FES>
auto operator()(const FES& fes) const
Computes the Poisson-based distance approximation.
| Template parameters | |
|---|---|
| FES | Finite element space type |
| Parameters | |
| fes in | Finite element space on which to solve |
| Returns | Grid function containing the distance approximation |