Loading...
Searching...
No Matches
sinusprod_dirichlet.h

The sinus product function – right-hand-side and boundary condition for the Poisson problem.

The sinus product function – right-hand-side and boundary condition for the Poisson problem

#include "sinusprod.h"
struct f {
Float operator() (const point& x) const { return d*sqr(pi)*_u(x); }
f(size_t d1) : d(d1), _u(d1), pi(acos(Float(-1))) {}
size_t d;
u_exact _u; Float pi;
};
struct g {
Float operator() (const point& x) const { return _u(x); }
g(size_t d) : _u(d) {}
u_exact _u;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
d
size_t d
Definition neumann-laplace-lambda.cc:28
sinusprod.h
The sinus product function.
f
Definition cavity_dg.h:29
f::d
size_t d
Definition cosinusprod_dirichlet.h:30
f::operator()
point operator()(const point &x) const
Definition cavity_dg.h:30
f::f
f()
Definition taylor.h:34
f::pi
const Float pi
Definition cosinusprod_dirichlet.h:30
f::_u
u_exact _u
Definition sinusprod_dirichlet.h:30
g
Definition cavity_dg.h:25
g::operator()
point operator()(const point &x) const
Definition cavity_dg.h:26
g::g
g()
Definition taylor.h:29
g::_u
u_exact _u
Definition cosinusprod_dirichlet.h:35
u_exact
Definition interpolate_RTk_polynom.icc:125
u_exact::d
size_t d
Definition interpolate_RTk_polynom.icc:145
u_exact::u_exact
u_exact(size_t d1, Float w1=acos(Float(-1)))
Definition interpolate_RTk_polynom.icc:144