Rheolef
7.1
an efficient C++ finite element environment
p_laplacian_circle.h
Go to the documentation of this file.
1
struct
u_exact
{
26
Float
operator()
(
const
point
& x)
const
{
27
return
(1 -
pow
(
norm2
(x),
p
/(2*
p
-2)))/((
p
/(
p
-1))*
pow
(2.,1/(
p
-1)));
28
}
29
u_exact
(
Float
q) :
p
(q) {}
30
protected
:
Float
p
;
31
};
32
struct
grad_u
{
33
point
operator()
(
const
point
& x)
const
{
34
return
- (
pow
(
norm2
(x),
p
/(2*
p
-2) - 1)/
pow
(2.,1/(
p
-1)))*x;
35
}
36
grad_u
(
Float
q) :
p
(q) {}
37
protected
:
Float
p
;
38
};
u_exact::u_exact
u_exact(Float q)
Definition:
p_laplacian_circle.h:29
rheolef::pow
space_mult_list< T, M > pow(const space_basic< T, M > &X, size_t n)
Definition:
space_mult.h:120
rheolef::norm2
T norm2(const vec< T, M > &x)
norm2(x): see the expression page for the full documentation
Definition:
vec.h:379
p
Definition:
sphere.icc:25
grad_u::grad_u
grad_u(Float q)
Definition:
p_laplacian_circle.h:36
u_exact::operator()
point operator()(const point &x) const
Definition:
interpolate_RTk_polynom.icc:126
u_exact::p
Float p
Definition:
p_laplacian_circle.h:30
Float
see the Float page for the full documentation
u_exact
Definition:
interpolate_RTk_polynom.icc:125
point
see the point page for the full documentation
grad_u::operator()
point operator()(const point &x) const
Definition:
combustion_exact.icc:35
grad_u::p
Float p
Definition:
p_laplacian_circle.h:37
grad_u
Definition:
combustion_exact.icc:34