19 FEMContext & c = cast_ref<FEMContext &>(context);
21 FEBase * elem_fe =
nullptr;
25 const std::vector<Real> & JxW = elem_fe->
get_JxW();
27 const std::vector<Point> & xyz = elem_fe->
get_xyz();
37 for (
unsigned int qp = 0; qp != n_qpoints; qp++)
40 const Real x = xyz[qp](0);
41 const Real y = xyz[qp](1);
45 Real s = x * (1 - x) * (1 - y);
51 dQoI_0 += JxW[qp] * ( (f * s) - (
alpha * (U * grad_u)) );
This class provides all data required for a physics package (e.g.
This class provides all data required for a physics package (e.g.
Gradient interior_gradient(unsigned int var, unsigned int qp) const
const QBase & get_element_qrule() const
Accessor for element interior quadrature rule for the dimension of the current _elem.
void get_element_fe(unsigned int var, FEGenericBase< OutputShape > *&fe) const
Accessor for interior finite element object for variable var for the largest dimension in the mesh.