18 #ifndef CURL_CURL_EXACT_SOLUTION_H 19 #define CURL_CURL_EXACT_SOLUTION_H 21 #include "libmesh/libmesh_common.h" 22 #include "libmesh/vector_value.h" 34 Point pp = R.transpose()*p;
35 Real x = pp(0), y = pp(1);
37 const Real ux = cos(k*x)*sin(k*y);
38 const Real uy = -sin(k*x)*cos(k*y);
45 Point pp = R.transpose()*p;
46 Real x = pp(0), y = pp(1);
48 const Real dux_dx = -k*sin(k*x)*sin(k*y);
49 const Real dux_dy = k*cos(k*x)*cos(k*y);
50 const Real duy_dx = -k*cos(k*x)*cos(k*y);
51 const Real duy_dy = k*sin(k*x)*sin(k*y);
58 return (2*k*k + 1)*operator()(p);
71 #endif // CURL_CURL_EXACT_SOLUTION_H RealVectorValue RealGradient
TypeTensor< T > transpose() const
RealTensorValue RealTensor
static void RM(RealTensor T)
The libMesh namespace provides an interface to certain functionality in the library.
RealGradient forcing(Point p)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A Point defines a location in LIBMESH_DIM dimensional Real space.
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space.