Rheolef  7.1
an efficient C++ finite element environment
transport_dg2.h
Go to the documentation of this file.
1 struct u {
26  point operator() (const point& x) const { return w*point(-x[1], x[0]); }
27  u (Float w1) : w(w1) {}
29 };
30 struct phi_exact {
31  Float operator() (const point& x) const { return sin(w*norm(x)); }
32  phi_exact (Float w1) : w(w1) {}
33  Float w;
34 };
see the Float page for the full documentation
see the point page for the full documentation
T norm(const vec< T, M > &x)
norm(x): see the expression page for the full documentation
Definition: vec.h:387
phi_exact(Float w1)
Definition: transport_dg2.h:32
Float operator()(const point &x) const
Definition: transport_dg2.h:31
Definition: leveque.h:25
point operator()(const point &x) const
Definition: leveque.h:26
u(Float w1)
Definition: transport_dg2.h:27
Float w
Definition: transport_dg2.h:28