18 #include "libmesh/libmesh_common.h"
22 #ifndef LAPLACE_EXACT_SOLUTION_H
23 #define LAPLACE_EXACT_SOLUTION_H
32 Real operator() (
unsigned int component,
42 return cos(hp*x)*sin(hp*y)*cos(hp*z);
45 return sin(hp*x)*cos(hp*y)*cos(hp*z);
48 return sin(hp*x)*cos(hp*y)*sin(hp*z);
51 libmesh_error_msg(
"Invalid component = " << component);
75 cos(hp*x)*(hp)*cos(hp*y)*cos(hp*z),
76 cos(hp*x)*sin(hp*y)*(-hp)*sin(hp*z));
80 sin(hp*x)*(-hp)*sin(hp*y)*cos(hp*z),
81 sin(hp*x)*cos(hp*y)*(-hp)*sin(hp*z));
85 sin(hp*x)*(-hp)*sin(hp*y)*sin(hp*z),
86 sin(hp*x)*cos(hp*y)*(hp)*cos(hp*z));
89 libmesh_error_msg(
"Invalid component = " << component);
94 #endif // LAPLACE_EXACT_SOLUTION_H