cosinusprod_grad.h
Go to the documentation of this file.
struct grad_u {
point operator() (const point& x) const {
return -pi*point(
sin(pi*x[0])*cos(pi*x[1])*cos(pi*x[2]),
cos(pi*x[0])*sin(pi*x[1])*cos(pi*x[2]),
cos(pi*x[0])*cos(pi*x[1])*sin(pi*x[2])); }
grad_u(size_t d1) : d(d1), pi(acos(Float(-1.0))) {}
size_t d; Float pi;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
grad_u
Definition: combustion_exact.icc:34
grad_u::d
size_t d
Definition: cosinusprod_grad.h:32
grad_u::operator()
point operator()(const point &x) const
Definition: combustion_exact.icc:35
grad_u::grad_u
grad_u(size_t d1)
Definition: cosinusprod_grad.h:31
grad_u::pi
Float pi
Definition: cosinusprod_grad.h:32