Rheolef  7.1
an efficient C++ finite element environment
cosinusrad.h

The cosinus radius function

struct u_exact {
Float operator() (const point& x) const {
Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
return cos(a*r); }
u_exact(size_t=0) : a(acos(Float(-1.0))) {}
};
see the Float page for the full documentation
see the point page for the full documentation
point operator()(const point &x) const
u_exact(size_t d1, Float w1=acos(Float(-1)))