Rheolef  7.2
an efficient C++ finite element environment
cosinusprod_laplace.h
Go to the documentation of this file.
1 struct f {
26  Float operator() (const point& x) const {
27  return d*pi*pi*cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
28  f(size_t d1) : d(d1), pi(acos(Float(-1))) {}
29  size_t d; const Float pi;
30 };
31 struct g {
32  Float operator() (const point& x) const {
33  return cos(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]); }
34  g(size_t d1) : pi(acos(Float(-1))) {}
35  const Float pi;
36 };
see the Float page for the full documentation
see the point page for the full documentation
Definition: cavity_dg.h:29
size_t d
point operator()(const point &x) const
Definition: cavity_dg.h:30
f(size_t d1)
const Float pi
Definition: cavity_dg.h:25
point operator()(const point &x) const
Definition: cavity_dg.h:26
g(size_t d1)
const Float pi