Rheolef  7.1
an efficient C++ finite element environment
cosinusprod_grad.h
Go to the documentation of this file.
1 struct grad_u {
26  point operator() (const point& x) const {
27  return -pi*point(
28  sin(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]),
29  cos(pi*x[0])*sin(pi*x[1])*cos(pi*x[2]),
30  cos(pi*x[0])*cos(pi*x[1])*sin(pi*x[2])); }
31  grad_u(size_t d1) : d(d1), pi(acos(Float(-1.0))) {}
32  size_t d; Float pi;
33 };
see the Float page for the full documentation
see the point page for the full documentation
size_t d
point operator()(const point &x) const
grad_u(size_t d1)