SpECTRE
v2024.05.11
|
A solution to the Poisson equation with a discontinuous first derivative. More...
#include <Moustache.hpp>
Public Types | |
using | options = tmpl::list<> |
Public Member Functions | |
Moustache (const Moustache &)=default | |
Moustache & | operator= (const Moustache &)=default |
Moustache (Moustache &&)=default | |
Moustache & | operator= (Moustache &&)=default |
std::unique_ptr< elliptic::analytic_data::AnalyticSolution > | get_clone () const override |
template<typename DataType , typename... RequestedTags> | |
tuples::TaggedTuple< RequestedTags... > | variables (const tnsr::I< DataType, Dim > &x, tmpl::list< RequestedTags... >) const |
virtual std::unique_ptr< AnalyticSolution > | get_clone () const =0 |
Static Public Attributes | |
static constexpr Options::String | help |
A solution to the Poisson equation with a discontinuous first derivative.
This implements the solution \(u(x,y)=x\left(1-x\right) y\left(1-y\right)\left(\left(x-\frac{1}{2}\right)^2+\left(y- \frac{1}{2}\right)^2\right)^\frac{3}{2}\) to the Poisson equation in two dimensions, and \(u(x)=x\left(1-x\right)\left|x-\frac{1}{2}\right|^3\) in one dimension. Their boundary conditions vanish on the square \([0,1]^2\) or interval \([0,1]\), respectively.
The corresponding source \(f=-\Delta u\) has a discontinuous first derivative at \(\frac{1}{2}\). This accomplishes two things:
This solution is taken from [171].
|
inlineoverridevirtual |
Implements elliptic::analytic_data::AnalyticSolution.
|
staticconstexpr |