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;
};
Float
see the Float page for the full documentation
point
see the point page for the full documentation
f
Definition cavity_dg.h:29
f::operator()
point operator()(const point &x) const
Definition cavity_dg.h:30
f::n
size_t n
Definition sinusrad_laplace.h:31
f::f
f()
Definition taylor.h:34
g
Definition cavity_dg.h:25
g::operator()
point operator()(const point &x) const
Definition cavity_dg.h:26
g::n
size_t n
Definition sinusrad_laplace.h:39
g::g
g()
Definition taylor.h:29
phi::r
Float r
Definition phi.h:54