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

The p-Laplacian problem on a circular geometry – exact solution.

The p-Laplacian problem on a circular geometry – exact solution

struct u_exact {
Float operator() (const point& x) const {
return (1 - pow(norm2(x), p/(2*p-2)))/((p/(p-1))*pow(2.,1/(p-1)));
}
u_exact (Float q) : p(q) {}
protected: Float p;
};
struct grad_u {
point operator() (const point& x) const {
return - (pow(norm2(x), p/(2*p-2) - 1)/pow(2.,1/(p-1)))*x;
}
grad_u (Float q) : p(q) {}
protected: Float p;
};
see the Float page for the full documentation
see the point page for the full documentation
point operator()(const point &x) const
Definition sphere.icc:25
point operator()(const point &x) const