Go to the documentation of this file.
13 FEMContext & c = cast_ref<FEMContext &>(context);
17 FEBase * elem_fe =
nullptr;
30 FEMContext & c = cast_ref<FEMContext &>(context);
32 FEBase * elem_fe =
nullptr;
36 const std::vector<Real> & JxW = elem_fe->
get_JxW();
38 const std::vector<Point> & xyz = elem_fe->
get_xyz();
45 for (
unsigned int qp = 0; qp != n_qpoints; qp++)
48 const Real xf = xyz[qp](0);
49 const Real yf = xyz[qp](1);
58 dQoI_0 += JxW[qp] * T;
71 FEMContext & c = cast_ref<FEMContext &>(context);
75 FEBase * elem_fe =
nullptr;
79 const std::vector<Real> & JxW = elem_fe->
get_JxW();
82 const std::vector<std::vector<Real>> & phi = elem_fe->
get_phi();
85 const std::vector<Point > & q_point = elem_fe->
get_xyz();
97 for (
unsigned int qp=0; qp != n_qpoints; qp++)
99 const Real x = q_point[qp](0);
100 const Real y = q_point[qp](1);
105 for (
unsigned int i=0; i != n_T_dofs; i++)
106 Q(i) += JxW[qp]*phi[i][qp];
const QBase & get_element_qrule() const
Accessor for element interior quadrature rule for the dimension of the current _elem.
const std::vector< Point > & get_xyz() const
unsigned int n_points() const
The libMesh namespace provides an interface to certain functionality in the library.
This class forms the foundation from which generic finite elements may be derived.
const std::vector< Real > & get_JxW() const
virtual void element_qoi_derivative(DiffContext &context, const QoISet &qois)
Does any work that needs to be done on elem in a quantity of interest derivative assembly loop,...
const std::vector< Number > & get_qois() const
Const accessor for QoI vector.
MetaPhysicL::DualNumber< T, D > abs(const MetaPhysicL::DualNumber< T, D > &in)
const std::vector< DenseVector< Number > > & get_qoi_derivatives() const
Const accessor for QoI derivatives.
Data structure for specifying which Quantities of Interest should be calculated in an adjoint or a pa...
unsigned int n_dof_indices() const
Total number of dof indices on the element.
virtual void init_qoi(std::vector< Number > &sys_qoi)
This class provides all data required for a physics package (e.g.
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.
virtual void element_qoi(DiffContext &context, const QoISet &qois)
Does any work that needs to be done on elem in a quantity of interest assembly loop,...
virtual void init_context(DiffContext &context)
Prepares the result of a build_context() call for use.
const std::vector< std::vector< OutputShape > > & get_phi() const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Number interior_value(unsigned int var, unsigned int qp) const
This class provides all data required for a physics package (e.g.