Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
cosinusprod_laplace.h

The cosinus product function – right-hand-side and boundary condition for the Laplace problem.

The cosinus product function – right-hand-side and boundary condition for the Laplace problem

struct f {
Float operator() (const point& x) const {
return d*pi*pi*cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
f(size_t d1) : d(d1), pi(acos(Float(-1))) {}
size_t d; const Float pi;
};
struct g {
Float operator() (const point& x) const {
return cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
g(size_t d1) : pi(acos(Float(-1))) {}
const Float pi;
};
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
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