18 #ifndef LAPLACE_EXACT_SOLUTION_H 19 #define LAPLACE_EXACT_SOLUTION_H 21 #include "libmesh/libmesh_common.h" 31 Real operator() (
unsigned int component,
41 return cos(hp*x)*sin(hp*y)*cos(hp*z);
44 return sin(hp*x)*cos(hp*y)*cos(hp*z);
47 return sin(hp*x)*cos(hp*y)*sin(hp*z);
50 libmesh_error_msg(
"Invalid component = " << component);
73 cos(hp*x)*(hp)*cos(hp*y)*cos(hp*z),
74 cos(hp*x)*sin(hp*y)*(-hp)*sin(hp*z));
78 sin(hp*x)*(-hp)*sin(hp*y)*cos(hp*z),
79 sin(hp*x)*cos(hp*y)*(-hp)*sin(hp*z));
83 sin(hp*x)*(-hp)*sin(hp*y)*sin(hp*z),
84 sin(hp*x)*cos(hp*y)*(hp)*cos(hp*z));
87 libmesh_error_msg(
"Invalid component = " << component);
92 #endif // LAPLACE_EXACT_SOLUTION_H RealVectorValue RealGradient
The libMesh namespace provides an interface to certain functionality in the library.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real