34 const Order libmesh_dbg_var(order),
38 libmesh_assert_less (i, order+1u);
51 returnval = .5*(1. - xi);
54 returnval = .5*(1. + xi);
59 returnval = (xi*xi - 1.)/2.;
62 returnval = (pow<4>(xi) - 1.)/24.;
65 returnval = (pow<6>(xi) - 1.)/720.;
71 returnval = (xi*xi*xi - xi)/6.;
74 returnval = (pow<5>(xi) - xi)/120.;
77 returnval = (pow<7>(xi) - xi)/5040.;
80 Real denominator = 1.;
81 for (
unsigned int n=1; n <= i; ++n)
88 returnval = (returnval - xi)/denominator;
91 returnval = (returnval - 1.)/denominator;
103 const unsigned int i,
106 libmesh_assert(elem);
115 const Order libmesh_dbg_var(order),
116 const unsigned int i,
117 const unsigned int libmesh_dbg_var(j),
122 libmesh_assert_equal_to (j, 0);
123 libmesh_assert_less (i, order+1u);
129 const Real xi = p(0);
147 returnval = pow<3>(xi)/6.;
150 returnval = pow<5>(xi)/120.;
155 returnval = (3*xi*xi - 1.)/6.;
158 returnval = (5.*pow<4>(xi) - 1.)/120.;
161 returnval = (7.*pow<6>(xi) - 1.)/5040.;
164 Real denominator = 1.;
165 for (
unsigned int n=1; n != i; ++n)
172 returnval = (i * returnval - 1.)/denominator/i;
175 returnval = returnval/denominator;
187 const unsigned int i,
188 const unsigned int j,
191 libmesh_assert(elem);
201 const Order libmesh_dbg_var(order),
202 const unsigned int i,
203 const unsigned int libmesh_dbg_var(j),
208 libmesh_assert_equal_to (j, 0);
209 libmesh_assert_less (i, order+1u);
215 const Real xi = p(0);
234 returnval = pow<2>(xi)/2.;
237 returnval = pow<3>(xi)/6.;
240 returnval = pow<4>(xi)/24.;
243 returnval = pow<5>(xi)/120.;
247 Real denominator = 1.;
248 for (
unsigned int n=1; n != i; ++n)
255 returnval = (i * returnval - 1.)/denominator/i;
258 returnval = returnval/denominator;
270 const unsigned int i,
271 const unsigned int j,
274 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)