16template <
typename ComputeValueType>
26template <
typename ComputeValueType>
37 virtual void compute()
override;
61 template <
typename T,
bool is_ad>
79 virtual std::set<MooseVariableFieldBase *>
81 const std::set<MooseVariableFieldBase *> & vars_to_check)
override;
90 unsigned int comp = 0)
const override;
93 unsigned int comp = 0)
const override;
186template <
typename ComputeValueType>
194 "' attempted to reference material property '",
196 "'\nConsider using an elemental auxiliary variable for '",
200 return MaterialPropertyInterface::getMaterialProperty<T>(name);
203template <
typename ComputeValueType>
204template <
typename T,
bool is_ad>
211 "' attempted to reference material property '",
213 "'\nConsider using an elemental auxiliary variable for '",
217 return MaterialPropertyInterface::getGenericMaterialProperty<T, is_ad>(name);
220template <
typename ComputeValueType>
228 "' attempted to reference material property '",
230 "'\nConsider using an elemental auxiliary variable for '",
234 return MaterialPropertyInterface::getMaterialPropertyOld<T>(name);
237template <
typename ComputeValueType>
245 "' attempted to reference material property '",
247 "'\nConsider using an elemental auxiliary variable for '",
251 return MaterialPropertyInterface::getMaterialPropertyOlder<T>(name);
boundary_id_type BoundaryID
AuxKernelTempl< Real > AuxKernel
AuxKernelTempl< RealVectorValue > VectorAuxKernel
AuxKernelTempl< RealEigenVector > ArrayAuxKernel
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
OutputTools< Real >::VariableValue VariableValue
Base class for auxiliary kernels.
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
virtual void precalculateValue()
This callback is used for AuxKernelTempls that need to perform a per-element calculation.
std::optional< bool > _coincident_lower_d_calc
Whether we are computing for a lower dimensional variable using boundary restriction,...
void insert()
Insert the just computed values into the auxiliary solution vector.
bool isNodal() const
Nodal or elemental kernel?
const OutputTools< ComputeValueType >::VariableTestValue & _test
Holds the the test functions.
virtual ComputeValueType computeValue()=0
Compute and return the value of the aux variable.
DenseMatrix< Number > _local_ke
for holding local mass matrix
const OutputTools< ComputeValueType >::VariableValue & uOld() const
Retrieves the old value of the variable that this AuxKernel operates on.
const Elem *const & _current_lower_d_elem
The current lower dimensional element.
const MooseArray< Point > & _q_point
Active quadrature points.
virtual void compute() override
Computes the value and stores it in the solution vector.
DenseVector< OutputData > _local_sol
for holding local solution
void determineWhetherCoincidentLowerDCalc()
Determines whether we're a coincident lower-d calculation.
const MaterialProperty< T > & getMaterialPropertyOlder(const std::string &name)
const Real & _current_elem_volume
Volume of the current element.
const Real & _current_side_volume
Volume of the current side.
DenseVector< OutputData > _local_re
for holding local load
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
virtual const VariableValue & coupledDotDu(const std::string &var_name, unsigned int comp=0) const override
Time derivative of a coupled variable with respect to the coefficients.
const MaterialProperty< T > & getMaterialProperty(const std::string &name)
Override functions from MaterialPropertyInterface for error checking.
const Node *const & _current_node
Current node (valid only for nodal kernels)
const OutputTools< ComputeValueType >::VariableValue & _u
Holds the solution at current quadrature points.
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty(const std::string &name)
const bool _nodal
Flag indicating if the AuxKernel is nodal.
virtual const VariableValue & coupledDot(const std::string &var_name, unsigned int comp=0) const override
Time derivative of a coupled variable.
const MooseArray< Real > & _coord
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
const unsigned int & _current_side
current side of the current element
unsigned int _n_shapes
number of shape functions for the finite element type and current DofObject
unsigned int _qp
Quadrature point index.
MooseVariableField< ComputeValueType > & _var
This is a regular kernel so we cast to a regular MooseVariable, hides base _var.
const QBase *const & _qrule
Quadrature rule being used.
MooseVariableField< ComputeValueType > & variable()
Get a reference to a variable this kernel is action on.
void setDofValueHelper(const ComputeValueType &dof_value)
Currently only used when the auxiliary variable is a finite volume variable, this helps call through ...
const OutputTools< ComputeValueType >::VariableValue & uOlder() const
Retrieves the older value of the variable that this AuxKernel operates on.
const MaterialProperty< T > & getMaterialPropertyOld(const std::string &name)
Moose::DOFType< ComputeValueType >::type OutputData
virtual std::set< MooseVariableFieldBase * > checkVariables(const libMesh::Node &node, const std::set< MooseVariableFieldBase * > &vars_to_check) override
Check whether all of the supplied variables have degree of freedom indices on the supplied node.
const BoundaryID & _current_boundary_id
The current boundary ID.
static InputParameters validParams()
NumericVector< Number > & _solution
reference to the solution vector of auxiliary system
const InputParameters & parameters() const
Get the parameters of the object.
const std::string & name() const
Get the name of the class.
virtual std::set< MooseVariableFieldBase * > checkVariables(const libMesh::Node &node, const std::set< MooseVariableFieldBase * > &vars_to_check)
Check whether all of the supplied variables have degree of freedom indices on the supplied node.
Class for stuff related to variables.
Interface for objects that need to get values of MooseVariables.
MooseVariableBase * mooseVariableBase() const
Get the variable that this object is using.