45 libmesh_assert_less (i, 2);
56 libmesh_error_msg(
"Invalid shape function index i = " << i);
65 libmesh_assert_less (i, 3);
70 return .5*xi*(xi - 1.);
73 return .5*xi*(xi + 1);
79 libmesh_error_msg(
"Invalid shape function index i = " << i);
88 libmesh_assert_less (i, 4);
93 return 9./16.*(1./9.-xi*xi)*(xi-1.);
96 return -9./16.*(1./9.-xi*xi)*(xi+1.);
99 return 27./16.*(1.-xi*xi)*(1./3.-xi);
102 return 27./16.*(1.-xi*xi)*(1./3.+xi);
105 libmesh_error_msg(
"Invalid shape function index i = " << i);
110 libmesh_error_msg(
"ERROR: Unsupported polynomial order = " << order);
119 const unsigned int i,
122 libmesh_assert(elem);
132 const unsigned int i,
133 const unsigned int libmesh_dbg_var(j),
138 libmesh_assert_equal_to (j, 0);
140 const Real xi = p(0);
148 libmesh_assert_less (i, 2);
159 libmesh_error_msg(
"Invalid shape function index i = " << i);
167 libmesh_assert_less (i, 3);
181 libmesh_error_msg(
"Invalid shape function index i = " << i);
189 libmesh_assert_less (i, 4);
194 return -9./16.*(3.*xi*xi-2.*xi-1./9.);
197 return -9./16.*(-3.*xi*xi-2.*xi+1./9.);
200 return 27./16.*(3.*xi*xi-2./3.*xi-1.);
203 return 27./16.*(-3.*xi*xi-2./3.*xi+1.);
206 libmesh_error_msg(
"Invalid shape function index i = " << i);
212 libmesh_error_msg(
"ERROR: Unsupported polynomial order = " << order);
221 const unsigned int i,
222 const unsigned int j,
225 libmesh_assert(elem);
237 const unsigned int i,
238 const unsigned int libmesh_dbg_var(j),
244 const Real xi = p(0);
245 libmesh_assert_equal_to (j, 0);
271 libmesh_error_msg(
"Invalid shape function index i = " << i);
280 return -9./16.*(6.*xi-2);
283 return -9./16.*(-6*xi-2.);
286 return 27./16.*(6*xi-2./3.);
289 return 27./16.*(-6*xi-2./3.);
292 libmesh_error_msg(
"Invalid shape function index i = " << i);
298 libmesh_error_msg(
"ERROR: Unsupported polynomial order = " << order);
307 const unsigned int i,
308 const unsigned int j,
311 libmesh_assert(elem);
static OutputShape shape(const ElemType t, const Order o, const unsigned int i, const Point &p)
The base class for all geometric element types.
static OutputShape shape_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
unsigned int p_level() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual ElemType type() const =0
A geometric point in (x,y,z) space.
static OutputShape shape_second_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)