Rheolef  7.2
an efficient C++ finite element environment
burgers_diffusion_exact.h
Go to the documentation of this file.
1 struct u_exact {
26  Float operator() (const point& x) const {
27  return 1 - tanh((x[0]-x0-t)/(2*epsilon)); }
28  u_exact (Float e1, Float t1=0) : epsilon(e1), t(t1), x0(-0.5) {}
29  Float M() const { return 0; }
31 };
32 using u_init = u_exact;
33 using g = u_exact;
see the Float page for the full documentation
see the point page for the full documentation
Definition: cavity_dg.h:25
point operator()(const point &x) const
u_exact(Float e1, Float t1=0)
Float M() const
g u_exact
Definition: taylor_exact.h:26