Rheolef  7.2
an efficient C++ finite element environment
 
Loading...
Searching...
No Matches
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
Definition cavity_dg.h:25
p_exact(Float Re1=0, bool have_kinetic_energy1=false)
bool have_kinetic_energy
u_exact u
Float operator()(const point &x) const
const Float pi
const Float Re
Definition leveque.h:25
The Taylor benchmark – right-hand-side and boundary condition.