Rheolef  7.2
an efficient C++ finite element environment
 
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;
};
see the Float page for the full documentation
see the point page for the full documentation
Definition cavity_dg.h:29
point operator()(const point &x) const
Definition cavity_dg.h:30
g _g
Definition taylor.h:35
f()
Definition taylor.h:34
const Float pi
Definition cavity_dg.h:25
point operator()(const point &x) const
Definition cavity_dg.h:26
g()
Definition taylor.h:29
const Float pi