18 #ifndef GRAD_DIV_EXACT_SOLUTION_H 19 #define GRAD_DIV_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 = dux_dy;
51 const Real duy_dy = dux_dx;
58 return (2*k*k + 1)*operator()(p);
71 #endif // GRAD_DIV_EXACT_SOLUTION_H
RealVectorValue RealGradient
TypeTensor< T > transpose() const
RealTensorValue RealTensor
The libMesh namespace provides an interface to certain functionality in the library.
static void RM(RealTensor T)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
RealGradient forcing(Point p)
A Point defines a location in LIBMESH_DIM dimensional Real space.
This class defines a tensor in LIBMESH_DIM dimensional Real or Complex space.