Rheolef
7.1
an efficient C++ finite element environment
transport_dg2.h
The rotating hill benchmark for the transport problem
struct
u
{
point
operator()
(
const
point
& x)
const
{
return
w
*
point
(-x[1], x[0]); }
u
(
Float
w1) :
w
(w1) {}
Float
w
;
};
struct
phi_exact
{
Float
operator()
(
const
point
& x)
const
{
return
sin(
w
*
norm
(x)); }
phi_exact
(
Float
w1) :
w
(w1) {}
Float
w
;
};
u::operator()
point operator()(const point &x) const
Definition:
leveque.h:26
phi_exact::phi_exact
phi_exact(Float w1)
Definition:
transport_dg2.h:32
phi_exact
Definition:
transport_dg2.h:30
rheolef::norm
T norm(const vec< T, M > &x)
norm(x): see the expression page for the full documentation
Definition:
vec.h:387
u::u
u()
Definition:
zalesak.h:33
phi_exact::operator()
Float operator()(const point &x) const
Definition:
transport_dg2.h:31
u
Definition:
leveque.h:25
phi_exact::w
Float w
Definition:
transport_dg2.h:33
Float
see the Float page for the full documentation
point
see the point page for the full documentation
u::w
Float w
Definition:
transport_dg2.h:28