Rheolef  7.2
an efficient C++ finite element environment
cosinusrad.h
Go to the documentation of this file.
1 struct u_exact {
26  Float operator() (const point& x) const {
27  Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
28  return cos(a*r); }
29  u_exact(size_t=0) : a(acos(Float(-1.0))) {}
30  Float a;
31 };
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=0)
Definition: cosinusrad.h:29