SpECTRE  2021.08.02
Poisson::Solutions::Lorentzian< Dim, Registrars > Class Template Reference

A Lorentzian solution to the Poisson equation. More...

#include <Lorentzian.hpp>

Public Types

using options = tmpl::list<>
 

Public Member Functions

 Lorentzian (const Lorentzian &) noexcept=default
 
Lorentzian & operator= (const Lorentzian &) noexcept=default
 
 Lorentzian (Lorentzian &&) noexcept=default
 
Lorentzian & operator= (Lorentzian &&) noexcept=default
 
template<typename DataType , typename... RequestedTags>
tuples::TaggedTuple< RequestedTags... > variables (const tnsr::I< DataType, Dim > &x, tmpl::list< RequestedTags... >) const noexcept
 
void pup (PUP::er &) noexcept override
 

Static Public Attributes

static constexpr Options::String help
 

Detailed Description

template<size_t Dim, typename Registrars = tmpl::list<Solutions::Registrars::Lorentzian<Dim>>>
class Poisson::Solutions::Lorentzian< Dim, Registrars >

A Lorentzian solution to the Poisson equation.

Details

This implements the Lorentzian solution \(u(\boldsymbol{x})=\left(1+r^2\right)^{-\frac{1}{2}}\) to the three-dimensional Poisson equation \(-\Delta u(\boldsymbol{x})=f(\boldsymbol{x})\), where \(r^2=x^2+y^2+z^2\). The corresponding source is \(f(\boldsymbol{x})=3\left(1+r^2\right)^{-\frac{5}{2}}\).

Note
Corresponding 1D and 2D solutions are not implemented yet.

Member Data Documentation

◆ help

template<size_t Dim, typename Registrars = tmpl::list<Solutions::Registrars::Lorentzian<Dim>>>
constexpr Options::String Poisson::Solutions::Lorentzian< Dim, Registrars >::help
staticconstexpr
Initial value:
{
"A Lorentzian solution to the Poisson equation."}