21 :
HDGKernel(parameters), _cached_elem(nullptr)
45 for (
const auto & residual_packet : helper.taggingData())
54 for (
const auto & residual_packet : helper.taggingData())
63 for (
const auto & residual_packet : helper.taggingData())
72 for (
const auto & residual_packet : helper.taggingData())
81 for (
const auto & residual_packet : helper.taggingData())
90 for (
const auto & residual_packet : helper.taggingData())
110 std::set<std::string>
116 const std::unordered_set<unsigned int> &
virtual const std::unordered_set< unsigned int > & getMatPropDependencies() const
Retrieve the set of material properties that this object depends on.
Base kernel for hybridized finite element formulations.
virtual ElementAndTraceScalarHDGAssemblyHelper & hdgHelper()=0
Returns the helper used for common element-and-trace scalar HDG assembly.
void addResidualsAndJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided incoming residuals and derivatives for the Jacobian, corresponding to the provided d...
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar... storing the result in Ke.
virtual void computeResidualAndJacobian() override
Compute the residual and Jacobian together.
virtual bool getMaterialPropertyCalled() const
Returns true if getMaterialProperty() has been called, false otherwise.
const Elem * _cached_elem
Used to assemble the complete AD Jacobian only once per element.
std::set< std::string > additionalROVariables()
virtual void scalarVolume()=0
Assembles the element-interior equation's volume contribution.
void addResiduals(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided incoming residuals corresponding to the provided dof indices.
virtual bool getMaterialPropertyCalled() const override
Returns true if getMaterialProperty() has been called, false otherwise.
void resizeResiduals()
Resizes the element-interior and facet residual vectors for the current element.
void addJacobian(Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
Add the provided residual derivatives into the Jacobian for the provided dof indices.
virtual void scalarFace()=0
Assembles the element-interior equation's face contribution.
virtual void computeResidual() override
Compute this Kernel's contribution to the residual.
void computeOnSide(ElementAndTraceScalarHDGAssemblyHelper &helper)
Assembles the face residual data.
virtual void computeJacobian() override
Compute this Kernel's contribution to the diagonal Jacobian entries.
Assembly & _assembly
Reference to this Kernel's assembly object.
Method-neutral assembly data and operations for an element-and-trace scalar hybridized DG discretizat...
virtual void lmFace()=0
Assembles the facet equation's interior-face contribution.
virtual std::set< std::string > additionalROVariables() override
void compute(ElementAndTraceScalarHDGAssemblyHelper &helper)
Assembles the element-interior residual data.
const Elem *const & _current_elem
Current element.
virtual void computeResidualAndJacobianOnSide() override
static InputParameters validParams()
ElementAndTraceScalarHDGKernel(const InputParameters ¶meters)
static InputParameters validParams()
virtual void computeResidualOnSide() override
virtual void computeJacobianOnSide() override
virtual const std::unordered_set< unsigned int > & getMatPropDependencies() const override
Retrieve the set of material properties that this object depends on.
virtual void jacobianSetup() override
Gets called just before the Jacobian is computed and before this object is asked to do its job...