SpECTRE
v2025.01.30
|
Subclasses supply variable-independent background data for an elliptic solve. More...
#include <Background.hpp>
Subclasses supply variable-independent background data for an elliptic solve.
Examples for background fields are a background metric, associated curvature quantities, matter sources such as a mass-density in the XCTS equations, or just a source function
Subclasses must define the following compile-time interface:
They define a variables
function that provides the fixed-sources in the elliptic equations (see elliptic::protocols::FirstOrderSystem
). The function must have this signature:
It must support being called with a tmpl::list
of all system-variable tags prefixed with Tags::FixedSource
.
They define a variables
function that provides data for all background quantities, if any are listed in the background_fields
of the system (see elliptic::protocols::FirstOrderSystem
). The function must have this signature:
It must support being called with a tmpl::list
of all background tags. It may use the mesh
and inv_jacobian
to compute numerical derivatives.