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

The cosinus vector function.

The cosinus vector function

struct u_exact {
point operator() (const point& x) const {
return point(cos(w*(x[0]+2*x[1])),sin(w*(x[0]-2*x[1]))); }
u_exact(size_t d) : w(1) {}
};
struct div_u_exact {
Float operator() (const point& x) const {
return -w*(sin(w*(x[0]+2*x[1])) + 2*cos(w*(-x[0]+2*x[1]))); }
div_u_exact(size_t d) : w(1) {}
};
see the Float page for the full documentation
see the point page for the full documentation
Float operator()(const point &x) const
point operator()(const point &x) const