Rheolef  7.2
an efficient C++ finite element environment
cosinus_vector.h
Go to the documentation of this file.
1 struct u_exact {
26  point operator() (const point& x) const {
27  return point(cos(w*(x[0]+2*x[1])),sin(w*(x[0]-2*x[1]))); }
28  u_exact(size_t d) : w(1) {}
29  Float w;
30 };
31 struct div_u_exact {
32  Float operator() (const point& x) const {
33  return -w*(sin(w*(x[0]+2*x[1])) + 2*cos(w*(-x[0]+2*x[1]))); }
34  div_u_exact(size_t d) : w(1) {}
36 };
see the Float page for the full documentation
see the point page for the full documentation
div_u_exact(size_t d)
Float operator()(const point &x) const
u_exact(size_t d)
point operator()(const point &x) const