Rheolef  7.2
an efficient C++ finite element environment
taylor_exact.h
Go to the documentation of this file.
1
25#include "taylor.h"
26typedef g u_exact;
27struct p_exact {
28 Float operator() (const point& x) const {
29 return - Re*(cos(2*pi*x[0]) + cos(2*pi*x[1]))/4
30 - (!have_kinetic_energy ? 0 : Re*(norm2(u(x))/2 - 0.25));
31 }
32 p_exact(Float Re1=0, bool have_kinetic_energy1=false)
33 : u(), pi(acos(Float(-1.0))), Re(Re1), have_kinetic_energy(have_kinetic_energy1) {}
35};
see the Float page for the full documentation
see the point page for the full documentation
T norm2(const vec< T, M > &x)
norm2(x): see the expression page for the full documentation
Definition: vec.h:379
Definition: cavity_dg.h:25
p_exact(Float Re1=0, bool have_kinetic_energy1=false)
Definition: taylor_exact.h:32
bool have_kinetic_energy
Definition: taylor_exact.h:34
u_exact u
Definition: taylor_exact.h:34
Float operator()(const point &x) const
Definition: taylor_exact.h:28
const Float pi
Definition: taylor_exact.h:34
const Float Re
Definition: taylor_exact.h:34
Definition: leveque.h:25
The Taylor benchmark – right-hand-side and boundary condition.
g u_exact
Definition: taylor_exact.h:26