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

The sinus radius function – right-hand-side and boundary condition for the Poisson problem with Neumann boundary condition.

The sinus radius function – right-hand-side and boundary condition for the Poisson problem with Neumann boundary condition

struct f {
Float operator() (const point& x) const {
Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
return (n == 2) ? 4 : n*n*pow(r,n-2);
}
f(size_t=0) : n(2) {}
size_t n;
};
struct g {
Float operator() (const point& x) const {
Float r = sqrt(sqr(x[0])+sqr(x[1])+sqr(x[2]));
return 1-pow(r,n);
}
g(size_t=0) : n(2) {}
size_t n;
};
see the Float page for the full documentation
see the point page for the full documentation
Definition cavity_dg.h:29
point operator()(const point &x) const
Definition cavity_dg.h:30
size_t n
f()
Definition taylor.h:34
Definition cavity_dg.h:25
point operator()(const point &x) const
Definition cavity_dg.h:26
size_t n
g()
Definition taylor.h:29
Float r
Definition phi.h:54