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

The sinus radius function.

The sinus radius function

struct u_exact {
Float operator() (const point& x) const {
Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
return 1-pow(r,n);
}
u_exact(size_t=0) : n(2) {}
size_t n;
};
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