35 template <
typename ComputeValueType>
51 template <
typename ComputeValueType>
101 void coupledCallback(
const std::string & var_name,
bool is_old)
const override;
110 template <
typename T>
112 template <
typename T,
bool is_ad>
114 template <
typename T>
116 template <
typename T>
131 unsigned int comp = 0)
const override;
134 unsigned int comp = 0)
const override;
269 template <
typename ComputeValueType>
270 template <
typename T>
277 "' attempted to reference material property '",
279 "'\nConsider using an elemental auxiliary variable for '",
283 return MaterialPropertyInterface::getMaterialProperty<T>(
name);
286 template <
typename ComputeValueType>
287 template <
typename T,
bool is_ad>
294 "' attempted to reference material property '",
296 "'\nConsider using an elemental auxiliary variable for '",
300 return MaterialPropertyInterface::getGenericMaterialProperty<T, is_ad>(
name);
303 template <
typename ComputeValueType>
304 template <
typename T>
311 "' attempted to reference material property '",
313 "'\nConsider using an elemental auxiliary variable for '",
317 return MaterialPropertyInterface::getMaterialPropertyOld<T>(
name);
320 template <
typename ComputeValueType>
321 template <
typename T>
328 "' attempted to reference material property '",
330 "'\nConsider using an elemental auxiliary variable for '",
334 return MaterialPropertyInterface::getMaterialPropertyOlder<T>(
name);
An interface for accessing Moose::Functors for systems that do not care about automatic differentiati...
std::string name(const ElemQuality q)
Interface for objects that need parallel consistent random numbers without patterns over the course o...
const OutputTools< ComputeValueType >::VariableValue & _u
Holds the solution at current quadrature points.
AuxKernelTempl< RealVectorValue > VectorAuxKernel
A class for creating restricted objects.
bool _nodal
Flag indicating if the AuxKernel is nodal.
const MooseArray< Real > & _coord
Keeps track of stuff related to assembling.
const unsigned int & _current_side
current side of the current element
MooseMesh & _mesh
Mesh this kernel is active on.
MooseVariableField< ComputeValueType > & variable()
Get a reference to a variable this kernel is action on.
const OutputTools< ComputeValueType >::VariableValue & uOlder() const
Retrieves the older value of the variable that this AuxKernel operates on.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
SystemBase & _sys
System this kernel is part of.
const Real & _current_side_volume
Volume of the current side.
void addPostprocessorDependencyHelper(const PostprocessorName &name) const override final
Helper for deriving classes to override to add dependencies when a Postprocessor is requested...
const Node *const & _current_node
Current node (valid only for nodal kernels)
/class BoundaryRestrictable /brief Provides functionality for limiting the object to certain boundary...
const BoundaryID & _current_boundary_id
The current boundary ID.
Base class for a system (of equations)
virtual const std::string & name() const
Get the name of the class.
DenseVector< OutputData > _local_sol
for holding local solution
AuxKernelTempl< Real > AuxKernel
bool _bnd
true if the kernel is boundary kernel, false if it is interior kernels
const MooseArray< Real > & _JxW
Transformed Jacobian weights.
virtual void compute()
Computes the value and stores it in the solution vector.
Interface for objects that needs transient capabilities.
virtual ComputeValueType computeValue()=0
Compute and return the value of the aux variable.
Interface for notifications that the mesh has changed.
virtual const std::set< std::string > & getRequestedItems() override
Return a set containing the names of items requested by the object.
DenseVector< OutputData > _local_re
for holding local load
virtual void precalculateValue()
This callback is used for AuxKernelTempls that need to perform a per-element calculation.
Every object that can be built by the factory should be derived from this class.
boundary_id_type BoundaryID
typename GenericMaterialPropertyStruct< T, is_ad >::type GenericMaterialProperty
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
AuxKernelTempl(const InputParameters ¶meters)
const std::set< UserObjectName > & getDependObjects() const
const Real & _current_elem_volume
Volume of the current element.
Assembly & _assembly
Assembly class.
Interface for objects that need to use UserObjects.
virtual const VariableValue & coupledDot(const std::string &var_name, unsigned int comp=0) const override
Time derivative of a coupled variable.
virtual const std::set< std::string > & getSuppliedItems() override
Return a set containing the names of items owned by the object.
const Elem *const & _current_lower_d_elem
The current lower dimensional element.
AuxiliarySystem & _aux_sys
OutputTools< Real >::VariableValue VariableValue
NumericVector< Number > & _solution
reference to the solution vector of auxiliary system
const MaterialProperty< T > & getMaterialPropertyOld(const std::string &name)
const OutputTools< ComputeValueType >::VariableValue & uOld() const
Retrieves the old value of the variable that this AuxKernel operates on.
void insert()
Insert the just computed values into the auxiliary solution vector.
MooseVariableField< ComputeValueType > & _var
This is a regular kernel so we cast to a regular MooseVariable.
void addVectorPostprocessorDependencyHelper(const VectorPostprocessorName &name) const override final
Helper for deriving classes to override to add dependencies when a VectorPostprocessor is requested...
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Generic class for solving transient nonlinear problems.
const QBase *const & _qrule
Quadrature rule being used.
An interface for accessing Materials.
const MaterialProperty< T > & getMaterialPropertyOlder(const std::string &name)
Moose::DOFType< ComputeValueType >::type OutputData
std::set< UserObjectName > _depend_uo
Depend UserObjects.
Interface for objects that need to get values of MooseVariables.
An interface that restricts an object to subdomains via the 'blocks' input parameter.
const MaterialProperty< T > & getMaterialProperty(const std::string &name)
Override functions from MaterialPropertyInterface for error checking.
Interface for sorting dependent vectors of objects.
SubProblem & _subproblem
Subproblem this kernel is part of.
const Elem *const & _current_elem
Current element (valid only for elemental kernels)
unsigned int _qp
Quadrature point index.
const InputParameters & parameters() const
Get the parameters of the object.
DenseMatrix< Number > _local_ke
for holding local mass matrix
void addUserObjectDependencyHelper(const UserObject &uo) const override final
Helper for deriving classes to override to add dependencies when a UserObject is requested.
const OutputTools< ComputeValueType >::VariableTestValue & _test
Dimension of the problem being solved.
static InputParameters validParams()
Base class for creating new auxiliary kernels and auxiliary boundary conditions.
const bool & _check_boundary_restricted
Whether or not to check for repeated element sides on the sideset to which the auxkernel is restricte...
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.
void setDofValueHelper(const ComputeValueType &dof_value)
Currently only used when the auxiliary variable is a finite volume variable, this helps call through ...
std::set< std::string > _depend_vars
Depend AuxKernelTempls.
const MooseArray< Point > & _q_point
Active quadrature points.
void coupledCallback(const std::string &var_name, bool is_old) const override
A call-back function provided by the derived object for actions before coupling a variable with funct...
std::set< std::string > _supplied_vars
AuxKernelTempl< RealEigenVector > ArrayAuxKernel
Interface for objects that need to use functions.
A system that holds auxiliary variables.
Base class for user-specific data.
bool isNodal() const
Nodal or elemental kernel?
unsigned int _n_local_dofs
number of local dofs for elemental variables
Interface class for classes which interact with Postprocessors.
const bool _coincident_lower_d_calc
Whether we are computing for a lower dimensional variable using boundary restriction, e.g.
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty(const std::string &name)