Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
sinusrad.h
Go to the documentation of this file.
1
25struct u_exact {
26 Float operator() (const point& x) const {
27 Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
28 return 1-pow(r,n);
29 }
30 u_exact(size_t=0) : n(2) {}
31 size_t n;
32};
see the Float page for the full documentation
see the point page for the full documentation
point operator()(const point &x) const
size_t n
Definition sinusrad.h:31
u_exact(size_t=0)
Definition sinusrad.h:30