SpECTRE
v2025.03.17
|
The Poisson equation formulated as a set of coupled first-order PDEs. More...
#include <FirstOrderSystem.hpp>
Public Types | |
using | primal_fields = implementation defined |
using | primal_fluxes = implementation defined |
using | background_fields = implementation defined |
using | inv_metric_tag = implementation defined |
using | fluxes_computer = Fluxes< Dim, BackgroundGeometry, DataType > |
using | sources_computer = implementation defined |
using | boundary_conditions_base = elliptic::BoundaryConditions::BoundaryCondition< Dim > |
using | modify_boundary_data = void |
Static Public Attributes | |
static constexpr size_t | volume_dim = Dim |
The Poisson equation formulated as a set of coupled first-order PDEs.
This system formulates the Poisson equation
where
The system can be formulated in terms of these fluxes and sources (see elliptic::protocols::FirstOrderSystem
):
The fluxes and sources simplify significantly when the background metric is flat and we employ Cartesian coordinates so BackgroundGeometry
to Poisson::Geometry::FlatCartesian
to specialize the system for this case. Set it to Poisson::Geometry::Curved
for the general case.
This system can also be used to solve the complex Poisson equation where DataType
template parameter to ComplexDataVector
. Note that the real and imaginary sectors of the equations decouple, so they are essentially two independent Poisson equations. This is useful for testing the elliptic solver with complex-valued fields, and also as building blocks for other Poisson-like systems of equations that have additional complex-valued source terms.