Loading...
Searching...
No Matches
taylor.h

The Taylor benchmark – right-hand-side and boundary condition.

The Taylor benchmark – right-hand-side and boundary condition

struct g {
point operator() (const point& x) const {
return point(-cos(pi*x[0])*sin(pi*x[1]),
sin(pi*x[0])*cos(pi*x[1])); }
g() : pi(acos(Float(-1.0))) {}
const Float pi;
};
struct f {
point operator() (const point& x) const { return 2*sqr(pi)*_g(x); }
f() : pi(acos(Float(-1.0))), _g() {}
const Float pi; g _g;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
f
Definition cavity_dg.h:29
f::operator()
point operator()(const point &x) const
Definition cavity_dg.h:30
f::_g
g _g
Definition taylor.h:35
f::f
f()
Definition taylor.h:34
f::pi
const Float pi
Definition cosinusprod_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::pi
const Float pi
Definition cosinusprod_laplace.h:35