12 #ifndef MFEM_LOR_MMS_HPP
13 #define MFEM_LOR_MMS_HPP
20 static constexpr
double pi = M_PI,
pi2 = M_PI*M_PI;
27 double x = pi*xvec[0], y = pi*xvec[1];
28 if (dim == 2) {
return sin(x)*
sin(y); }
29 else {
double z = pi*xvec[2];
return sin(x)*
sin(y)*
sin(z); }
35 double x = pi*xvec[0], y = pi*xvec[1];
43 double z = pi*xvec[2];
53 double x = pi*xvec[0], y = pi*xvec[1];
61 double z = pi*xvec[2];
71 double x = pi*xvec[0], y = pi*xvec[1];
81 double z = pi*xvec[2];
96 double z = pi*xvec[2];
int Size() const
Returns the size of the vector.
double f(const Vector &xvec)
void u_vec(const Vector &xvec, Vector &u)
FDualNumber< tbase > cos(const FDualNumber< tbase > &f)
cos([dual number])
FDualNumber< tbase > sin(const FDualNumber< tbase > &f)
sin([dual number])
void f_vec(const Vector &xvec, Vector &f)
double u(const Vector &xvec)