www.mooseframework.org
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
MooseVariableFE< OutputType > Class Template Reference

Class for stuff related to variables. More...

#include <Adaptivity.h>

Inheritance diagram for MooseVariableFE< OutputType >:
[legend]

Public Types

using OutputGradient = typename MooseVariableField< OutputType >::OutputGradient
 
using OutputSecond = typename MooseVariableField< OutputType >::OutputSecond
 
using OutputDivergence = typename MooseVariableField< OutputType >::OutputDivergence
 
using FieldVariableValue = typename MooseVariableField< OutputType >::FieldVariableValue
 
using FieldVariableGradient = typename MooseVariableField< OutputType >::FieldVariableGradient
 
using FieldVariableSecond = typename MooseVariableField< OutputType >::FieldVariableSecond
 
using FieldVariableCurl = typename MooseVariableField< OutputType >::FieldVariableCurl
 
using FieldVariableDivergence = typename MooseVariableField< OutputType >::FieldVariableDivergence
 
using OutputShape = typename MooseVariableField< OutputType >::OutputShape
 
using OutputShapeGradient = typename MooseVariableField< OutputType >::OutputShapeGradient
 
using OutputShapeSecond = typename MooseVariableField< OutputType >::OutputShapeSecond
 
using OutputShapeDivergence = typename MooseVariableField< OutputType >::OutputShapeDivergence
 
using FieldVariablePhiValue = typename MooseVariableField< OutputType >::FieldVariablePhiValue
 
using FieldVariablePhiGradient = typename MooseVariableField< OutputType >::FieldVariablePhiGradient
 
using FieldVariablePhiSecond = typename MooseVariableField< OutputType >::FieldVariablePhiSecond
 
using FieldVariablePhiCurl = typename MooseVariableField< OutputType >::FieldVariablePhiCurl
 
using FieldVariablePhiDivergence = typename MooseVariableField< OutputType >::FieldVariablePhiDivergence
 
using FieldVariableTestValue = typename MooseVariableField< OutputType >::FieldVariableTestValue
 
using FieldVariableTestGradient = typename MooseVariableField< OutputType >::FieldVariableTestGradient
 
using FieldVariableTestSecond = typename MooseVariableField< OutputType >::FieldVariableTestSecond
 
using FieldVariableTestCurl = typename MooseVariableField< OutputType >::FieldVariableTestCurl
 
using FieldVariableTestDivergence = typename MooseVariableField< OutputType >::FieldVariableTestDivergence
 
using OutputData = typename MooseVariableField< OutputType >::OutputData
 
using DoFValue = typename MooseVariableField< OutputType >::DoFValue
 
using FunctorArg = typename Moose::ADType< OutputType >::type
 
using DataFileParameterType = DataFileName
 The parameter type this interface expects for a data file name. More...
 
using FunctorType = FunctorBase< Moose::ADType< OutputType >::type >
 
using ValueType = Moose::ADType< OutputType >::type
 
using GradientType = typename FunctorReturnType< Moose::ADType< OutputType >::type, FunctorEvaluationKind::Gradient >::type
 This rigmarole makes it so that a user can create functors that return containers (std::vector, std::array). More...
 
using DotType = ValueType
 

Public Member Functions

 MooseVariableFE (const InputParameters &parameters)
 
void clearDofIndices () override
 Clear out the dof indices. More...
 
void prepare () override
 Prepare the elemental degrees of freedom. More...
 
void prepareNeighbor () override
 Prepare the neighbor element degrees of freedom. More...
 
void prepareLowerD () override
 Prepare a lower dimensional element's degrees of freedom. More...
 
virtual void prepareIC () override
 Prepare the initial condition. More...
 
void prepareAux () override
 
void reinitNode () override
 
void reinitAux () override
 
void reinitAuxNeighbor () override
 
void reinitNodes (const std::vector< dof_id_type > &nodes) override
 
void reinitNodesNeighbor (const std::vector< dof_id_type > &nodes) override
 
bool usesPhi () const
 Whether or not this variable is actually using the shape function value. More...
 
bool usesGradPhi () const
 Whether or not this variable is actually using the shape function gradient. More...
 
bool usesSecondPhi () const
 Whether or not this variable is computing any second derivatives. More...
 
bool usesSecondPhiNeighbor () const override final
 Whether or not this variable is actually using the shape function second derivative on a neighbor. More...
 
bool computingSecond () const override final
 Whether or not this variable is computing any second derivatives. More...
 
bool computingCurl () const override final
 Whether or not this variable is computing the curl. More...
 
bool computingDiv () const override final
 Whether or not this variable is computing the divergence. More...
 
bool isNodal () const override
 Is this variable nodal. More...
 
bool hasDoFsOnNodes () const override
 Does this variable have DoFs on nodes. More...
 
FEContinuity getContinuity () const override
 Return the continuity of this variable. More...
 
const Node *const & node () const
 
const dof_id_typenodalDofIndex () const override
 
virtual bool isNodalDefined () const override
 Is this variable defined at nodes. More...
 
const Node *const & nodeNeighbor () const
 
const dof_id_typenodalDofIndexNeighbor () const override
 
bool isNodalNeighborDefined () const
 
const Elem *const & currentElem () const override
 Current element this variable is evaluated at. More...
 
const unsigned intcurrentSide () const
 Current side this variable is being evaluated on. More...
 
const Elem *const & neighbor () const
 Current neighboring element. More...
 
virtual void getDofIndices (const Elem *elem, std::vector< dof_id_type > &dof_indices) const override
 
const std::vector< dof_id_type > & dofIndices () const final
 Get local DoF indices. More...
 
unsigned int numberOfDofs () const final
 Get the number of local DoFs. More...
 
const std::vector< dof_id_type > & dofIndicesNeighbor () const final
 Get neighbor DOF indices for currently selected element. More...
 
const std::vector< dof_id_type > & dofIndicesLower () const final
 Get dof indices for the current lower dimensional element (this is meaningful when performing mortar FEM) More...
 
void clearAllDofIndices () final
 
unsigned int numberOfDofsNeighbor () override
 
const FieldVariablePhiValuephi () const override
 Return the variable's elemental shape functions. More...
 
const FieldVariablePhiGradientgradPhi () const override final
 Return the gradients of the variable's elemental shape functions. More...
 
const MappedArrayVariablePhiGradientarrayGradPhi () const
 
const FieldVariablePhiSecondsecondPhi () const override final
 Return the rank-2 tensor of second derivatives of the variable's elemental shape functions. More...
 
const FieldVariablePhiCurlcurlPhi () const override final
 Curl of the shape functions. More...
 
const FieldVariablePhiDivergencedivPhi () const override final
 Divergence of the shape functions. More...
 
const FieldVariablePhiValuephiFace () const override final
 Return the variable's shape functions on an element face. More...
 
const FieldVariablePhiGradientgradPhiFace () const override final
 Return the gradients of the variable's shape functions on an element face. More...
 
const MappedArrayVariablePhiGradientarrayGradPhiFace () const
 
const FieldVariablePhiSecondsecondPhiFace () const override final
 Return the rank-2 tensor of second derivatives of the variable's shape functions on an element face. More...
 
const FieldVariablePhiCurlcurlPhiFace () const
 
const FieldVariablePhiDivergencedivPhiFace () const
 
const FieldVariablePhiValuephiNeighbor () const override final
 Return the variable's shape functions on a neighboring element. More...
 
const FieldVariablePhiGradientgradPhiNeighbor () const override final
 Return the gradients of the variable's shape functions on a neighboring element. More...
 
const MappedArrayVariablePhiGradientarrayGradPhiNeighbor () const
 
const FieldVariablePhiSecondsecondPhiNeighbor () const override final
 Return the rank-2 tensor of second derivatives of the variable's shape functions on a neighboring element. More...
 
const FieldVariablePhiCurlcurlPhiNeighbor () const
 
const FieldVariablePhiDivergencedivPhiNeighbor () const
 
const FieldVariablePhiValuephiFaceNeighbor () const override final
 Return the variable's shape functions on a neighboring element face. More...
 
const FieldVariablePhiGradientgradPhiFaceNeighbor () const override final
 Return the gradients of the variable's shape functions on a neighboring element face. More...
 
const MappedArrayVariablePhiGradientarrayGradPhiFaceNeighbor () const
 
const FieldVariablePhiSecondsecondPhiFaceNeighbor () const override final
 Return the rank-2 tensor of second derivatives of the variable's shape functions on a neighboring element face. More...
 
const FieldVariablePhiCurlcurlPhiFaceNeighbor () const
 
const FieldVariablePhiDivergencedivPhiFaceNeighbor () const
 
virtual const FieldVariablePhiValuephiLower () const override
 Return the variable's shape functions on a lower-dimensional element. More...
 
const FieldVariablePhiGradientgradPhiLower () const
 
const ADTemplateVariableTestGradient< OutputShape > & adGradPhi () const
 
const ADTemplateVariableTestGradient< OutputShape > & adGradPhiFace () const
 
const ADTemplateVariableTestGradient< OutputShape > & adGradPhiFaceNeighbor () const
 
const FieldVariableValueincrement () const
 
const FieldVariableValuevectorTagValue (TagID tag) const override
 tag values getters More...
 
const FieldVariableGradientvectorTagGradient (TagID tag) const
 
const DoFValuevectorTagDofValue (TagID tag) const override
 
const FieldVariableValuematrixTagValue (TagID tag) const override
 
const FieldVariableValuesln () const override
 element solutions More...
 
const FieldVariableValueslnOld () const override
 
const FieldVariableValueslnOlder () const override
 
const FieldVariableValueslnPreviousNL () const
 
const FieldVariableGradientgradSln () const override
 element gradients More...
 
const FieldVariableGradientgradSlnOld () const override
 
const FieldVariableGradientgradSlnOlder () const
 
const FieldVariableGradientgradSlnPreviousNL () const
 
const FieldVariableGradientgradSlnDot () const
 element gradient dots More...
 
const FieldVariableGradientgradSlnDotDot () const
 
const FieldVariableSecondsecondSln () const
 element seconds More...
 
const FieldVariableSecondsecondSlnOld () const
 
const FieldVariableSecondsecondSlnOlder () const
 
const FieldVariableSecondsecondSlnPreviousNL () const
 
const FieldVariableCurlcurlSln () const
 element curls More...
 
const FieldVariableCurlcurlSlnOld () const
 
const FieldVariableCurlcurlSlnOlder () const
 
const FieldVariableDivergencedivSln () const
 element divergence More...
 
const FieldVariableDivergencedivSlnOld () const
 
const FieldVariableDivergencedivSlnOlder () const
 
const ADTemplateVariableValue< OutputType > & adSln () const override
 AD. More...
 
const ADTemplateVariableGradient< OutputType > & adGradSln () const override
 AD grad solution getter. More...
 
const ADTemplateVariableSecond< OutputType > & adSecondSln () const override
 AD second solution getter. More...
 
const ADTemplateVariableValue< OutputType > & adUDot () const override
 AD time derivative getter. More...
 
const ADTemplateVariableValue< OutputType > & adUDotDot () const override
 AD second time derivative getter. More...
 
const ADTemplateVariableGradient< OutputType > & adGradSlnDot () const override
 AD grad of time derivative solution getter. More...
 
const ADTemplateVariableValue< OutputType > & adSlnNeighbor () const override
 neighbor AD More...
 
const ADTemplateVariableGradient< OutputType > & adGradSlnNeighbor () const override
 AD grad neighbor solution getter. More...
 
const ADTemplateVariableSecond< OutputType > & adSecondSlnNeighbor () const override
 AD second neighbor solution getter. More...
 
const ADTemplateVariableValue< OutputType > & adUDotNeighbor () const override
 AD neighbor time derivative getter. More...
 
const ADTemplateVariableValue< OutputType > & adUDotDotNeighbor () const override
 AD neighbor second time derivative getter. More...
 
const ADTemplateVariableGradient< OutputType > & adGradSlnNeighborDot () const override
 AD grad of time derivative neighbor solution getter. More...
 
const FieldVariableValueuDot () const
 element dots More...
 
const FieldVariableValueuDotDot () const
 
const FieldVariableValueuDotOld () const
 
const FieldVariableValueuDotDotOld () const
 
const VariableValueduDotDu () const
 
const VariableValueduDotDotDu () const
 
const FieldVariableValueslnNeighbor () const override
 neighbor solutions More...
 
const FieldVariableValueslnOldNeighbor () const override
 
const FieldVariableValueslnOlderNeighbor () const
 
const FieldVariableValueslnPreviousNLNeighbor () const
 
const FieldVariableGradientgradSlnNeighbor () const override
 neighbor solution gradients More...
 
const FieldVariableGradientgradSlnOldNeighbor () const override
 
const FieldVariableGradientgradSlnOlderNeighbor () const
 
const FieldVariableGradientgradSlnPreviousNLNeighbor () const
 
const FieldVariableGradientgradSlnNeighborDot () const
 neighbor grad dots More...
 
const FieldVariableGradientgradSlnNeighborDotDot () const
 
const FieldVariableSecondsecondSlnNeighbor () const
 neighbor solution seconds More...
 
const FieldVariableSecondsecondSlnOldNeighbor () const
 
const FieldVariableSecondsecondSlnOlderNeighbor () const
 
const FieldVariableSecondsecondSlnPreviousNLNeighbor () const
 
const FieldVariableCurlcurlSlnNeighbor () const
 neighbor solution curls More...
 
const FieldVariableCurlcurlSlnOldNeighbor () const
 
const FieldVariableCurlcurlSlnOlderNeighbor () const
 
const FieldVariableDivergencedivSlnNeighbor () const
 neighbor solution divergence More...
 
const FieldVariableDivergencedivSlnOldNeighbor () const
 
const FieldVariableDivergencedivSlnOlderNeighbor () const
 
const FieldVariableValueuDotNeighbor () const
 neighbor dots More...
 
const FieldVariableValueuDotDotNeighbor () const
 
const FieldVariableValueuDotOldNeighbor () const
 
const FieldVariableValueuDotDotOldNeighbor () const
 
const VariableValueduDotDuNeighbor () const
 
const VariableValueduDotDotDuNeighbor () const
 
const ADTemplateVariableValue< OutputType > & adSlnLower () const
 lower-d element solution More...
 
const FieldVariableValueslnLower () const
 
const FieldVariableValueslnLowerOld () const
 
virtual void computeElemValues () override
 Actually compute variable values from the solution vectors. More...
 
virtual void computeElemValuesFace () override
 Compute values at facial quadrature points. More...
 
virtual void computeNeighborValuesFace () override
 Compute values at facial quadrature points for the neighbor. More...
 
virtual void computeNeighborValues () override
 Compute values at quadrature points for the neighbor. More...
 
virtual void computeLowerDValues () override
 compute values at quadrature points on the lower dimensional element More...
 
virtual void setNodalValue (const OutputType &value, unsigned int idx=0) override
 
virtual void setDofValue (const OutputData &value, unsigned int index) override
 Degree of freedom value setters. More...
 
virtual void setDofValues (const DenseVector< OutputData > &values) override
 Set local DOF values and evaluate the values on quadrature points. More...
 
virtual void setLowerDofValues (const DenseVector< OutputData > &values) override
 Set local DOF values for a lower dimensional element and evaluate the values on quadrature points. More...
 
void insertNodalValue (NumericVector< Number > &residual, const OutputData &v)
 Write a nodal value to the passed-in solution vector. More...
 
OutputData getNodalValue (const Node &node) const
 Get the value of this variable at given node. More...
 
OutputData getNodalValueOld (const Node &node) const
 Get the old value of this variable at given node. More...
 
OutputData getNodalValueOlder (const Node &node) const
 Get the t-2 value of this variable at given node. More...
 
OutputData getElementalValue (const Elem *elem, unsigned int idx=0) const
 Get the current value of this variable on an element. More...
 
OutputData getElementalValueOld (const Elem *elem, unsigned int idx=0) const
 Get the old value of this variable on an element. More...
 
OutputData getElementalValueOlder (const Elem *elem, unsigned int idx=0) const
 Get the older value of this variable on an element. More...
 
virtual void insert (NumericVector< Number > &vector) override
 Set the current local DOF values to the input vector. More...
 
virtual void insertLower (NumericVector< Number > &vector) override
 Insert the currently cached degree of freedom values for a lower-dimensional element into the provided vector. More...
 
virtual void add (NumericVector< Number > &vector) override
 Add the current local DOF values to the input vector. More...
 
void addSolution (const DenseVector< Number > &v)
 Add passed in local DOF values onto the current solution. More...
 
void addSolutionNeighbor (const DenseVector< Number > &v)
 Add passed in local neighbor DOF values onto the current solution. More...
 
const DoFValuedofValue () const
 
const DoFValuedofValues () const override
 dof values getters More...
 
const DoFValuedofValuesOld () const override
 
const DoFValuedofValuesOlder () const override
 
const DoFValuedofValuesPreviousNL () const override
 
const DoFValuedofValuesNeighbor () const override
 
const DoFValuedofValuesOldNeighbor () const override
 
const DoFValuedofValuesOlderNeighbor () const override
 
const DoFValuedofValuesPreviousNLNeighbor () const override
 
const DoFValuedofValuesDot () const override
 
const DoFValuedofValuesDotNeighbor () const override
 
const DoFValuedofValuesDotNeighborResidual () const
 
const DoFValuedofValuesDotOld () const override
 
const DoFValuedofValuesDotOldNeighbor () const override
 
const DoFValuedofValuesDotDot () const override
 
const DoFValuedofValuesDotDotNeighbor () const override
 
const DoFValuedofValuesDotDotNeighborResidual () const
 
const DoFValuedofValuesDotDotOld () const override
 
const DoFValuedofValuesDotDotOldNeighbor () const override
 
const MooseArray< Number > & dofValuesDuDotDu () const override
 
const MooseArray< Number > & dofValuesDuDotDuNeighbor () const override
 
const MooseArray< Number > & dofValuesDuDotDotDu () const override
 
const MooseArray< Number > & dofValuesDuDotDotDuNeighbor () const override
 
const MooseArray< ADReal > & adDofValues () const override
 Return the AD dof values. More...
 
const MooseArray< ADReal > & adDofValuesNeighbor () const override
 Return the AD neignbor dof values. More...
 
void computeIncrementAtQps (const NumericVector< Number > &increment_vec)
 Compute and store incremental change in solution at QPs based on increment_vec. More...
 
void computeIncrementAtNode (const NumericVector< Number > &increment_vec)
 Compute and store incremental change at the current node based on increment_vec. More...
 
OutputType getValue (const Elem *elem, const std::vector< std::vector< OutputShape >> &phi) const
 Compute the variable value at a point on an element. More...
 
OutputTools< OutputType >::OutputGradient getGradient (const Elem *elem, const std::vector< std::vector< typename OutputTools< OutputType >::OutputShapeGradient >> &grad_phi) const
 Compute the variable gradient value at a point on an element. More...
 
virtual std::size_t phiSize () const final
 Return phi size. More...
 
virtual std::size_t phiFaceSize () const final
 Return phiFace size. More...
 
virtual std::size_t phiNeighborSize () const final
 Return phiNeighbor size. More...
 
virtual std::size_t phiFaceNeighborSize () const final
 Return phiFaceNeighbor size. More...
 
std::size_t phiLowerSize () const final
 Return the number of shape functions on the lower dimensional element for this variable. More...
 
const OutputType & nodalValue () const
 Methods for retrieving values of variables at the nodes. More...
 
const OutputType & nodalValueOld () const
 
const OutputType & nodalValueOlder () const
 
const OutputType & nodalValuePreviousNL () const
 
const OutputType & nodalValueDot () const
 
const OutputType & nodalValueDotDot () const
 
const OutputType & nodalValueDotOld () const
 
const OutputType & nodalValueDotDotOld () const
 
const OutputType & nodalValueDuDotDu () const
 
const OutputType & nodalValueDuDotDotDu () const
 
const OutputType & nodalValueNeighbor () const
 
const OutputType & nodalValueOldNeighbor () const
 
const OutputType & nodalValueOlderNeighbor () const
 
const OutputType & nodalValuePreviousNLNeighbor () const
 
const OutputType & nodalValueDotNeighbor () const
 
const OutputType & nodalValueDotNeighborResidual () const
 
const OutputType & nodalValueDotDotNeighbor () const
 
const OutputType & nodalValueDotDotNeighborResidual () const
 
const OutputType & nodalValueDotOldNeighbor () const
 
const OutputType & nodalValueDotDotOldNeighbor () const
 
const OutputType & nodalValueDuDotDuNeighbor () const
 
const OutputType & nodalValueDuDotDotDuNeighbor () const
 
const MooseArray< OutputType > & nodalValueArray () const override
 Methods for retrieving values of variables at the nodes in a MooseArray for AuxKernelBase. More...
 
const MooseArray< OutputType > & nodalValueOldArray () const override
 
const MooseArray< OutputType > & nodalValueOlderArray () const override
 
const DoFValuenodalVectorTagValue (TagID tag) const override
 
const DoFValuenodalMatrixTagValue (TagID tag) const override
 
const Moose::ADType< OutputType >::typeadNodalValue () const
 
virtual void computeNodalValues () override
 Compute nodal values of this variable. More...
 
virtual void computeNodalNeighborValues () override
 Compute nodal values of this variable in the neighbor. More...
 
unsigned int oldestSolutionStateRequested () const override final
 The oldest solution state that is requested for this variable (0 = current, 1 = old, 2 = older, etc). More...
 
void setActiveTags (const std::set< TagID > &vtags) override
 Set the active vector tags. More...
 
virtual void meshChanged () override
 Called on this object when the mesh changes. More...
 
virtual void residualSetup () override
 
virtual void jacobianSetup () override
 
bool supportsFaceArg () const override final
 Whether this functor supports evaluation with FaceArg. More...
 
bool supportsElemSideQpArg () const override final
 Whether this functor supports evaluation with ElemSideQpArg. More...
 
virtual Moose::VarFieldType fieldType () const override
 Filed type of this variable. More...
 
virtual bool isArray () const override
 
virtual bool isVector () const override
 
bool usesPhiNeighbor () const
 Whether or not this variable is actually using the shape function value. More...
 
bool usesGradPhiNeighbor () const
 Whether or not this variable is actually using the shape function gradient. More...
 
bool hasBlocks (const SubdomainName &name) const
 Test if the supplied block name is valid for this object. More...
 
bool hasBlocks (const std::vector< SubdomainName > &names) const
 Test if the supplied vector of block names are valid for this object. More...
 
bool hasBlocks (const std::vector< SubdomainID > &ids) const
 Test if the supplied vector block ids are valid for this object. More...
 
bool hasBlocks (const std::set< SubdomainID > &ids) const
 Test if the supplied set of block ids are valid for this object. More...
 
std::string componentName (const unsigned int comp) const
 Get the variable name of a component in libMesh. More...
 
virtual bool isFV () const
 
const std::set< SubdomainID > & activeSubdomains () const
 The subdomains the variable is active on. More...
 
bool activeOnSubdomain (SubdomainID subdomain) const
 Is the variable active on the subdomain? More...
 
bool activeOnSubdomains (const std::set< SubdomainID > &subdomains) const
 Is the variable active on the subdomains? More...
 
virtual bool needsGradientVectorStorage () const
 Check if this variable needs a raw vector of gradients at dof-values. More...
 
virtual void computeFaceValues (const FaceInfo &)
 Compute values at face quadrature points for the element+neighbor (both sides of the face). More...
 
unsigned int number () const
 Get variable number coming from libMesh. More...
 
const FEType & feType () const
 Get the type of finite element object. More...
 
SystemBasesys ()
 Get the system this variable is part of. More...
 
const SystemBasesys () const
 Get the system this variable is part of. More...
 
const std::string & name () const override
 Get the variable name. More...
 
bool useDual () const
 Get dual mortar option. More...
 
const std::vector< dof_id_type > & allDofIndices () const
 Get all global dofindices for the variable. More...
 
unsigned int totalVarDofs ()
 
Moose::VarKindType kind () const
 Kind of the variable (Nonlinear, Auxiliary, ...) More...
 
void scalingFactor (const std::vector< Real > &factor)
 Set the scaling factor for this variable. More...
 
Real scalingFactor () const
 Get the scaling factor for this variable. More...
 
const std::vector< Real > & arrayScalingFactor () const
 
Order order () const
 Get the order of this variable Note: Order enum can be implicitly converted to unsigned int. More...
 
unsigned int count () const
 Get the number of components Note: For standard and vector variables, the number is one. More...
 
const DofMap & dofMap () const
 The DofMap associated with the system this variable is in. More...
 
std::vector< dof_id_typecomponentDofIndices (const std::vector< dof_id_type > &dof_indices, unsigned int component) const
 Obtain DoF indices of a component with the indices of the 0th component. More...
 
bool eigen () const
 Whether or not this variable operates on an eigen kernel. More...
 
void eigen (bool eigen)
 Mark this variable as an eigen var or non-eigen var. More...
 
void initialSetup () override
 Gets called at the beginning of the simulation before this object is asked to do its job. More...
 
bool isLowerD () const
 
virtual bool enabled () const
 Return the enabled status of the object. More...
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 Get another shared pointer to this object that has the same ownership group. More...
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
MooseAppgetMooseApp () const
 Get the MooseApp this class is associated with. More...
 
const std::string & type () const
 Get the type of this class. More...
 
std::string typeAndName () const
 Get the class's combined type and name; useful in error handling. More...
 
std::string errorPrefix (const std::string &error_type) const
 
void callMooseError (std::string msg, const bool with_prefix) const
 Calls moose error with the message msg. More...
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 The unique parameter name of a valid parameter of this object for accessing parameter controls. More...
 
const InputParametersparameters () const
 Get the parameters of the object. More...
 
MooseObjectName uniqueName () const
 The unique name for accessing input parameters of this object in the InputParameterWarehouse. More...
 
template<typename T >
const T & getParam (const std::string &name) const
 Retrieve a parameter for the object. More...
 
template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 Retrieve two parameters and provide pair of parameters for the object. More...
 
template<typename T >
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 Retrieve a renamed parameter for the object. More...
 
template<typename T >
getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 Verifies that the requested parameter exists and is not NULL and returns it to the caller. More...
 
bool isParamValid (const std::string &name) const
 Test if the supplied parameter is valid. More...
 
bool isParamSetByUser (const std::string &nm) const
 Test if the supplied parameter is set by a user, as opposed to not set or set to default. More...
 
template<typename... Args>
void paramError (const std::string &param, Args... args) const
 Emits an error prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message. More...
 
template<typename... Args>
void paramWarning (const std::string &param, Args... args) const
 Emits a warning prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message. More...
 
template<typename... Args>
void paramInfo (const std::string &param, Args... args) const
 Emits an informational message prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message. More...
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 Connect controllable parameter of this action with the controllable parameters of the objects added by this action. More...
 
template<typename... Args>
void mooseError (Args &&... args) const
 Emits an error prefixed with object name and type. More...
 
template<typename... Args>
void mooseErrorNonPrefixed (Args &&... args) const
 Emits an error without the prefixing included in mooseError(). More...
 
template<typename... Args>
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 Emits a documented error with object name and type. More...
 
template<typename... Args>
void mooseWarning (Args &&... args) const
 Emits a warning prefixed with object name and type. More...
 
template<typename... Args>
void mooseWarningNonPrefixed (Args &&... args) const
 Emits a warning without the prefixing included in mooseWarning(). More...
 
template<typename... Args>
void mooseDeprecated (Args &&... args) const
 
template<typename... Args>
void mooseInfo (Args &&... args) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 
std::string getDataFileName (const std::string &param) const
 Returns the path of a data file for a given FileName type parameter, searching (in the following order) More...
 
std::string getDataFileNameByName (const std::string &name, const std::string *param=nullptr) const
 Returns the path of a data file for a given relative file path. More...
 
const std::vector< SubdomainName > & blocks () const
 Return the block names for this object. More...
 
unsigned int numBlocks () const
 Return the number of blocks for this object. More...
 
virtual const std::set< SubdomainID > & blockIDs () const
 Return the block subdomain ids for this object Note, if this is not block restricted, this function returns all mesh subdomain ids. More...
 
unsigned int blocksMaxDimension () const
 Return the largest mesh dimension of the elements in the blocks for this object. More...
 
bool isBlockSubset (const std::set< SubdomainID > &ids) const
 Test if the class block ids are a subset of the supplied objects. More...
 
bool isBlockSubset (const std::vector< SubdomainID > &ids) const
 Test if the class block ids are a subset of the supplied objects. More...
 
template<typename T , bool is_ad = false>
bool hasBlockMaterialProperty (const std::string &prop_name)
 Check if a material property is valid for all blocks of this object. More...
 
const std::set< SubdomainID > & meshBlockIDs () const
 Return all of the SubdomainIDs for the mesh. More...
 
virtual bool blockRestricted () const
 Returns true if this object has been restricted to a block. More...
 
virtual void checkVariable (const MooseVariableFieldBase &variable) const
 Helper for checking that the ids for this object are in agreement with the variables on the supplied variable. More...
 
void buildOutputHideVariableList (std::set< std::string > variable_names)
 Builds hide lists for output objects NOT listed in the 'outputs' parameter. More...
 
const std::set< OutputName > & getOutputs ()
 Get the list of output objects that this class is restricted. More...
 
virtual void subdomainSetup ()
 Gets called when the subdomain changes (i.e. More...
 
virtual void customSetup (const ExecFlagType &)
 Gets called in FEProblemBase::execute() for execute flags other than initial, timestep_begin, nonlinear, linear and subdomain. More...
 
virtual void customSetup (const ExecFlagType &exec_type) override
 
const ExecFlagEnumgetExecuteOnEnum () const
 Return the execute on MultiMooseEnum for this object. More...
 
FunctorReturnType< Moose::ADType< OutputType >::type, FET >::type genericEvaluate (const Space &r, const State &state) const
 Perform a generic evaluation based on the supplied template argument FET and supplied spatial and temporal arguments. More...
 
const MooseFunctorName & functorName () const
 Return the functor name. More...
 
void setCacheClearanceSchedule (const std::set< ExecFlagType > &clearance_schedule)
 Set how often to clear the functor evaluation cache. More...
 
virtual bool isExtrapolatedBoundaryFace (const FaceInfo &, const Elem *, const StateArg &) const
 Returns whether this (sided) face is an extrapolated boundary face for this functor. More...
 
bool isInternalFace (const FaceInfo &) const
 Returns true if the face is an internal face. More...
 
virtual bool isConstant () const
 Returns true if this functor is a constant. More...
 
virtual bool hasFaceSide (const FaceInfo &fi, const bool fi_elem_side) const override
 
Moose::FaceArg checkFace (const Moose::FaceArg &face) const
 Examines the incoming face argument. More...
 
ValueType operator() (const ElemArg &elem, const StateArg &state) const
 Same as their evaluate overloads with the same arguments but allows for caching implementation. More...
 
ValueType operator() (const FaceArg &face, const StateArg &state) const
 
ValueType operator() (const ElemQpArg &qp, const StateArg &state) const
 
ValueType operator() (const ElemSideQpArg &qp, const StateArg &state) const
 
ValueType operator() (const ElemPointArg &elem_point, const StateArg &state) const
 
ValueType operator() (const NodeArg &node, const StateArg &state) const
 
GradientType gradient (const ElemArg &elem, const StateArg &state) const
 Same as their evaluateGradient overloads with the same arguments but allows for caching implementation. More...
 
GradientType gradient (const FaceArg &face, const StateArg &state) const
 
GradientType gradient (const ElemQpArg &qp, const StateArg &state) const
 
GradientType gradient (const ElemSideQpArg &qp, const StateArg &state) const
 
GradientType gradient (const ElemPointArg &elem_point, const StateArg &state) const
 
GradientType gradient (const NodeArg &node, const StateArg &state) const
 
DotType dot (const ElemArg &elem, const StateArg &state) const
 Same as their evaluateDot overloads with the same arguments but allows for caching implementation. More...
 
DotType dot (const FaceArg &face, const StateArg &state) const
 
DotType dot (const ElemQpArg &qp, const StateArg &state) const
 
DotType dot (const ElemSideQpArg &qp, const StateArg &state) const
 
DotType dot (const ElemPointArg &elem_point, const StateArg &state) const
 
DotType dot (const NodeArg &node, const StateArg &state) const
 
GradientType gradDot (const ElemArg &elem, const StateArg &state) const
 Same as their evaluateGradDot overloads with the same arguments but allows for caching implementation. More...
 
GradientType gradDot (const FaceArg &face, const StateArg &state) const
 
GradientType gradDot (const ElemQpArg &qp, const StateArg &state) const
 
GradientType gradDot (const ElemSideQpArg &qp, const StateArg &state) const
 
GradientType gradDot (const ElemPointArg &elem_point, const StateArg &state) const
 
GradientType gradDot (const NodeArg &node, const StateArg &state) const
 

Static Public Member Functions

static InputParameters validParams ()
 

Public Attributes

const ConsoleStream _console
 An instance of helper class to write streams to the Console objects. More...
 

Protected Types

using ElemArg = Moose::ElemArg
 
using ElemQpArg = Moose::ElemQpArg
 
using ElemSideQpArg = Moose::ElemSideQpArg
 
using FaceArg = Moose::FaceArg
 
using StateArg = Moose::StateArg
 
using NodeArg = Moose::NodeArg
 
using ElemPointArg = Moose::ElemPointArg
 

Protected Member Functions

ValueType faceEvaluate (const FaceArg &, const StateArg &, const std::vector< ValueType > &cache_data) const
 A common method that both evaluate(FaceArg) and evaluateDot(FaceArg) can call. More...
 
ValueType evaluate (const ElemQpArg &elem_qp, const StateArg &state) const override final
 
ValueType evaluate (const ElemSideQpArg &elem_side_qp, const StateArg &state) const override final
 
ValueType evaluate (const ElemArg &, const StateArg &) const override final
 Evaluate the functor with a given element. More...
 
ValueType evaluate (const ElemPointArg &, const StateArg &) const override final
 Evaluate the functor with a given element and point. More...
 
ValueType evaluate (const NodeArg &node_arg, const StateArg &state) const override final
 
ValueType evaluate (const FaceArg &, const StateArg &) const override final
 
GradientType evaluateGradient (const ElemQpArg &elem_qp, const StateArg &state) const override
 
GradientType evaluateGradient (const ElemSideQpArg &elem_side_qp, const StateArg &state) const override final
 
GradientType evaluateGradient (const ElemArg &, const StateArg &) const override final
 Evaluate the functor gradient with a given element. More...
 
DotType evaluateDot (const ElemQpArg &elem_qp, const StateArg &state) const override final
 
DotType evaluateDot (const ElemSideQpArg &elem_side_qp, const StateArg &state) const override final
 
DotType evaluateDot (const ElemArg &, const StateArg &) const override final
 Evaluate the functor time derivative with a given element. More...
 
DotType evaluateDot (const FaceArg &, const StateArg &) const override final
 
GradientType evaluateGradDot (const ElemArg &, const StateArg &) const override final
 Evaluate the functor gradient-dot with a given element. More...
 
bool doDerivatives () const
 
virtual bool hasBlockMaterialPropertyHelper (const std::string &prop_name)
 A helper method to allow the Material object to specialize the behavior of hasBlockMaterialProperty. More...
 
void initializeBlockRestrictable (const MooseObject *moose_object)
 An initialization routine needed for dual constructors. More...
 
Moose::CoordinateSystemType getBlockCoordSystem ()
 Check if the blocks this object operates on all have the same coordinate system, and if so return it. More...
 
Functor evaluation routines

These methods are all for evaluating functors with different kinds of spatial arguments.

Each of these methods also takes a state argument. For a description of the state argument, please see the StateArg doxygen

virtual GradientType evaluateGradient (const FaceArg &, const StateArg &) const
 
virtual GradientType evaluateGradient (const ElemPointArg &, const StateArg &) const
 Evaluate the functor gradient with a given element and point. More...
 
virtual GradientType evaluateGradient (const NodeArg &, const StateArg &) const
 
virtual DotType evaluateDot (const ElemPointArg &, const StateArg &) const
 Evaluate the functor time derivative with a given element and point. More...
 
virtual DotType evaluateDot (const NodeArg &, const StateArg &) const
 
virtual GradientType evaluateGradDot (const FaceArg &, const StateArg &) const
 
virtual GradientType evaluateGradDot (const ElemQpArg &, const StateArg &) const
 
virtual GradientType evaluateGradDot (const ElemSideQpArg &, const StateArg &) const
 
virtual GradientType evaluateGradDot (const ElemPointArg &, const StateArg &) const
 Evaluate the functor gradient-dot with a given element and point. More...
 
virtual GradientType evaluateGradDot (const NodeArg &, const StateArg &) const
 

Protected Attributes

 usingMooseVariableFieldMembers
 
std::unique_ptr< MooseVariableData< OutputType > > _element_data
 Holder for all the data associated with the "main" element. More...
 
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
 Holder for all the data associated with the neighbor element. More...
 
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
 Holder for all the data associated with the lower dimeensional element. More...
 
SystemBase_sys
 System this variable is part of. More...
 
FEType _fe_type
 The FEType associated with this variable. More...
 
unsigned int _var_num
 variable number (from libMesh) More...
 
unsigned int _index
 variable number within MOOSE More...
 
bool _is_eigen
 Whether or not this variable operates on eigen kernels. More...
 
Moose::VarKindType _var_kind
 Variable type (see MooseTypes.h) More...
 
SubProblem_subproblem
 Problem this variable is part of. More...
 
const Variable & _variable
 libMesh variable object for this variable More...
 
Assembly_assembly
 Assembly data. More...
 
const DofMap & _dof_map
 DOF map. More...
 
std::vector< dof_id_type_dof_indices
 DOF indices. More...
 
MooseMesh_mesh
 mesh the variable is active in More...
 
THREAD_ID _tid
 Thread ID. More...
 
const unsigned int _count
 Number of variables in the array. More...
 
std::vector< Real_scaling_factor
 scaling factor for this variable More...
 
std::string _var_name
 Variable name. More...
 
bool _use_dual
 If dual mortar approach is used. More...
 
const bool _is_array
 Whether this is an array variable. More...
 
bool _is_lower_d
 Whether this variable lives on lower dimensional blocks. More...
 
const bool & _enabled
 Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects. More...
 
MooseApp_app
 The MOOSE application this is associated with. More...
 
const std::string _type
 The type of this class. More...
 
const std::string _name
 The name of this class. More...
 
const InputParameters_pars
 Parameters of this object, references the InputParameters stored in the InputParametersWarehouse. More...
 
Factory_factory
 The Factory associated with the MooseApp. More...
 
ActionFactory_action_factory
 Builds Actions. More...
 
const Parallel::Communicator & _communicator
 
const MaterialData_blk_material_data
 Pointer to the MaterialData class for this object. More...
 
const ExecFlagEnum_execute_enum
 Execute settings for this object. More...
 
const ExecFlagType_current_execute_flag
 Reference to FEProblemBase. More...
 
FEProblemBase_mci_feproblem
 Reference to FEProblemBase instance. More...
 

Private Member Functions

template<typename Shapes , typename Solution , typename GradShapes , typename GradSolution >
void computeSolution (const Elem *elem, unsigned int n_qp, const StateArg &state, const Shapes &phi, Solution &local_soln, const GradShapes &grad_phi, GradSolution &grad_local_soln, Solution &dot_local_soln, GradSolution &grad_dot_local_soln) const
 Compute the solution, gradient, time derivative, and gradient of the time derivative with provided shape functions. More...
 
void evaluateOnElement (const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
 Evaluate solution and gradient for the elem_qp argument. More...
 
void evaluateOnElementSide (const ElemSideQpArg &elem_side_qp, const StateArg &state, bool cache_eligible) const
 Evaluate solution and gradient for the elem_side_qp argument. More...
 

Private Attributes

const Elem * _current_elem_qp_functor_elem = nullptr
 Keep track of the current elem-qp functor element in order to enable local caching (e.g. More...
 
std::vector< ValueType_current_elem_qp_functor_sln
 The values of the solution for the _current_elem_qp_functor_elem. More...
 
std::vector< GradientType_current_elem_qp_functor_gradient
 The values of the gradient for the _current_elem_qp_functor_elem. More...
 
std::vector< DotType_current_elem_qp_functor_dot
 The values of the time derivative for the _current_elem_qp_functor_elem. More...
 
std::vector< GradientType_current_elem_qp_functor_grad_dot
 The values of the gradient of the time derivative for the _current_elem_qp_functor_elem. More...
 
std::pair< const Elem *, unsigned int_current_elem_side_qp_functor_elem_side
 Keep track of the current elem-side-qp functor element and side in order to enable local caching (e.g. More...
 
std::vector< ValueType_current_elem_side_qp_functor_sln
 The values of the solution for the _current_elem_side_qp_functor_elem_side. More...
 
std::vector< GradientType_current_elem_side_qp_functor_gradient
 The values of the gradient for the _current_elem_side_qp_functor_elem_side. More...
 
std::vector< DotType_current_elem_side_qp_functor_dot
 The values of the time derivative for the _current_elem_side_qp_functor_elem_side. More...
 
std::vector< GradientType_current_elem_side_qp_functor_grad_dot
 The values of the gradient of the time derivative for the _current_elem_side_qp_functor_elem_side. More...
 
const TimeIntegrator *const _time_integrator
 the time integrator used for computing time derivatives More...
 
ADReal _ad_real_dummy = 0
 A dummy ADReal variable. More...
 
virtual void timestepSetup () override
 
bool hasBlocks (const SubdomainID id) const override
 Returns whether the functor is defined on this block. More...
 
const NumericVector< Number > & getSolution (const Moose::StateArg &state) const
 Get the solution corresponding to the provided state. More...
 

Detailed Description

template<typename OutputType>
class MooseVariableFE< OutputType >

Class for stuff related to variables.

Each variable can compute nodal or elemental (at QPs) values.

OutputType OutputShape OutputData

Real Real Real RealVectorValue RealVectorValue Real RealEigenVector Real RealEigenVector

Definition at line 31 of file Adaptivity.h.

Member Typedef Documentation

◆ DataFileParameterType

using DataFileInterface< MooseObject >::DataFileParameterType = DataFileName
inherited

The parameter type this interface expects for a data file name.

Definition at line 26 of file DataFileInterface.h.

◆ DoFValue

template<typename OutputType>
using MooseVariableFE< OutputType >::DoFValue = typename MooseVariableField<OutputType>::DoFValue

Definition at line 81 of file MooseVariableFE.h.

◆ DotType

using Moose::FunctorBase< Moose::ADType< OutputType >::type >::DotType = ValueType
inherited

Definition at line 150 of file MooseFunctor.h.

◆ ElemArg

template<typename OutputType>
using MooseVariableFE< OutputType >::ElemArg = Moose::ElemArg
protected

Definition at line 729 of file MooseVariableFE.h.

◆ ElemPointArg

template<typename OutputType>
using MooseVariableFE< OutputType >::ElemPointArg = Moose::ElemPointArg
protected

Definition at line 735 of file MooseVariableFE.h.

◆ ElemQpArg

template<typename OutputType>
using MooseVariableFE< OutputType >::ElemQpArg = Moose::ElemQpArg
protected

Definition at line 730 of file MooseVariableFE.h.

◆ ElemSideQpArg

template<typename OutputType>
using MooseVariableFE< OutputType >::ElemSideQpArg = Moose::ElemSideQpArg
protected

Definition at line 731 of file MooseVariableFE.h.

◆ FaceArg

template<typename OutputType>
using MooseVariableFE< OutputType >::FaceArg = Moose::FaceArg
protected

Definition at line 732 of file MooseVariableFE.h.

◆ FieldVariableCurl

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableCurl = typename MooseVariableField<OutputType>::FieldVariableCurl

Definition at line 56 of file MooseVariableFE.h.

◆ FieldVariableDivergence

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableDivergence = typename MooseVariableField<OutputType>::FieldVariableDivergence

Definition at line 57 of file MooseVariableFE.h.

◆ FieldVariableGradient

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableGradient = typename MooseVariableField<OutputType>::FieldVariableGradient

Definition at line 54 of file MooseVariableFE.h.

◆ FieldVariablePhiCurl

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariablePhiCurl = typename MooseVariableField<OutputType>::FieldVariablePhiCurl

Definition at line 68 of file MooseVariableFE.h.

◆ FieldVariablePhiDivergence

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariablePhiDivergence = typename MooseVariableField<OutputType>::FieldVariablePhiDivergence

Definition at line 70 of file MooseVariableFE.h.

◆ FieldVariablePhiGradient

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariablePhiGradient = typename MooseVariableField<OutputType>::FieldVariablePhiGradient

Definition at line 66 of file MooseVariableFE.h.

◆ FieldVariablePhiSecond

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariablePhiSecond = typename MooseVariableField<OutputType>::FieldVariablePhiSecond

Definition at line 67 of file MooseVariableFE.h.

◆ FieldVariablePhiValue

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariablePhiValue = typename MooseVariableField<OutputType>::FieldVariablePhiValue

Definition at line 64 of file MooseVariableFE.h.

◆ FieldVariableSecond

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableSecond = typename MooseVariableField<OutputType>::FieldVariableSecond

Definition at line 55 of file MooseVariableFE.h.

◆ FieldVariableTestCurl

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableTestCurl = typename MooseVariableField<OutputType>::FieldVariableTestCurl

Definition at line 76 of file MooseVariableFE.h.

◆ FieldVariableTestDivergence

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableTestDivergence = typename MooseVariableField<OutputType>::FieldVariableTestDivergence

Definition at line 78 of file MooseVariableFE.h.

◆ FieldVariableTestGradient

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableTestGradient = typename MooseVariableField<OutputType>::FieldVariableTestGradient

Definition at line 74 of file MooseVariableFE.h.

◆ FieldVariableTestSecond

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableTestSecond = typename MooseVariableField<OutputType>::FieldVariableTestSecond

Definition at line 75 of file MooseVariableFE.h.

◆ FieldVariableTestValue

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableTestValue = typename MooseVariableField<OutputType>::FieldVariableTestValue

Definition at line 72 of file MooseVariableFE.h.

◆ FieldVariableValue

template<typename OutputType>
using MooseVariableFE< OutputType >::FieldVariableValue = typename MooseVariableField<OutputType>::FieldVariableValue

Definition at line 53 of file MooseVariableFE.h.

◆ FunctorArg

template<typename OutputType>
using MooseVariableFE< OutputType >::FunctorArg = typename Moose::ADType<OutputType>::type

Definition at line 83 of file MooseVariableFE.h.

◆ FunctorType

using Moose::FunctorBase< Moose::ADType< OutputType >::type >::FunctorType = FunctorBase<Moose::ADType< OutputType >::type >
inherited

Definition at line 140 of file MooseFunctor.h.

◆ GradientType

using Moose::FunctorBase< Moose::ADType< OutputType >::type >::GradientType = typename FunctorReturnType<Moose::ADType< OutputType >::type , FunctorEvaluationKind::Gradient>::type
inherited

This rigmarole makes it so that a user can create functors that return containers (std::vector, std::array).

This logic will make it such that if a user requests a functor type T that is a container of algebraic types, for example Reals, then the GradientType will be a container of the gradients of those algebraic types, in this example VectorValue<Reals>. So if T is std::vector<Real>, then GradientType will be std::vector<VectorValue<Real>>. As another example: T = std::array<VectorValue<Real>, 1> -> GradientType = std::array<TensorValue<Real>, 1>

Definition at line 149 of file MooseFunctor.h.

◆ NodeArg

template<typename OutputType>
using MooseVariableFE< OutputType >::NodeArg = Moose::NodeArg
protected

Definition at line 734 of file MooseVariableFE.h.

◆ OutputData

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputData = typename MooseVariableField<OutputType>::OutputData

Definition at line 80 of file MooseVariableFE.h.

◆ OutputDivergence

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputDivergence = typename MooseVariableField<OutputType>::OutputDivergence

Definition at line 51 of file MooseVariableFE.h.

◆ OutputGradient

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputGradient = typename MooseVariableField<OutputType>::OutputGradient

Definition at line 49 of file MooseVariableFE.h.

◆ OutputSecond

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputSecond = typename MooseVariableField<OutputType>::OutputSecond

Definition at line 50 of file MooseVariableFE.h.

◆ OutputShape

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputShape = typename MooseVariableField<OutputType>::OutputShape

Definition at line 59 of file MooseVariableFE.h.

◆ OutputShapeDivergence

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputShapeDivergence = typename MooseVariableField<OutputType>::OutputShapeDivergence

Definition at line 62 of file MooseVariableFE.h.

◆ OutputShapeGradient

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputShapeGradient = typename MooseVariableField<OutputType>::OutputShapeGradient

Definition at line 60 of file MooseVariableFE.h.

◆ OutputShapeSecond

template<typename OutputType>
using MooseVariableFE< OutputType >::OutputShapeSecond = typename MooseVariableField<OutputType>::OutputShapeSecond

Definition at line 61 of file MooseVariableFE.h.

◆ StateArg

template<typename OutputType>
using MooseVariableFE< OutputType >::StateArg = Moose::StateArg
protected

Definition at line 733 of file MooseVariableFE.h.

◆ ValueType

using Moose::FunctorBase< Moose::ADType< OutputType >::type >::ValueType = Moose::ADType< OutputType >::type
inherited

Definition at line 141 of file MooseFunctor.h.

Constructor & Destructor Documentation

◆ MooseVariableFE()

template<typename OutputType >
MooseVariableFE< OutputType >::MooseVariableFE ( const InputParameters parameters)

Definition at line 52 of file MooseVariableFE.C.

54 {
55  _element_data = std::make_unique<MooseVariableData<OutputType>>(*this,
56  _sys,
57  _tid,
59  this->_assembly.qRule(),
60  this->_assembly.qRuleFace(),
61  this->_assembly.node(),
62  this->_assembly.elem());
63  _neighbor_data = std::make_unique<MooseVariableData<OutputType>>(
64  *this,
65  _sys,
66  _tid,
68  this->_assembly.qRuleNeighbor(), // Place holder
69  this->_assembly.qRuleNeighbor(),
70  this->_assembly.nodeNeighbor(),
71  this->_assembly.neighbor());
72  _lower_data =
73  std::make_unique<MooseVariableData<OutputType>>(*this,
74  _sys,
75  _tid,
77  this->_assembly.qRuleFace(),
78  this->_assembly.qRuleFace(), // Place holder
79  this->_assembly.node(), // Place holder
80  this->_assembly.lowerDElem());
81 }
const Elem *const & elem() const
Return the current element.
Definition: Assembly.h:367
Class for stuff related to variables.
Definition: Coupleable.h:38
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
THREAD_ID _tid
Thread ID.
const QBase *const & qRuleNeighbor() const
Returns the reference to the current quadrature being used on a current neighbor. ...
Definition: Assembly.h:471
SystemBase & _sys
System this variable is part of.
const QBase *const & qRule() const
Returns the reference to the current quadrature being used.
Definition: Assembly.h:210
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.
const Node *const & nodeNeighbor() const
Returns the reference to the neighboring node.
Definition: Assembly.h:501
const QBase *const & qRuleFace() const
Returns the reference to the current quadrature being used on a current face.
Definition: Assembly.h:286
Assembly & _assembly
Assembly data.
const Elem *const & neighbor() const
Return the neighbor element.
Definition: Assembly.h:423
const InputParameters & parameters() const
Get the parameters of the object.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.
const Node *const & node() const
Returns the reference to the node.
Definition: Assembly.h:495
const Elem *const & lowerDElem() const
Return the lower dimensional element.
Definition: Assembly.h:429

Member Function Documentation

◆ activeOnSubdomain()

bool MooseVariableFieldBase::activeOnSubdomain ( SubdomainID  subdomain) const
inherited

Is the variable active on the subdomain?

Parameters
subdomainThe subdomain id in question
Returns
true if active on subdomain, false otherwise

Definition at line 45 of file MooseVariableFieldBase.C.

Referenced by ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), ComputeFullJacobianThread::computeOnInternalFace(), FlagElementsThread::onElement(), and ComputeDiracThread::onElement().

46 {
47  return this->_sys.system().variable(_var_num).active_on_subdomain(subdomain);
48 }
SystemBase & _sys
System this variable is part of.
virtual System & system()=0
Get the reference to the libMesh system.
unsigned int _var_num
variable number (from libMesh)

◆ activeOnSubdomains()

bool MooseVariableFieldBase::activeOnSubdomains ( const std::set< SubdomainID > &  subdomains) const
inherited

Is the variable active on the subdomains?

Parameters
subdomainsThe subdomain ids in question
Returns
true if active on all provided subdomains, false otherwise

Definition at line 51 of file MooseVariableFieldBase.C.

52 {
53  const auto & active_subs = activeSubdomains();
54  return std::includes(
55  active_subs.begin(), active_subs.end(), subdomains.begin(), subdomains.end());
56 }
const std::set< SubdomainID > & activeSubdomains() const
The subdomains the variable is active on.

◆ activeSubdomains()

const std::set< SubdomainID > & MooseVariableFieldBase::activeSubdomains ( ) const
inherited

The subdomains the variable is active on.

Definition at line 39 of file MooseVariableFieldBase.C.

Referenced by SetupResidualDebugAction::act(), MooseVariableFieldBase::activeOnSubdomains(), ArrayDGLowerDKernel::ArrayDGLowerDKernel(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), ArrayLowerDIntegratedBC::ArrayLowerDIntegratedBC(), BlockRestrictable::checkVariable(), DGLowerDKernel::DGLowerDKernel(), HFEMDirichletBC::HFEMDirichletBC(), and LowerDIntegratedBC::LowerDIntegratedBC().

40 {
41  return this->_sys.system().variable(_var_num).active_subdomains();
42 }
SystemBase & _sys
System this variable is part of.
virtual System & system()=0
Get the reference to the libMesh system.
unsigned int _var_num
variable number (from libMesh)

◆ add()

template<typename OutputType >
void MooseVariableFE< OutputType >::add ( NumericVector< Number > &  vector)
overridevirtual

Add the current local DOF values to the input vector.

Implements MooseVariableFieldBase.

Definition at line 221 of file MooseVariableFE.C.

222 {
223  _element_data->add(vector);
224 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adDofValues()

template<typename OutputType >
const MooseArray< ADReal > & MooseVariableFE< OutputType >::adDofValues ( ) const
inlineoverridevirtual

Return the AD dof values.

Implements MooseVariableField< OutputType >.

Definition at line 835 of file MooseVariableFE.h.

836 {
837  return _element_data->adDofValues();
838 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adDofValuesNeighbor()

template<typename OutputType >
const MooseArray< ADReal > & MooseVariableFE< OutputType >::adDofValuesNeighbor ( ) const
inlineoverridevirtual

Return the AD neignbor dof values.

Implements MooseVariableField< OutputType >.

Definition at line 842 of file MooseVariableFE.h.

843 {
844  return _neighbor_data->adDofValues();
845 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ addSolution()

template<typename OutputType >
void MooseVariableFE< OutputType >::addSolution ( const DenseVector< Number > &  v)

Add passed in local DOF values onto the current solution.

Definition at line 228 of file MooseVariableFE.C.

Referenced by ArrayKernel::computeJacobian(), ArrayIntegratedBC::computeJacobian(), ArrayKernel::computeOffDiagJacobian(), ArrayIntegratedBC::computeOffDiagJacobian(), ArrayKernel::computeResidual(), and ArrayIntegratedBC::computeResidual().

229 {
230  _element_data->addSolution(this->_sys.solution(), v);
231 }
NumericVector< Number > & solution()
Definition: SystemBase.h:182
SystemBase & _sys
System this variable is part of.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ addSolutionNeighbor()

template<typename OutputType >
void MooseVariableFE< OutputType >::addSolutionNeighbor ( const DenseVector< Number > &  v)

Add passed in local neighbor DOF values onto the current solution.

Definition at line 235 of file MooseVariableFE.C.

236 {
237  _neighbor_data->addSolution(this->_sys.solution(), v);
238 }
NumericVector< Number > & solution()
Definition: SystemBase.h:182
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
SystemBase & _sys
System this variable is part of.

◆ adGradPhi()

template<typename OutputType>
const ADTemplateVariableTestGradient<OutputShape>& MooseVariableFE< OutputType >::adGradPhi ( ) const
inline

Definition at line 248 of file MooseVariableFE.h.

249  {
250  return _element_data->adGradPhi();
251  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adGradPhiFace()

template<typename OutputType>
const ADTemplateVariableTestGradient<OutputShape>& MooseVariableFE< OutputType >::adGradPhiFace ( ) const
inline

Definition at line 253 of file MooseVariableFE.h.

254  {
255  return _element_data->adGradPhiFace();
256  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adGradPhiFaceNeighbor()

template<typename OutputType>
const ADTemplateVariableTestGradient<OutputShape>& MooseVariableFE< OutputType >::adGradPhiFaceNeighbor ( ) const
inline

Definition at line 258 of file MooseVariableFE.h.

259  {
260  return _neighbor_data->adGradPhiFace();
261  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adGradSln()

template<typename OutputType>
const ADTemplateVariableGradient<OutputType>& MooseVariableFE< OutputType >::adGradSln ( ) const
inlineoverridevirtual

AD grad solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 342 of file MooseVariableFE.h.

343  {
344  return _element_data->adGradSln();
345  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adGradSlnDot()

template<typename OutputType>
const ADTemplateVariableGradient<OutputType>& MooseVariableFE< OutputType >::adGradSlnDot ( ) const
inlineoverridevirtual

AD grad of time derivative solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 358 of file MooseVariableFE.h.

359  {
360  return _element_data->adGradSlnDot();
361  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adGradSlnNeighbor()

template<typename OutputType>
const ADTemplateVariableGradient<OutputType>& MooseVariableFE< OutputType >::adGradSlnNeighbor ( ) const
inlineoverridevirtual

AD grad neighbor solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 368 of file MooseVariableFE.h.

369  {
370  return _neighbor_data->adGradSln();
371  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adGradSlnNeighborDot()

template<typename OutputType>
const ADTemplateVariableGradient<OutputType>& MooseVariableFE< OutputType >::adGradSlnNeighborDot ( ) const
inlineoverridevirtual

AD grad of time derivative neighbor solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 384 of file MooseVariableFE.h.

385  {
386  return _neighbor_data->adGradSlnDot();
387  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adNodalValue()

template<typename OutputType >
const Moose::ADType< OutputType >::type & MooseVariableFE< OutputType >::adNodalValue ( ) const
inline

Definition at line 849 of file MooseVariableFE.h.

850 {
851  return _element_data->adNodalValue();
852 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adSecondSln()

template<typename OutputType>
const ADTemplateVariableSecond<OutputType>& MooseVariableFE< OutputType >::adSecondSln ( ) const
inlineoverridevirtual

AD second solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 346 of file MooseVariableFE.h.

347  {
348  return _element_data->adSecondSln();
349  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adSecondSlnNeighbor()

template<typename OutputType>
const ADTemplateVariableSecond<OutputType>& MooseVariableFE< OutputType >::adSecondSlnNeighbor ( ) const
inlineoverridevirtual

AD second neighbor solution getter.

Implements MooseVariableField< OutputType >.

Definition at line 372 of file MooseVariableFE.h.

373  {
374  return _neighbor_data->adSecondSln();
375  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adSln()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adSln ( ) const
inlineoverridevirtual

AD.

Implements MooseVariableField< OutputType >.

Definition at line 337 of file MooseVariableFE.h.

338  {
339  return _element_data->adSln();
340  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adSlnLower()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adSlnLower ( ) const
inline

lower-d element solution

Definition at line 492 of file MooseVariableFE.h.

492 { return _lower_data->adSln(); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ adSlnNeighbor()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adSlnNeighbor ( ) const
inlineoverridevirtual

neighbor AD

Implements MooseVariableField< OutputType >.

Definition at line 364 of file MooseVariableFE.h.

365  {
366  return _neighbor_data->adSln();
367  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adUDot()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adUDot ( ) const
inlineoverridevirtual

AD time derivative getter.

Implements MooseVariableField< OutputType >.

Definition at line 350 of file MooseVariableFE.h.

351  {
352  return _element_data->adUDot();
353  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adUDotDot()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adUDotDot ( ) const
inlineoverridevirtual

AD second time derivative getter.

Implements MooseVariableField< OutputType >.

Definition at line 354 of file MooseVariableFE.h.

355  {
356  return _element_data->adUDotDot();
357  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ adUDotDotNeighbor()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adUDotDotNeighbor ( ) const
inlineoverridevirtual

AD neighbor second time derivative getter.

Implements MooseVariableField< OutputType >.

Definition at line 380 of file MooseVariableFE.h.

381  {
382  return _neighbor_data->adUDotDot();
383  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ adUDotNeighbor()

template<typename OutputType>
const ADTemplateVariableValue<OutputType>& MooseVariableFE< OutputType >::adUDotNeighbor ( ) const
inlineoverridevirtual

AD neighbor time derivative getter.

Implements MooseVariableField< OutputType >.

Definition at line 376 of file MooseVariableFE.h.

377  {
378  return _neighbor_data->adUDot();
379  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ allDofIndices()

const std::vector< dof_id_type > & MooseVariableBase::allDofIndices ( ) const
inherited

Get all global dofindices for the variable.

Definition at line 153 of file MooseVariableBase.C.

Referenced by FEProblemBase::addJacobianBlockTags(), NonlocalIntegratedBC::computeNonlocalJacobian(), NonlocalKernel::computeNonlocalJacobian(), NonlocalIntegratedBC::computeNonlocalOffDiagJacobian(), NonlocalKernel::computeNonlocalOffDiagJacobian(), FEProblemBase::prepare(), Assembly::prepareNonlocal(), Assembly::prepareVariableNonlocal(), and MooseVariableBase::totalVarDofs().

154 {
155  const auto it = _sys.subproblem()._var_dof_map.find(name());
156  if (it != _sys.subproblem()._var_dof_map.end())
157  return it->second;
158  else
159  mooseError("VariableAllDoFMap not prepared for ",
160  name(),
161  " . Check nonlocal coupling requirement for the variable.");
162 }
const std::string & name() const override
Get the variable name.
std::map< std::string, std::vector< dof_id_type > > _var_dof_map
Definition: SubProblem.h:644
SystemBase & _sys
System this variable is part of.
SubProblem & subproblem()
Definition: SystemBase.h:102
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.

◆ arrayGradPhi()

template<typename OutputType>
const MappedArrayVariablePhiGradient& MooseVariableFE< OutputType >::arrayGradPhi ( ) const
inline

Definition at line 195 of file MooseVariableFE.h.

196  {
197  return _element_data->arrayGradPhi();
198  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ arrayGradPhiFace()

template<typename OutputType>
const MappedArrayVariablePhiGradient& MooseVariableFE< OutputType >::arrayGradPhiFace ( ) const
inline

Definition at line 208 of file MooseVariableFE.h.

209  {
210  return _element_data->arrayGradPhiFace();
211  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ arrayGradPhiFaceNeighbor()

template<typename OutputType>
const MappedArrayVariablePhiGradient& MooseVariableFE< OutputType >::arrayGradPhiFaceNeighbor ( ) const
inline

Definition at line 237 of file MooseVariableFE.h.

238  {
239  return _neighbor_data->arrayGradPhiFace();
240  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ arrayGradPhiNeighbor()

template<typename OutputType>
const MappedArrayVariablePhiGradient& MooseVariableFE< OutputType >::arrayGradPhiNeighbor ( ) const
inline

Definition at line 221 of file MooseVariableFE.h.

222  {
223  return _neighbor_data->arrayGradPhi();
224  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ arrayScalingFactor()

const std::vector<Real>& MooseVariableBase::arrayScalingFactor ( ) const
inlineinherited

◆ blockIDs()

const std::set< SubdomainID > & BlockRestrictable::blockIDs ( ) const
virtualinherited

Return the block subdomain ids for this object Note, if this is not block restricted, this function returns all mesh subdomain ids.

Returns
a set of SubdomainIDs that are valid for this object

Definition at line 190 of file BlockRestrictable.C.

Referenced by FunctorMaterial::addFunctorProperty(), DiracKernelBase::addPoint(), DiracKernelBase::addPointWithValidId(), NodalPatchRecoveryAuxBase::blockRestrictElements(), MooseMesh::cacheFaceInfoVariableOwnership(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), BlockRestrictable::getBlockCoordSystem(), MaterialBase::getGenericZeroMaterialPropertyByName(), BlockRestrictable::hasBlockMaterialPropertyHelper(), SubdomainsDivision::initialize(), ElementCentroidPositions::initialize(), MooseVariableBase::MooseVariableBase(), NodalPatchRecoveryAux::NodalPatchRecoveryAux(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), ProjectedMaterialPropertyNodalPatchRecoveryAux::ProjectedMaterialPropertyNodalPatchRecoveryAux(), MaterialBase::registerPropName(), and FVPointValueConstraint::setMyElem().

191 {
192  if (_blk_ids.find(Moose::ANY_BLOCK_ID) != _blk_ids.end())
193  return _blk_mesh->meshSubdomains();
194  else
195  return _blk_ids;
196 }
const SubdomainID ANY_BLOCK_ID
Definition: MooseTypes.C:19
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)
MooseMesh * _blk_mesh
Pointer to Mesh.
const std::set< SubdomainID > & meshSubdomains() const
Returns a read-only reference to the set of subdomains currently present in the Mesh.
Definition: MooseMesh.C:2922

◆ blockRestricted()

bool BlockRestrictable::blockRestricted ( ) const
virtualinherited

◆ blocks()

const std::vector< SubdomainName > & BlockRestrictable::blocks ( ) const
inherited

Return the block names for this object.

Note, if the 'blocks' input parameter was not utilized this will return an empty vector.

Returns
vector of SubdomainNames that are valid for this object

Definition at line 184 of file BlockRestrictable.C.

Referenced by MaterialOutputAction::getParams(), SubdomainsDivision::initialize(), and SolutionIC::initialSetup().

185 {
186  return _blocks;
187 }
std::vector< SubdomainName > _blocks
Vector the block names supplied by the user via the input file.

◆ blocksMaxDimension()

unsigned int BlockRestrictable::blocksMaxDimension ( ) const
inherited

Return the largest mesh dimension of the elements in the blocks for this object.

Definition at line 360 of file BlockRestrictable.C.

361 {
362  mooseAssert(_blk_dim != libMesh::invalid_uint, "Block restriction not initialized");
363  return _blk_dim;
364 }
unsigned int _blk_dim
Largest mesh dimension of the elements in the blocks for this object.
const unsigned int invalid_uint

◆ buildOutputHideVariableList()

void OutputInterface::buildOutputHideVariableList ( std::set< std::string >  variable_names)
inherited

Builds hide lists for output objects NOT listed in the 'outputs' parameter.

Parameters
variable_namesA set of variables for which the 'outputs' parameter controls

By default this is called by the constructor and passes the block name as the list of variables. This needs to be called explicitly if the build_list flag is set to False in the constructor. The latter cases is needed by the Material object to work correctly with the automatic material output capability.

Definition at line 61 of file OutputInterface.C.

Referenced by ReporterTransferInterface::hideVariableHelper(), and OutputInterface::OutputInterface().

62 {
63  // Set of available names
64  const std::set<OutputName> & avail = _oi_output_warehouse.getOutputNames();
65 
66  // Check for 'none'; hide variables on all outputs
67  if (_oi_outputs.find("none") != _oi_outputs.end())
68  for (const auto & name : avail)
69  _oi_output_warehouse.addInterfaceHideVariables(name, variable_names);
70 
71  // Check for empty and 'all' in 'outputs' parameter; do not perform any variable restrictions in
72  // these cases
73  else if (_oi_outputs.empty() || _oi_outputs.find("all") != _oi_outputs.end())
74  return;
75 
76  // Limit the variable output to Output objects listed
77  else
78  {
79  // Create a list of outputs where the variable should be hidden
80  std::set<OutputName> hide;
81  std::set_difference(avail.begin(),
82  avail.end(),
83  _oi_outputs.begin(),
84  _oi_outputs.end(),
85  std::inserter(hide, hide.begin()));
86 
87  // If 'outputs' is specified add the object name to the list of items to hide
88  for (const auto & name : hide)
89  _oi_output_warehouse.addInterfaceHideVariables(name, variable_names);
90  }
91 }
OutputWarehouse & _oi_output_warehouse
Reference to the OutputWarehouse for populating the Output object hide lists.
std::set< OutputName > _oi_outputs
The set of Output object names listed in the &#39;outputs&#39; parameter.
const std::set< OutputName > & getOutputNames()
Get a complete set of all output object names.
void addInterfaceHideVariables(const std::string &output_name, const std::set< std::string > &variable_names)
Insert variable names for hiding via the OutoutInterface.

◆ callMooseError()

void MooseBase::callMooseError ( std::string  msg,
const bool  with_prefix 
) const
inherited

Calls moose error with the message msg.

Will prefix the message with the subapp name if one exists.

If with_prefix, then add the prefix from errorPrefix() to the error.

Definition at line 33 of file MooseBase.C.

Referenced by InputParameters::callMooseErrorHelper(), MooseBaseErrorInterface::mooseDocumentedError(), MooseBaseErrorInterface::mooseError(), MooseBaseErrorInterface::mooseErrorNonPrefixed(), and MooseBaseParameterInterface::paramError().

34 {
36  const std::string prefix = _app.isUltimateMaster() ? "" : _app.name();
37  if (with_prefix)
38  msg = errorPrefix("error") + msg;
39  moose::internal::mooseErrorRaw(msg, prefix);
40 }
bool isUltimateMaster() const
Whether or not this app is the ultimate master app.
Definition: MooseApp.h:805
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
std::string errorPrefix(const std::string &error_type) const
Definition: MooseBase.C:43
MooseApp & _app
The MOOSE application this is associated with.
Definition: MooseBase.h:84
void mooseErrorRaw(std::string msg, const std::string prefix="")
Definition: MooseError.C:51
void mooseConsole()
Send current output buffer to Console output objects.
OutputWarehouse & getOutputWarehouse()
Get the OutputWarehouse objects.
Definition: MooseApp.C:1773

◆ checkFace()

FaceArg Moose::FunctorBase< Moose::ADType< OutputType >::type >::checkFace ( const Moose::FaceArg face) const
inherited

Examines the incoming face argument.

If the face argument producer (residual object, postprocessor, etc.) did not indicate a sidedness to the face, e.g. if the face_side member of the FaceArg is nullptr, then we may "modify" the sidedness of the argument if we are only defined on one side of the face. If the face argument producer has indicated a sidedness and we are not defined on that side, then we will error

Parameters
faceThe face argument created by the face argument producer, likely a residual object
Returns
A face with possibly changed sidedness depending on whether we aren't defined on both sides of the face

Definition at line 723 of file MooseFunctor.h.

724 {
725  const Elem * const elem = face.face_side;
726  const FaceInfo * const fi = face.fi;
727  mooseAssert(fi, "face info should be non-null");
728  auto ret_face = face;
729  bool check_elem_def = false;
730  bool check_neighbor_def = false;
731  if (!elem)
732  {
733  if (!hasFaceSide(*fi, true))
734  {
735  ret_face.face_side = fi->neighborPtr();
736  check_neighbor_def = true;
737  }
738  else if (!hasFaceSide(*fi, false))
739  {
740  ret_face.face_side = fi->elemPtr();
741  check_elem_def = true;
742  }
743  }
744  else if (elem == fi->elemPtr())
745  check_elem_def = true;
746  else
747  {
748  mooseAssert(elem == fi->neighborPtr(), "This has to match something");
749  check_neighbor_def = true;
750  }
751 
752  if (check_elem_def && !hasFaceSide(*fi, true))
753  {
754  std::string additional_message = "It is not defined on the neighbor side either.";
755  if (hasFaceSide(*fi, false))
756  additional_message = "It is however defined on the neighbor side.";
757  additional_message += " Face centroid: " + Moose::stringify(fi->faceCentroid());
759  " is not defined on the element side of the face information, but a face argument "
760  "producer "
761  "(e.g. residual object, postprocessor, etc.) has requested evaluation there.\n",
762  additional_message);
763  }
764  if (check_neighbor_def && !hasFaceSide(*fi, false))
765  {
766  std::string additional_message = "It is not defined on the element side either.";
767  if (hasFaceSide(*fi, true))
768  additional_message = "It is however defined on the element side.";
769  additional_message += " Face centroid: " + Moose::stringify(fi->faceCentroid());
770  mooseError(
772  " is not defined on the neighbor side of the face information, but a face argument "
773  "producer (e.g. residual object, postprocessor, etc.) has requested evaluation there.\n",
774  additional_message);
775  }
776 
777  return ret_face;
778 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const Point & faceCentroid() const
Returns the coordinates of the face centroid.
Definition: FaceInfo.h:70
This data structure is used to store geometric and variable related metadata about each cell face in ...
Definition: FaceInfo.h:35
const Elem * neighborPtr() const
Definition: FaceInfo.h:83
MooseFunctorName _functor_name
name of the functor
Definition: MooseFunctor.h:559
const FaceInfo * fi
a face information object which defines our location in space
const Elem * face_side
A member that can be used to indicate whether there is a sidedness to this face.
std::string stringify(const T &t)
conversion to string
Definition: Conversion.h:62
const Elem * elemPtr() const
Definition: FaceInfo.h:81
virtual bool hasFaceSide(const FaceInfo &fi, const bool fi_elem_side) const override
Definition: MooseFunctor.h:966

◆ checkVariable()

void BlockRestrictable::checkVariable ( const MooseVariableFieldBase variable) const
virtualinherited

Helper for checking that the ids for this object are in agreement with the variables on the supplied variable.

Parameters
variableThe variable to check against.

Reimplemented in DomainUserObject.

Definition at line 333 of file BlockRestrictable.C.

Referenced by DomainUserObject::checkVariable().

334 {
335  // a variable defined on all internal sides does not need this check because
336  // it can be coupled with other variables in DG kernels
337  if (variable.activeSubdomains().count(Moose::INTERNAL_SIDE_LOWERD_ID) > 0)
338  return;
339 
340  if (!isBlockSubset(variable.activeSubdomains()))
341  {
342  std::string var_ids = Moose::stringify(variable.activeSubdomains(), ", ");
343  std::string obj_ids = Moose::stringify(blockRestricted() ? _blk_ids : meshBlockIDs(), ", ");
344  mooseError("The 'block' parameter of the object '",
345  _blk_name,
346  "' must be a subset of the 'block' parameter of the variable '",
347  variable.name(),
348  "':\n Object '",
349  _blk_name,
350  "': ",
351  obj_ids,
352  "\n Variable '",
353  variable.name(),
354  "': ",
355  var_ids);
356  }
357 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const std::string & name() const override
Get the variable name.
virtual bool blockRestricted() const
Returns true if this object has been restricted to a block.
bool isBlockSubset(const std::set< SubdomainID > &ids) const
Test if the class block ids are a subset of the supplied objects.
std::string stringify(const T &t)
conversion to string
Definition: Conversion.h:62
const std::set< SubdomainID > & activeSubdomains() const
The subdomains the variable is active on.
const SubdomainID INTERNAL_SIDE_LOWERD_ID
Definition: MooseTypes.C:20
const std::set< SubdomainID > & meshBlockIDs() const
Return all of the SubdomainIDs for the mesh.
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)
const std::string & _blk_name
Name of the object.

◆ clearAllDofIndices()

template<typename OutputType >
void MooseVariableFE< OutputType >::clearAllDofIndices ( )
finalvirtual

Reimplemented from MooseVariableBase.

Definition at line 852 of file MooseVariableFE.C.

853 {
854  _element_data->clearDofIndices();
855  _neighbor_data->clearDofIndices();
856  _lower_data->clearDofIndices();
857 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ clearDofIndices()

template<typename OutputType >
void MooseVariableFE< OutputType >::clearDofIndices ( )
overridevirtual

Clear out the dof indices.

We do this in case this variable is not going to be prepared at all...

Implements MooseVariableFieldBase.

Definition at line 85 of file MooseVariableFE.C.

86 {
87  _element_data->clearDofIndices();
88 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ componentDofIndices()

std::vector< dof_id_type > MooseVariableBase::componentDofIndices ( const std::vector< dof_id_type > &  dof_indices,
unsigned int  component 
) const
inherited

Obtain DoF indices of a component with the indices of the 0th component.

Definition at line 171 of file MooseVariableBase.C.

Referenced by Assembly::addJacobianBlock(), Assembly::cacheJacobianBlock(), and Assembly::cacheJacobianBlockNonzero().

173 {
174  std::vector<dof_id_type> new_dof_indices(dof_indices);
175  if (component != 0)
176  {
177  if (isNodal())
178  for (auto & id : new_dof_indices)
179  id += component;
180  else
181  {
182  unsigned int n = dof_indices.size();
183  for (auto & id : new_dof_indices)
184  id += component * n;
185  }
186  }
187  return new_dof_indices;
188 }
virtual bool isNodal() const
Is this variable nodal.

◆ componentName()

std::string MooseVariableFieldBase::componentName ( const unsigned int  comp) const
inherited

Get the variable name of a component in libMesh.

Definition at line 27 of file MooseVariableFieldBase.C.

28 {
29  if (comp >= _count)
30  mooseError("Component index must be less than the number of components of variable ",
31  _var_name);
32  if (isArray())
33  return this->_subproblem.arrayVariableComponent(_var_name, comp);
34  else
35  return _var_name;
36 }
std::string _var_name
Variable name.
virtual bool isArray() const =0
SubProblem & _subproblem
Problem this variable is part of.
const unsigned int _count
Number of variables in the array.
static std::string arrayVariableComponent(const std::string &var_name, unsigned int i)
Returns the variable name of a component of an array variable.
Definition: SubProblem.h:271
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.

◆ computeElemValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeElemValues ( )
overridevirtual

Actually compute variable values from the solution vectors.

Implements MooseVariableFieldBase.

Reimplemented in MooseVariableConstMonomial.

Definition at line 397 of file MooseVariableFE.C.

398 {
399  _element_data->setGeometry(Moose::Volume);
400  _element_data->computeValues();
401 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computeElemValuesFace()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeElemValuesFace ( )
overridevirtual

Compute values at facial quadrature points.

Implements MooseVariableFieldBase.

Reimplemented in MooseVariableConstMonomial.

Definition at line 405 of file MooseVariableFE.C.

406 {
407  _element_data->setGeometry(Moose::Face);
408  _element_data->computeValues();
409 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computeFaceValues()

virtual void MooseVariableFieldBase::computeFaceValues ( const FaceInfo )
inlinevirtualinherited

◆ computeIncrementAtNode()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeIncrementAtNode ( const NumericVector< Number > &  increment_vec)

Compute and store incremental change at the current node based on increment_vec.

Definition at line 444 of file MooseVariableFE.C.

445 {
446  _element_data->computeIncrementAtNode(increment_vec);
447 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computeIncrementAtQps()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeIncrementAtQps ( const NumericVector< Number > &  increment_vec)

Compute and store incremental change in solution at QPs based on increment_vec.

Definition at line 437 of file MooseVariableFE.C.

438 {
439  _element_data->computeIncrementAtQps(increment_vec);
440 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computeLowerDValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeLowerDValues ( )
overridevirtual

compute values at quadrature points on the lower dimensional element

Implements MooseVariableFieldBase.

Definition at line 429 of file MooseVariableFE.C.

430 {
431  _lower_data->setGeometry(Moose::Volume);
432  _lower_data->computeValues();
433 }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ computeNeighborValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeNeighborValues ( )
overridevirtual

Compute values at quadrature points for the neighbor.

Implements MooseVariableFieldBase.

Reimplemented in MooseVariableConstMonomial.

Definition at line 421 of file MooseVariableFE.C.

422 {
423  _neighbor_data->setGeometry(Moose::Volume);
424  _neighbor_data->computeValues();
425 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ computeNeighborValuesFace()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeNeighborValuesFace ( )
overridevirtual

Compute values at facial quadrature points for the neighbor.

Implements MooseVariableFieldBase.

Reimplemented in MooseVariableConstMonomial.

Definition at line 413 of file MooseVariableFE.C.

414 {
415  _neighbor_data->setGeometry(Moose::Face);
416  _neighbor_data->computeValues();
417 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ computeNodalNeighborValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeNodalNeighborValues ( )
overridevirtual

Compute nodal values of this variable in the neighbor.

Implements MooseVariableFieldBase.

Definition at line 672 of file MooseVariableFE.C.

673 {
674  _neighbor_data->computeNodalValues();
675 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ computeNodalValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::computeNodalValues ( )
overridevirtual

Compute nodal values of this variable.

Implements MooseVariableFieldBase.

Definition at line 665 of file MooseVariableFE.C.

666 {
667  _element_data->computeNodalValues();
668 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computeSolution()

template<typename OutputType >
template<typename Shapes , typename Solution , typename GradShapes , typename GradSolution >
void MooseVariableFE< OutputType >::computeSolution ( const Elem *  elem,
unsigned int  n_qp,
const StateArg state,
const Shapes &  phi,
Solution &  local_soln,
const GradShapes &  grad_phi,
GradSolution &  grad_local_soln,
Solution &  dot_local_soln,
GradSolution &  grad_dot_local_soln 
) const
private

Compute the solution, gradient, time derivative, and gradient of the time derivative with provided shape functions.

Definition at line 914 of file MooseVariableFE.C.

923 {
924  std::vector<dof_id_type> dof_indices;
925  this->_dof_map.dof_indices(elem, dof_indices, _var_num);
926  std::vector<ADReal> dof_values;
927  std::vector<ADReal> dof_values_dot;
928  dof_values.reserve(dof_indices.size());
929 
930  const bool computing_dot = _time_integrator && _time_integrator->dt();
931  if (computing_dot)
932  dof_values_dot.reserve(dof_indices.size());
933 
934  const bool do_derivatives = Moose::doDerivatives(_subproblem, _sys);
935  const auto & global_soln = getSolution(state);
936  for (const auto dof_index : dof_indices)
937  {
938  dof_values.push_back(ADReal(global_soln(dof_index)));
939  if (do_derivatives && state.state == 0)
940  Moose::derivInsert(dof_values.back().derivatives(), dof_index, 1.);
941  if (computing_dot)
942  {
944  {
945  dof_values_dot.push_back(dof_values.back());
947  dof_values_dot.back(), dof_index, _ad_real_dummy);
948  }
949  else
950  dof_values_dot.push_back((*this->_sys.solutionUDot())(dof_index));
951  }
952  }
953 
954  local_soln.resize(n_qp);
955  grad_local_soln.resize(n_qp);
956  if (computing_dot)
957  {
958  dot_local_soln.resize(n_qp);
959  grad_dot_local_soln.resize(n_qp);
960  }
961 
962  for (const auto qp : make_range(n_qp))
963  {
964  local_soln[qp] = 0;
965  grad_local_soln[qp] = 0;
966  if (computing_dot)
967  {
968  dot_local_soln[qp] = 0;
969  grad_dot_local_soln[qp] = GradientType{};
970  }
971  for (const auto i : index_range(dof_indices))
972  {
973  local_soln[qp] += dof_values[i] * phi[i][qp];
974  grad_local_soln[qp] += dof_values[i] * grad_phi[i][qp];
975  if (computing_dot)
976  {
977  dot_local_soln[qp] += dof_values_dot[i] * phi[i][qp];
978  grad_dot_local_soln[qp] += dof_values_dot[i] * grad_phi[i][qp];
979  }
980  }
981  }
982 }
ADReal _ad_real_dummy
A dummy ADReal variable.
const DofMap & _dof_map
DOF map.
typename FunctorReturnType< Moose::ADType< OutputType >::type, FunctorEvaluationKind::Gradient >::type GradientType
This rigmarole makes it so that a user can create functors that return containers (std::vector...
Definition: MooseFunctor.h:149
bool doDerivatives(const SubProblem &subproblem, const SystemBase &sys)
Definition: ADUtils.C:79
const NumericVector< Number > & getSolution(const Moose::StateArg &state) const
Get the solution corresponding to the provided state.
SubProblem & _subproblem
Problem this variable is part of.
const Real & dt() const
Returns the time step size.
SystemBase & _sys
System this variable is part of.
virtual NumericVector< Number > * solutionUDot()
Definition: SystemBase.h:239
const FieldVariablePhiValue & phi() const override
Return the variable&#39;s elemental shape functions.
Moose::VarKindType _var_kind
Variable type (see MooseTypes.h)
DualReal ADReal
Definition: ADRealForward.h:14
virtual void computeADTimeDerivatives(DualReal &ad_u_dot, const dof_id_type &dof, DualReal &ad_u_dot_dot) const =0
method for computing local automatic differentiation time derivatives
unsigned int _var_num
variable number (from libMesh)
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives
IntRange< T > make_range(T beg, T end)
void derivInsert(NumberArray< N, Real > &derivs, dof_id_type index, Real value)
auto index_range(const T &sizable)

◆ computingCurl()

template<typename OutputType >
bool MooseVariableFE< OutputType >::computingCurl ( ) const
finaloverridevirtual

Whether or not this variable is computing the curl.

Implements MooseVariableField< OutputType >.

Definition at line 813 of file MooseVariableFE.C.

814 {
815  return _element_data->computingCurl();
816 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computingDiv()

template<typename OutputType >
bool MooseVariableFE< OutputType >::computingDiv ( ) const
finaloverridevirtual

Whether or not this variable is computing the divergence.

Implements MooseVariableField< OutputType >.

Definition at line 820 of file MooseVariableFE.C.

821 {
822  return _element_data->computingDiv();
823 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ computingSecond()

template<typename OutputType>
bool MooseVariableFE< OutputType >::computingSecond ( ) const
inlinefinaloverridevirtual

Whether or not this variable is computing any second derivatives.

Implements MooseVariableField< OutputType >.

Definition at line 135 of file MooseVariableFE.h.

135 { return usesSecondPhi(); }
bool usesSecondPhi() const
Whether or not this variable is computing any second derivatives.

◆ connectControllableParams()

void MooseBaseParameterInterface::connectControllableParams ( const std::string &  parameter,
const std::string &  object_type,
const std::string &  object_name,
const std::string &  object_parameter 
) const
inherited

Connect controllable parameter of this action with the controllable parameters of the objects added by this action.

Parameters
parameterName of the controllable parameter of this action
object_typeType of the object added by this action.
object_nameName of the object added by this action.
object_parameterName of the parameter of the object.

Definition at line 33 of file MooseBaseParameterInterface.C.

37 {
38  MooseObjectParameterName primary_name(uniqueName(), parameter);
39  const auto base_type = _factory.getValidParams(object_type).get<std::string>("_moose_base");
40  MooseObjectParameterName secondary_name(base_type, object_name, object_parameter);
42  primary_name, secondary_name);
43 
44  const auto & tags = _pars.get<std::vector<std::string>>("control_tags");
45  for (const auto & tag : tags)
46  {
47  if (!tag.empty())
48  {
49  MooseObjectParameterName tagged_name(tag, _moose_base.name(), parameter);
51  tagged_name, secondary_name);
52  }
53  }
54 }
void addControllableParameterConnection(const MooseObjectParameterName &primary, const MooseObjectParameterName &secondary, bool error_on_empty=true)
Method for linking control parameters of different names.
const MooseBase & _moose_base
The MooseBase object that inherits this class.
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
InputParameterWarehouse & getInputParameterWarehouse()
Get the InputParameterWarehouse for MooseObjects.
Definition: MooseApp.C:2225
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
Definition: Factory.C:67
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
MooseApp & getMooseApp() const
Get the MooseApp this class is associated with.
Definition: MooseBase.h:45
Factory & _factory
The Factory associated with the MooseApp.
MooseObjectName uniqueName() const
The unique name for accessing input parameters of this object in the InputParameterWarehouse.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
A class for storing an input parameter name.

◆ count()

unsigned int MooseVariableBase::count ( ) const
inlineinherited

Get the number of components Note: For standard and vector variables, the number is one.

Definition at line 108 of file MooseVariableBase.h.

Referenced by Assembly::addJacobianBlock(), EigenProblem::adjustEigenVector(), ArrayBodyForce::ArrayBodyForce(), ArrayConstantIC::ArrayConstantIC(), ArrayDGLowerDKernel::ArrayDGLowerDKernel(), ArrayFunctionIC::ArrayFunctionIC(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), ArrayLowerDIntegratedBC::ArrayLowerDIntegratedBC(), ArrayParsedAux::ArrayParsedAux(), BuildArrayVariableAux::BuildArrayVariableAux(), Assembly::cacheJacobianBlock(), Assembly::cacheJacobianBlockNonzero(), TagAuxBase< AuxKernel >::checkCoupledVariable(), BuildArrayVariableAux::compute(), ArrayNodalBC::computeJacobian(), ArrayHFEMDirichletBC::computeLowerDQpOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDQpOffDiagJacobian(), ArrayDGLowerDKernel::computeLowerDQpOffDiagJacobian(), ArrayNodalBC::computeOffDiagJacobian(), ArrayTimeDerivative::computeQpJacobian(), ArrayReaction::computeQpJacobian(), ArrayDiffusion::computeQpJacobian(), ArrayCoupledTimeDerivative::computeQpJacobian(), EigenArrayDirichletBC::computeQpJacobian(), ArrayIntegratedBC::computeQpJacobian(), ArrayKernel::computeQpJacobian(), ArrayNodalBC::computeQpJacobian(), ArrayCoupledTimeDerivative::computeQpOffDiagJacobian(), EigenArrayDirichletBC::computeQpOffDiagJacobian(), ArrayIntegratedBC::computeQpOffDiagJacobian(), ArrayKernel::computeQpOffDiagJacobian(), ArrayNodalBC::computeQpOffDiagJacobian(), ArrayDGKernel::computeQpOffDiagJacobian(), Kernel::computeQpOffDiagJacobianArray(), ArrayIntegratedBC::computeQpOffDiagJacobianScalar(), ArrayKernel::computeQpOffDiagJacobianScalar(), ArrayTimeDerivative::computeQpResidual(), ArrayReaction::computeQpResidual(), ArrayCoupledTimeDerivative::computeQpResidual(), FunctionArrayAux::computeValue(), ArrayParsedAux::computeValue(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), FunctionArrayAux::FunctionArrayAux(), ArrayFunctionIC::gradient(), AdvancedOutput::initAvailableLists(), MultiAppVariableValueSamplePostprocessorTransfer::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), ArrayDiffusion::initQpResidual(), AdvancedOutput::initShowHideLists(), Assembly::prepareJacobianBlock(), Assembly::prepareLowerD(), Assembly::prepareNeighbor(), Assembly::prepareNonlocal(), Assembly::prepareVariable(), Assembly::prepareVariableNonlocal(), MultiAppDofCopyTransfer::transfer(), MultiAppDofCopyTransfer::transferDofObject(), and ArrayFunctionIC::value().

108 { return _count; }
const unsigned int _count
Number of variables in the array.

◆ curlPhi()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiCurl & MooseVariableFE< OutputType >::curlPhi ( ) const
finaloverridevirtual

Curl of the shape functions.

Implements MooseVariableField< OutputType >.

Definition at line 722 of file MooseVariableFE.C.

723 {
724  return _element_data->curlPhi();
725 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ curlPhiFace()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiCurl & MooseVariableFE< OutputType >::curlPhiFace ( ) const

Definition at line 743 of file MooseVariableFE.C.

744 {
745  return _element_data->curlPhiFace();
746 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ curlPhiFaceNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiCurl & MooseVariableFE< OutputType >::curlPhiFaceNeighbor ( ) const

Definition at line 785 of file MooseVariableFE.C.

786 {
787  return _neighbor_data->curlPhiFace();
788 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ curlPhiNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiCurl & MooseVariableFE< OutputType >::curlPhiNeighbor ( ) const

Definition at line 764 of file MooseVariableFE.C.

765 {
766  return _neighbor_data->curlPhi();
767 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ curlSln()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSln ( ) const
inline

element curls

Definition at line 324 of file MooseVariableFE.h.

324 { return _element_data->curlSln(Moose::Current); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ curlSlnNeighbor()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSlnNeighbor ( ) const
inline

neighbor solution curls

Definition at line 456 of file MooseVariableFE.h.

457  {
458  return _neighbor_data->curlSln(Moose::Current);
459  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ curlSlnOld()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSlnOld ( ) const
inline

Definition at line 325 of file MooseVariableFE.h.

325 { return _element_data->curlSln(Moose::Old); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ curlSlnOlder()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSlnOlder ( ) const
inline

Definition at line 326 of file MooseVariableFE.h.

326 { return _element_data->curlSln(Moose::Older); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ curlSlnOlderNeighbor()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSlnOlderNeighbor ( ) const
inline

Definition at line 464 of file MooseVariableFE.h.

465  {
466  return _neighbor_data->curlSln(Moose::Older);
467  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ curlSlnOldNeighbor()

template<typename OutputType>
const FieldVariableCurl& MooseVariableFE< OutputType >::curlSlnOldNeighbor ( ) const
inline

Definition at line 460 of file MooseVariableFE.h.

461  {
462  return _neighbor_data->curlSln(Moose::Old);
463  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ currentElem()

template<typename OutputType>
const Elem* const& MooseVariableFE< OutputType >::currentElem ( ) const
inlineoverridevirtual

Current element this variable is evaluated at.

Implements MooseVariableFieldBase.

Definition at line 161 of file MooseVariableFE.h.

161 { return _element_data->currentElem(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ currentSide()

template<typename OutputType>
const unsigned int& MooseVariableFE< OutputType >::currentSide ( ) const
inline

Current side this variable is being evaluated on.

Definition at line 166 of file MooseVariableFE.h.

166 { return _element_data->currentSide(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ customSetup() [1/2]

virtual void SetupInterface::customSetup ( const ExecFlagType )
inlinevirtualinherited

Gets called in FEProblemBase::execute() for execute flags other than initial, timestep_begin, nonlinear, linear and subdomain.

Reimplemented in Function.

Definition at line 61 of file SetupInterface.h.

61 {}

◆ customSetup() [2/2]

void Moose::FunctorBase< Moose::ADType< OutputType >::type >::customSetup ( const ExecFlagType exec_type)
overridevirtualinherited

Implements Moose::FunctorAbstract.

Definition at line 832 of file MooseFunctor.h.

833 {
834  if (_clearance_schedule.count(exec_type))
835  clearCacheData();
836 }
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ divPhi()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiDivergence & MooseVariableFE< OutputType >::divPhi ( ) const
finaloverridevirtual

Divergence of the shape functions.

Implements MooseVariableField< OutputType >.

Definition at line 729 of file MooseVariableFE.C.

730 {
731  return _element_data->divPhi();
732 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ divPhiFace()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiDivergence & MooseVariableFE< OutputType >::divPhiFace ( ) const

Definition at line 750 of file MooseVariableFE.C.

751 {
752  return _element_data->divPhiFace();
753 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ divPhiFaceNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiDivergence & MooseVariableFE< OutputType >::divPhiFaceNeighbor ( ) const

Definition at line 792 of file MooseVariableFE.C.

793 {
794  return _neighbor_data->divPhiFace();
795 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ divPhiNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiDivergence & MooseVariableFE< OutputType >::divPhiNeighbor ( ) const

Definition at line 771 of file MooseVariableFE.C.

772 {
773  return _neighbor_data->divPhi();
774 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ divSln()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSln ( ) const
inline

element divergence

Definition at line 329 of file MooseVariableFE.h.

329 { return _element_data->divSln(Moose::Current); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ divSlnNeighbor()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSlnNeighbor ( ) const
inline

neighbor solution divergence

Definition at line 470 of file MooseVariableFE.h.

471  {
472  return _neighbor_data->divSln(Moose::Current);
473  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ divSlnOld()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSlnOld ( ) const
inline

Definition at line 330 of file MooseVariableFE.h.

330 { return _element_data->divSln(Moose::Old); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ divSlnOlder()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSlnOlder ( ) const
inline

Definition at line 331 of file MooseVariableFE.h.

332  {
333  return _element_data->divSln(Moose::Older);
334  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ divSlnOlderNeighbor()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSlnOlderNeighbor ( ) const
inline

Definition at line 478 of file MooseVariableFE.h.

479  {
480  return _neighbor_data->divSln(Moose::Older);
481  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ divSlnOldNeighbor()

template<typename OutputType>
const FieldVariableDivergence& MooseVariableFE< OutputType >::divSlnOldNeighbor ( ) const
inline

Definition at line 474 of file MooseVariableFE.h.

475  {
476  return _neighbor_data->divSln(Moose::Old);
477  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ doDerivatives()

bool MooseVariableBase::doDerivatives ( ) const
protectedinherited
Returns
whether we should insert derivatives

◆ dofIndices()

template<typename OutputType>
const std::vector<dof_id_type>& MooseVariableFE< OutputType >::dofIndices ( ) const
inlinefinalvirtual

◆ dofIndicesLower()

template<typename OutputType>
const std::vector<dof_id_type>& MooseVariableFE< OutputType >::dofIndicesLower ( ) const
inlinefinalvirtual

Get dof indices for the current lower dimensional element (this is meaningful when performing mortar FEM)

Returns
the lower dimensional element's dofs

Implements MooseVariableFieldBase.

Definition at line 181 of file MooseVariableFE.h.

Referenced by ADMortarConstraint::computeJacobian(), MortarConstraint::computeJacobian(), and MortarScalarBase::computeOffDiagJacobianScalar().

182  {
183  return _lower_data->dofIndices();
184  }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ dofIndicesNeighbor()

template<typename OutputType>
const std::vector<dof_id_type>& MooseVariableFE< OutputType >::dofIndicesNeighbor ( ) const
inlinefinalvirtual

Get neighbor DOF indices for currently selected element.

Returns
the neighbor degree of freedom indices

Implements MooseVariableFieldBase.

Definition at line 177 of file MooseVariableFE.h.

Referenced by ADDGKernel::computeElemNeighJacobian(), NodalConstraint::computeJacobian(), ADDGKernel::computeOffDiagElemNeighJacobian(), and NodalConstraint::computeResidual().

178  {
179  return _neighbor_data->dofIndices();
180  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofMap()

const DofMap& MooseVariableBase::dofMap ( ) const
inlineinherited

The DofMap associated with the system this variable is in.

Definition at line 130 of file MooseVariableBase.h.

Referenced by AuxScalarKernel::compute(), and ScalarVariable::execute().

130 { return _dof_map; }
const DofMap & _dof_map
DOF map.

◆ dofValue()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValue ( ) const

Definition at line 242 of file MooseVariableFE.C.

243 {
244  mooseDeprecated("Use dofValues instead of dofValue");
245  return dofValues();
246 }
void mooseDeprecated(Args &&... args) const
const DoFValue & dofValues() const override
dof values getters

◆ dofValues()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValues ( ) const
overridevirtual

dof values getters

Implements MooseVariableField< OutputType >.

Definition at line 250 of file MooseVariableFE.C.

Referenced by InternalSideIndicator::finalize().

251 {
252  return _element_data->dofValues();
253 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDot()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDot ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 306 of file MooseVariableFE.C.

307 {
308  return _element_data->dofValuesDot();
309 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDotDot()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotDot ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 313 of file MooseVariableFE.C.

314 {
315  return _element_data->dofValuesDotDot();
316 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDotDotNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotDotNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 341 of file MooseVariableFE.C.

342 {
343  return _neighbor_data->dofValuesDotDot();
344 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesDotDotNeighborResidual()

template<typename OutputType>
const DoFValue& MooseVariableFE< OutputType >::dofValuesDotDotNeighborResidual ( ) const

◆ dofValuesDotDotOld()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotDotOld ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 327 of file MooseVariableFE.C.

328 {
329  return _element_data->dofValuesDotDotOld();
330 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDotDotOldNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotDotOldNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 355 of file MooseVariableFE.C.

356 {
357  return _neighbor_data->dofValuesDotDotOld();
358 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesDotNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 334 of file MooseVariableFE.C.

335 {
336  return _neighbor_data->dofValuesDot();
337 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesDotNeighborResidual()

template<typename OutputType>
const DoFValue& MooseVariableFE< OutputType >::dofValuesDotNeighborResidual ( ) const

◆ dofValuesDotOld()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotOld ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 320 of file MooseVariableFE.C.

321 {
322  return _element_data->dofValuesDotOld();
323 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDotOldNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesDotOldNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 348 of file MooseVariableFE.C.

349 {
350  return _neighbor_data->dofValuesDotOld();
351 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesDuDotDotDu()

template<typename OutputType >
const MooseArray< Number > & MooseVariableFE< OutputType >::dofValuesDuDotDotDu ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 369 of file MooseVariableFE.C.

370 {
371  return _element_data->dofValuesDuDotDotDu();
372 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDuDotDotDuNeighbor()

template<typename OutputType >
const MooseArray< Number > & MooseVariableFE< OutputType >::dofValuesDuDotDotDuNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 383 of file MooseVariableFE.C.

384 {
385  return _neighbor_data->dofValuesDuDotDotDu();
386 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesDuDotDu()

template<typename OutputType >
const MooseArray< Number > & MooseVariableFE< OutputType >::dofValuesDuDotDu ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 362 of file MooseVariableFE.C.

363 {
364  return _element_data->dofValuesDuDotDu();
365 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesDuDotDuNeighbor()

template<typename OutputType >
const MooseArray< Number > & MooseVariableFE< OutputType >::dofValuesDuDotDuNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 376 of file MooseVariableFE.C.

377 {
378  return _neighbor_data->dofValuesDuDotDu();
379 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 278 of file MooseVariableFE.C.

279 {
280  return _neighbor_data->dofValues();
281 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesOld()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesOld ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 257 of file MooseVariableFE.C.

258 {
259  return _element_data->dofValuesOld();
260 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesOlder()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesOlder ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 264 of file MooseVariableFE.C.

265 {
266  return _element_data->dofValuesOlder();
267 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesOlderNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesOlderNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 292 of file MooseVariableFE.C.

293 {
294  return _neighbor_data->dofValuesOlder();
295 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesOldNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesOldNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 285 of file MooseVariableFE.C.

286 {
287  return _neighbor_data->dofValuesOld();
288 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dofValuesPreviousNL()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesPreviousNL ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 271 of file MooseVariableFE.C.

272 {
273  return _element_data->dofValuesPreviousNL();
274 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ dofValuesPreviousNLNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::dofValuesPreviousNLNeighbor ( ) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 299 of file MooseVariableFE.C.

300 {
301  return _neighbor_data->dofValuesPreviousNL();
302 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ dot() [1/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const ElemArg elem,
const StateArg state 
) const
inherited

Same as their evaluateDot overloads with the same arguments but allows for caching implementation.

These are the methods a user will call in their code

Definition at line 882 of file MooseFunctor.h.

883 {
884  return evaluateDot(elem, state);
885 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383

◆ dot() [2/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const FaceArg face,
const StateArg state 
) const
inherited

Definition at line 889 of file MooseFunctor.h.

890 {
891  return evaluateDot(checkFace(face), state);
892 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383
Moose::FaceArg checkFace(const Moose::FaceArg &face) const
Examines the incoming face argument.
Definition: MooseFunctor.h:723

◆ dot() [3/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const ElemQpArg qp,
const StateArg state 
) const
inherited

Definition at line 896 of file MooseFunctor.h.

897 {
898  return evaluateDot(elem_qp, state);
899 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383

◆ dot() [4/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const ElemSideQpArg qp,
const StateArg state 
) const
inherited

Definition at line 903 of file MooseFunctor.h.

904 {
905  return evaluateDot(elem_side_qp, state);
906 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383

◆ dot() [5/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const ElemPointArg elem_point,
const StateArg state 
) const
inherited

Definition at line 910 of file MooseFunctor.h.

911 {
912  return evaluateDot(elem_point, state);
913 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383

◆ dot() [6/6]

FunctorBase< Moose::ADType< OutputType >::type >::DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::dot ( const NodeArg node,
const StateArg state 
) const
inherited

Definition at line 917 of file MooseFunctor.h.

918 {
919  return evaluateDot(node, state);
920 }
virtual DotType evaluateDot(const ElemArg &, const StateArg &) const
Evaluate the functor time derivative with a given element.
Definition: MooseFunctor.h:383

◆ duDotDotDu()

template<typename OutputType>
const VariableValue& MooseVariableFE< OutputType >::duDotDotDu ( ) const
inline

Definition at line 395 of file MooseVariableFE.h.

395 { return _element_data->duDotDotDu(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ duDotDotDuNeighbor()

template<typename OutputType>
const VariableValue& MooseVariableFE< OutputType >::duDotDotDuNeighbor ( ) const
inline

Definition at line 489 of file MooseVariableFE.h.

489 { return _neighbor_data->duDotDotDu(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ duDotDu()

template<typename OutputType>
const VariableValue& MooseVariableFE< OutputType >::duDotDu ( ) const
inline

Definition at line 394 of file MooseVariableFE.h.

394 { return _element_data->duDotDu(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ duDotDuNeighbor()

template<typename OutputType>
const VariableValue& MooseVariableFE< OutputType >::duDotDuNeighbor ( ) const
inline

Definition at line 488 of file MooseVariableFE.h.

488 { return _neighbor_data->duDotDu(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ eigen() [1/2]

bool MooseVariableBase::eigen ( ) const
inlineinherited

Whether or not this variable operates on an eigen kernel.

Definition at line 157 of file MooseVariableBase.h.

Referenced by EigenProblem::adjustEigenVector().

157 { return _is_eigen; }
bool _is_eigen
Whether or not this variable operates on eigen kernels.

◆ eigen() [2/2]

void MooseVariableBase::eigen ( bool  eigen)
inlineinherited

Mark this variable as an eigen var or non-eigen var.

Definition at line 162 of file MooseVariableBase.h.

Referenced by MooseVariableBase::eigen().

162 { _is_eigen = eigen; }
bool eigen() const
Whether or not this variable operates on an eigen kernel.
bool _is_eigen
Whether or not this variable operates on eigen kernels.

◆ enabled()

virtual bool MooseObject::enabled ( ) const
inlinevirtualinherited

Return the enabled status of the object.

Reimplemented in EigenKernel.

Definition at line 50 of file MooseObject.h.

Referenced by EigenKernel::enabled().

50 { return _enabled; }
const bool & _enabled
Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.
Definition: MooseObject.h:61

◆ errorPrefix()

std::string MooseBase::errorPrefix ( const std::string &  error_type) const
inherited
Returns
A prefix to be used in errors that contains the input file location associated with this object (if any) and the name and type of the object.

Definition at line 43 of file MooseBase.C.

Referenced by MooseBase::callMooseError(), MooseBaseErrorInterface::mooseWarning(), and MooseBaseParameterInterface::paramErrorMsg().

44 {
45  std::stringstream oss;
46  if (const auto node = _params.getHitNode())
47  if (!node->isRoot())
48  oss << node->fileLocation() << ":\n";
49  oss << "The following " << error_type << " occurred in the ";
50  if (const auto base_ptr = _params.getBase())
51  oss << *base_ptr;
52  else
53  oss << "object";
54  oss << " '" << name() << "' of type " << type() << ".\n\n";
55  return oss.str();
56 }
const hit::Node * getHitNode(const std::string &param) const
std::optional< std::string > getBase() const
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
const InputParameters & _params
The object&#39;s parameteres.
Definition: MooseBase.h:94
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51

◆ evaluate() [1/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const ElemQpArg qp,
const StateArg state 
) const
finaloverrideprotectedvirtual
Parameters
qpSee the ElemQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor evaluated at the requested state and space

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1036 of file MooseVariableFE.C.

1037 {
1038  evaluateOnElement(elem_qp, state, /*query_cache=*/true);
1039  const auto qp = elem_qp.qp;
1040  mooseAssert(qp < _current_elem_qp_functor_sln.size(),
1041  "The requested " << qp << " is outside our solution size");
1042  return _current_elem_qp_functor_sln[qp];
1043 }
std::vector< ValueType > _current_elem_qp_functor_sln
The values of the solution for the _current_elem_qp_functor_elem.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.

◆ evaluate() [2/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const ElemSideQpArg side_qp,
const StateArg state 
) const
finaloverrideprotectedvirtual
Parameters
side_qpSee the ElemSideQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor evaluated at the requested state and space

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1241 of file MooseVariableFE.C.

1243 {
1244  evaluateOnElementSide(elem_side_qp, state, true);
1245  const auto qp = elem_side_qp.qp;
1246  mooseAssert(qp < _current_elem_side_qp_functor_sln.size(),
1247  "The requested " << qp << " is outside our solution size");
1249 }
void evaluateOnElementSide(const ElemSideQpArg &elem_side_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_side_qp argument.
std::vector< ValueType > _current_elem_side_qp_functor_sln
The values of the solution for the _current_elem_side_qp_functor_elem_side.

◆ evaluate() [3/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const ElemArg elem,
const StateArg state 
) const
finaloverrideprotectedvirtual

Evaluate the functor with a given element.

Some example implementations of this method could compute an element-average or evaluate at the element centroid

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1047 of file MooseVariableFE.C.

1048 {
1049  const QMonomial qrule(elem_arg.elem->dim(), CONSTANT);
1050  // We can use whatever we want for the point argument since it won't be used
1051  const ElemQpArg elem_qp_arg{elem_arg.elem, /*qp=*/0, &qrule, Point(0, 0, 0)};
1052  evaluateOnElement(elem_qp_arg, state, /*cache_eligible=*/false);
1053  return _current_elem_qp_functor_sln[0];
1054 }
CONSTANT
std::vector< ValueType > _current_elem_qp_functor_sln
The values of the solution for the _current_elem_qp_functor_elem.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
Moose::ElemQpArg ElemQpArg
const libMesh::Elem * elem
The element.

◆ evaluate() [4/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const ElemPointArg elem_point,
const StateArg state 
) const
finaloverrideprotectedvirtual

Evaluate the functor with a given element and point.

Some example implementations of this method could perform a two-term Taylor expansion using cell-centered value and gradient

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1104 of file MooseVariableFE.C.

1106 {
1107  mooseAssert(elem_point_arg.elem, "We need an Elem");
1108  const Elem & elem = *elem_point_arg.elem;
1109  const auto dim = elem.dim();
1110  ArbitraryQuadrature qrule(dim);
1111  const std::vector<Point> ref_point = {FEMap::inverse_map(dim, &elem, elem_point_arg.point)};
1112  qrule.setPoints(ref_point);
1113  // We can use whatever we want for the point argument since it won't be used
1114  const ElemQpArg elem_qp_arg{elem_point_arg.elem, /*qp=*/0, &qrule, elem_point_arg.point};
1115  evaluateOnElement(elem_qp_arg, state, /*cache_eligible=*/false);
1116  return _current_elem_qp_functor_sln[0];
1117 }
static constexpr std::size_t dim
This is the dimension of all vector and tensor datastructures used in MOOSE.
Definition: Moose.h:148
Implements a fake quadrature rule where you can specify the locations (in the reference domain) of th...
std::vector< ValueType > _current_elem_qp_functor_sln
The values of the solution for the _current_elem_qp_functor_elem.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
Moose::ElemQpArg ElemQpArg
const libMesh::Elem * elem
The element.
const Point & point(const unsigned int i) const

◆ evaluate() [5/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const NodeArg node_arg,
const StateArg state 
) const
finaloverrideprotectedvirtual

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 861 of file MooseVariableFE.C.

862 {
863  mooseAssert(node_arg.node, "Must have a node");
864  mooseAssert(this->hasBlocks(node_arg.subdomain_id),
865  "Our variable should be defined on the requested subdomain ID");
866  const Node & node = *node_arg.node;
867  mooseAssert(node.n_dofs(this->_sys.number(), this->number()),
868  "Our variable must have dofs on the requested node");
869  const auto & soln = this->getSolution(state);
870  if constexpr (std::is_same<OutputType, Real>::value)
871  {
872  const auto dof_number = node.dof_number(this->_sys.number(), this->number(), 0);
873  ValueType ret = soln(dof_number);
875  Moose::derivInsert(ret.derivatives(), dof_number, 1);
876  return ret;
877  }
878  else if constexpr (std::is_same<OutputType, RealVectorValue>::value)
879  {
880  ValueType ret;
881  const auto do_derivatives = Moose::doDerivatives(_subproblem, _sys);
882  for (const auto d : make_range(this->_mesh.dimension()))
883  {
884  const auto dof_number = node.dof_number(this->_sys.number(), this->number(), d);
885  auto & component = ret(d);
886  component = soln(dof_number);
887  if (do_derivatives)
888  Moose::derivInsert(component.derivatives(), dof_number, 1);
889  }
890  return ret;
891  }
892  else
893  mooseError("RealEigenVector not yet supported for functors");
894 }
const Node *const & node() const
unsigned int number() const
Get variable number coming from libMesh.
bool doDerivatives(const SubProblem &subproblem, const SystemBase &sys)
Definition: ADUtils.C:79
const NumericVector< Number > & getSolution(const Moose::StateArg &state) const
Get the solution corresponding to the provided state.
SubProblem & _subproblem
Problem this variable is part of.
virtual unsigned int dimension() const
Returns MeshBase::mesh_dimension(), (not MeshBase::spatial_dimension()!) of the underlying libMesh me...
Definition: MooseMesh.C:2679
SystemBase & _sys
System this variable is part of.
unsigned int number() const
Gets the number of this system.
Definition: SystemBase.C:1132
MooseMesh & _mesh
mesh the variable is active in
bool hasBlocks(const SubdomainID id) const override
Returns whether the functor is defined on this block.
IntRange< T > make_range(T beg, T end)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
void derivInsert(NumberArray< N, Real > &derivs, dof_id_type index, Real value)

◆ evaluate() [6/6]

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::evaluate ( const FaceArg face,
const StateArg state 
) const
finaloverrideprotectedvirtual
Parameters
faceSee the FaceArg doxygen
stateSee the StateArg doxygen
Returns
The functor evaluated at the requested state and space

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1097 of file MooseVariableFE.C.

1098 {
1099  return faceEvaluate(face_arg, state, _current_elem_side_qp_functor_sln);
1100 }
ValueType faceEvaluate(const FaceArg &, const StateArg &, const std::vector< ValueType > &cache_data) const
A common method that both evaluate(FaceArg) and evaluateDot(FaceArg) can call.
std::vector< ValueType > _current_elem_side_qp_functor_sln
The values of the solution for the _current_elem_side_qp_functor_elem_side.

◆ evaluateDot() [1/6]

virtual DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateDot ( const ElemPointArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Evaluate the functor time derivative with a given element and point.

Definition at line 423 of file MooseFunctor.h.

424  {
425  mooseError("Element-point time derivative not implemented for functor " + functorName());
426  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateDot() [2/6]

virtual DotType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateDot ( const NodeArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Definition at line 428 of file MooseFunctor.h.

429  {
430  mooseError("Time derivative at node not implemented for functor " + functorName());
431  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateDot() [3/6]

template<typename OutputType >
MooseVariableFE< OutputType >::DotType MooseVariableFE< OutputType >::evaluateDot ( const ElemQpArg ,
const StateArg  
) const
finaloverrideprotectedvirtual
Parameters
qpSee the ElemQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor time derivative evaluated at the requested state and space

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1145 of file MooseVariableFE.C.

1146 {
1147  mooseAssert(_time_integrator && _time_integrator->dt(),
1148  "A time derivative is being requested but we do not have a time integrator so we'll "
1149  "have no idea how to compute it");
1150  evaluateOnElement(elem_qp, state, /*query_cache=*/true);
1151  const auto qp = elem_qp.qp;
1152  mooseAssert(qp < _current_elem_qp_functor_dot.size(),
1153  "The requested " << qp << " is outside our dot size");
1154  return _current_elem_qp_functor_dot[qp];
1155 }
std::vector< DotType > _current_elem_qp_functor_dot
The values of the time derivative for the _current_elem_qp_functor_elem.
const Real & dt() const
Returns the time step size.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives

◆ evaluateDot() [4/6]

template<typename OutputType >
MooseVariableFE< OutputType >::DotType MooseVariableFE< OutputType >::evaluateDot ( const ElemSideQpArg ,
const StateArg  
) const
finaloverrideprotectedvirtual
Parameters
side_qpSee the ElemSideQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor time derivative evaluated at the requested state and space

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1265 of file MooseVariableFE.C.

1267 {
1268  mooseAssert(_time_integrator && _time_integrator->dt(),
1269  "A time derivative is being requested but we do not have a time integrator so we'll "
1270  "have no idea how to compute it");
1271  evaluateOnElementSide(elem_side_qp, state, true);
1272  const auto qp = elem_side_qp.qp;
1273  mooseAssert(qp < _current_elem_side_qp_functor_dot.size(),
1274  "The requested " << qp << " is outside our dot size");
1276 }
std::vector< DotType > _current_elem_side_qp_functor_dot
The values of the time derivative for the _current_elem_side_qp_functor_elem_side.
const Real & dt() const
Returns the time step size.
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives
void evaluateOnElementSide(const ElemSideQpArg &elem_side_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_side_qp argument.

◆ evaluateDot() [5/6]

template<typename OutputType >
MooseVariableFE< OutputType >::DotType MooseVariableFE< OutputType >::evaluateDot ( const ElemArg ,
const StateArg  
) const
finaloverrideprotectedvirtual

Evaluate the functor time derivative with a given element.

Some example implementations of this method could compute an element-average or evaluate at the element centroid

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1159 of file MooseVariableFE.C.

1160 {
1161  mooseAssert(_time_integrator && _time_integrator->dt(),
1162  "A time derivative is being requested but we do not have a time integrator so we'll "
1163  "have no idea how to compute it");
1164  const QMonomial qrule(elem_arg.elem->dim(), CONSTANT);
1165  // We can use whatever we want for the point argument since it won't be used
1166  const ElemQpArg elem_qp_arg{elem_arg.elem, /*qp=*/0, &qrule, Point(0, 0, 0)};
1167  evaluateOnElement(elem_qp_arg, state, /*cache_eligible=*/false);
1168  return _current_elem_qp_functor_dot[0];
1169 }
std::vector< DotType > _current_elem_qp_functor_dot
The values of the time derivative for the _current_elem_qp_functor_elem.
CONSTANT
const Real & dt() const
Returns the time step size.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives
Moose::ElemQpArg ElemQpArg
const libMesh::Elem * elem
The element.

◆ evaluateDot() [6/6]

template<typename OutputType >
MooseVariableFE< OutputType >::DotType MooseVariableFE< OutputType >::evaluateDot ( const FaceArg ,
const StateArg  
) const
finaloverrideprotectedvirtual
Parameters
faceSee the FaceArg doxygen
stateSee the StateArg doxygen
Returns
The functor time derivative evaluated at the requested state and space

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1280 of file MooseVariableFE.C.

1281 {
1282  mooseAssert(_time_integrator && _time_integrator->dt(),
1283  "A time derivative is being requested but we do not have a time integrator so we'll "
1284  "have no idea how to compute it");
1285  return faceEvaluate(face_arg, state, _current_elem_side_qp_functor_dot);
1286 }
std::vector< DotType > _current_elem_side_qp_functor_dot
The values of the time derivative for the _current_elem_side_qp_functor_elem_side.
ValueType faceEvaluate(const FaceArg &, const StateArg &, const std::vector< ValueType > &cache_data) const
A common method that both evaluate(FaceArg) and evaluateDot(FaceArg) can call.
const Real & dt() const
Returns the time step size.
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives

◆ evaluateGradDot() [1/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradDot ( const FaceArg ,
const StateArg  
) const
inlineprotectedvirtualinherited
Parameters
faceSee the FaceArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient-dot evaluated at the requested state and space

Definition at line 447 of file MooseFunctor.h.

448  {
449  mooseError("Face gradient-dot not implemented for functor " + functorName());
450  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradDot() [2/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradDot ( const ElemQpArg ,
const StateArg  
) const
inlineprotectedvirtualinherited
Parameters
qpSee the ElemQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient-dot evaluated at the requested state and space

Definition at line 457 of file MooseFunctor.h.

458  {
459  mooseError("Element quadrature point gradient-dot not implemented for functor " +
460  functorName());
461  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradDot() [3/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradDot ( const ElemSideQpArg ,
const StateArg  
) const
inlineprotectedvirtualinherited
Parameters
side_qpSee the ElemSideQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient-dot evaluated at the requested state and space

Definition at line 468 of file MooseFunctor.h.

469  {
470  mooseError("Element side quadrature point gradient-dot not implemented for functor " +
471  functorName());
472  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradDot() [4/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradDot ( const ElemPointArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Evaluate the functor gradient-dot with a given element and point.

Definition at line 477 of file MooseFunctor.h.

478  {
479  mooseError("Element-point gradient-dot not implemented for functor " + functorName());
480  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradDot() [5/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradDot ( const NodeArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Definition at line 482 of file MooseFunctor.h.

483  {
484  mooseError("Gradient-dot at node not implemented for functor " + functorName());
485  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradDot() [6/6]

template<typename OutputType >
MooseVariableFE< OutputType >::GradientType MooseVariableFE< OutputType >::evaluateGradDot ( const ElemArg ,
const StateArg  
) const
finaloverrideprotectedvirtual

Evaluate the functor gradient-dot with a given element.

Some example implementations of this method could compute an element-average or evaluate at the element centroid

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1173 of file MooseVariableFE.C.

1174 {
1175  mooseAssert(_time_integrator && _time_integrator->dt(),
1176  "A time derivative is being requested but we do not have a time integrator so we'll "
1177  "have no idea how to compute it");
1178  const QMonomial qrule(elem_arg.elem->dim(), CONSTANT);
1179  // We can use whatever we want for the point argument since it won't be used
1180  const ElemQpArg elem_qp_arg{elem_arg.elem, /*qp=*/0, &qrule, Point(0, 0, 0)};
1181  evaluateOnElement(elem_qp_arg, state, /*cache_eligible=*/false);
1183 }
std::vector< GradientType > _current_elem_qp_functor_grad_dot
The values of the gradient of the time derivative for the _current_elem_qp_functor_elem.
CONSTANT
const Real & dt() const
Returns the time step size.
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
const TimeIntegrator *const _time_integrator
the time integrator used for computing time derivatives
Moose::ElemQpArg ElemQpArg
const libMesh::Elem * elem
The element.

◆ evaluateGradient() [1/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradient ( const FaceArg ,
const StateArg  
) const
inlineprotectedvirtualinherited
Parameters
faceSee the FaceArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient evaluated at the requested state and space

Reimplemented in MooseVariableFV< OutputType >, and MooseLinearVariableFV< OutputType >.

Definition at line 340 of file MooseFunctor.h.

341  {
342  mooseError("Face gradient not implemented for functor " + functorName());
343  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradient() [2/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradient ( const ElemPointArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Evaluate the functor gradient with a given element and point.

Definition at line 369 of file MooseFunctor.h.

370  {
371  mooseError("Element-point gradient not implemented for functor " + functorName());
372  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradient() [3/6]

virtual GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::evaluateGradient ( const NodeArg ,
const StateArg  
) const
inlineprotectedvirtualinherited

Definition at line 374 of file MooseFunctor.h.

375  {
376  mooseError("Gradient at node not implemented for functor " + functorName());
377  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
const MooseFunctorName & functorName() const
Return the functor name.
Definition: MooseFunctor.h:168

◆ evaluateGradient() [4/6]

template<typename OutputType >
MooseVariableFE< OutputType >::GradientType MooseVariableFE< OutputType >::evaluateGradient ( const ElemQpArg ,
const StateArg  
) const
overrideprotectedvirtual
Parameters
qpSee the ElemQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient evaluated at the requested state and space

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1121 of file MooseVariableFE.C.

1123 {
1124  evaluateOnElement(elem_qp, state, /*query_cache=*/true);
1125  const auto qp = elem_qp.qp;
1126  mooseAssert(qp < _current_elem_qp_functor_gradient.size(),
1127  "The requested " << qp << " is outside our gradient size");
1129 }
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
std::vector< GradientType > _current_elem_qp_functor_gradient
The values of the gradient for the _current_elem_qp_functor_elem.

◆ evaluateGradient() [5/6]

template<typename OutputType >
MooseVariableFE< OutputType >::GradientType MooseVariableFE< OutputType >::evaluateGradient ( const ElemSideQpArg ,
const StateArg  
) const
finaloverrideprotectedvirtual
Parameters
side_qpSee the ElemSideQpArg doxygen
stateSee the StateArg doxygen
Returns
The functor gradient evaluated at the requested state and space

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1253 of file MooseVariableFE.C.

1255 {
1256  evaluateOnElementSide(elem_side_qp, state, true);
1257  const auto qp = elem_side_qp.qp;
1258  mooseAssert(qp < _current_elem_side_qp_functor_gradient.size(),
1259  "The requested " << qp << " is outside our gradient size");
1261 }
std::vector< GradientType > _current_elem_side_qp_functor_gradient
The values of the gradient for the _current_elem_side_qp_functor_elem_side.
void evaluateOnElementSide(const ElemSideQpArg &elem_side_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_side_qp argument.

◆ evaluateGradient() [6/6]

template<typename OutputType >
MooseVariableFE< OutputType >::GradientType MooseVariableFE< OutputType >::evaluateGradient ( const ElemArg ,
const StateArg  
) const
finaloverrideprotectedvirtual

Evaluate the functor gradient with a given element.

Some example implementations of this method could compute an element-average or evaluate at the element centroid

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 1133 of file MooseVariableFE.C.

1135 {
1136  const QMonomial qrule(elem_arg.elem->dim(), CONSTANT);
1137  // We can use whatever we want for the point argument since it won't be used
1138  const ElemQpArg elem_qp_arg{elem_arg.elem, /*qp=*/0, &qrule, Point(0, 0, 0)};
1139  evaluateOnElement(elem_qp_arg, state, /*cache_eligible=*/false);
1141 }
CONSTANT
void evaluateOnElement(const ElemQpArg &elem_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_qp argument.
std::vector< GradientType > _current_elem_qp_functor_gradient
The values of the gradient for the _current_elem_qp_functor_elem.
Moose::ElemQpArg ElemQpArg
const libMesh::Elem * elem
The element.

◆ evaluateOnElement()

template<typename OutputType >
void MooseVariableFE< OutputType >::evaluateOnElement ( const ElemQpArg elem_qp,
const StateArg state,
bool  cache_eligible 
) const
private

Evaluate solution and gradient for the elem_qp argument.

Definition at line 986 of file MooseVariableFE.C.

989 {
990  mooseAssert(this->hasBlocks(elem_qp.elem->subdomain_id()),
991  "Variable " + this->name() + " doesn't exist on block " +
992  std::to_string(elem_qp.elem->subdomain_id()));
993 
994  const Elem * const elem = elem_qp.elem;
995  if (!cache_eligible || (elem != _current_elem_qp_functor_elem))
996  {
997  const QBase * const qrule_template = elem_qp.qrule;
998 
999  using FEBaseType = typename FEBaseHelper<OutputType>::type;
1000  std::unique_ptr<FEBaseType> fe(FEBaseType::build(elem->dim(), _fe_type));
1001  auto qrule = qrule_template->clone();
1002 
1003  const auto & phi = fe->get_phi();
1004  const auto & dphi = fe->get_dphi();
1005  fe->attach_quadrature_rule(qrule.get());
1006  fe->reinit(elem);
1007 
1008  computeSolution(elem,
1009  qrule->n_points(),
1010  state,
1011  phi,
1013  dphi,
1017  }
1018  if (cache_eligible)
1020  else
1021  // These evaluations are not eligible for caching, e.g. maybe this is a single point quadrature
1022  // rule evaluation at an arbitrary point and we don't want those evaluations to potentially be
1023  // re-used when this function is called with a standard quadrature rule or a different point
1025 }
void computeSolution(const Elem *elem, unsigned int n_qp, const StateArg &state, const Shapes &phi, Solution &local_soln, const GradShapes &grad_phi, GradSolution &grad_local_soln, Solution &dot_local_soln, GradSolution &grad_dot_local_soln) const
Compute the solution, gradient, time derivative, and gradient of the time derivative with provided sh...
FEType _fe_type
The FEType associated with this variable.
std::vector< DotType > _current_elem_qp_functor_dot
The values of the time derivative for the _current_elem_qp_functor_elem.
const std::string & name() const override
Get the variable name.
std::vector< GradientType > _current_elem_qp_functor_grad_dot
The values of the gradient of the time derivative for the _current_elem_qp_functor_elem.
const FieldVariablePhiValue & phi() const override
Return the variable&#39;s elemental shape functions.
std::vector< ValueType > _current_elem_qp_functor_sln
The values of the solution for the _current_elem_qp_functor_elem.
bool hasBlocks(const SubdomainID id) const override
Returns whether the functor is defined on this block.
std::vector< GradientType > _current_elem_qp_functor_gradient
The values of the gradient for the _current_elem_qp_functor_elem.
const Elem * _current_elem_qp_functor_elem
Keep track of the current elem-qp functor element in order to enable local caching (e...

◆ evaluateOnElementSide()

template<typename OutputType >
void MooseVariableFE< OutputType >::evaluateOnElementSide ( const ElemSideQpArg elem_side_qp,
const StateArg state,
bool  cache_eligible 
) const
private

Evaluate solution and gradient for the elem_side_qp argument.

Definition at line 1187 of file MooseVariableFE.C.

1190 {
1191  mooseAssert(this->hasBlocks(elem_side_qp.elem->subdomain_id()),
1192  "Variable " + this->name() + " doesn't exist on block " +
1193  std::to_string(elem_side_qp.elem->subdomain_id()));
1194 
1195  const Elem * const elem = elem_side_qp.elem;
1196  const auto side = elem_side_qp.side;
1197  if (!cache_eligible || elem != _current_elem_side_qp_functor_elem_side.first ||
1199  {
1200  const QBase * const qrule_template = elem_side_qp.qrule;
1201 
1202  using FEBaseType = typename FEBaseHelper<OutputType>::type;
1203  std::unique_ptr<FEBaseType> fe(FEBaseType::build(elem->dim(), _fe_type));
1204  auto qrule = qrule_template->clone();
1205 
1206  const auto & phi = fe->get_phi();
1207  const auto & dphi = fe->get_dphi();
1208  fe->attach_quadrature_rule(qrule.get());
1209  fe->reinit(elem, side);
1210 
1211  computeSolution(elem,
1212  qrule->n_points(),
1213  state,
1214  phi,
1216  dphi,
1220  }
1221  if (cache_eligible)
1222  _current_elem_side_qp_functor_elem_side = std::make_pair(elem, side);
1223  else
1224  // These evaluations are not eligible for caching, e.g. maybe this is a single point quadrature
1225  // rule evaluation at an arbitrary point and we don't want those evaluations to potentially be
1226  // re-used when this function is called with a standard quadrature rule or a different point
1228 }
void computeSolution(const Elem *elem, unsigned int n_qp, const StateArg &state, const Shapes &phi, Solution &local_soln, const GradShapes &grad_phi, GradSolution &grad_local_soln, Solution &dot_local_soln, GradSolution &grad_dot_local_soln) const
Compute the solution, gradient, time derivative, and gradient of the time derivative with provided sh...
FEType _fe_type
The FEType associated with this variable.
const unsigned int invalid_uint
const std::string & name() const override
Get the variable name.
std::pair< const Elem *, unsigned int > _current_elem_side_qp_functor_elem_side
Keep track of the current elem-side-qp functor element and side in order to enable local caching (e...
std::vector< DotType > _current_elem_side_qp_functor_dot
The values of the time derivative for the _current_elem_side_qp_functor_elem_side.
const FieldVariablePhiValue & phi() const override
Return the variable&#39;s elemental shape functions.
std::vector< GradientType > _current_elem_side_qp_functor_grad_dot
The values of the gradient of the time derivative for the _current_elem_side_qp_functor_elem_side.
bool hasBlocks(const SubdomainID id) const override
Returns whether the functor is defined on this block.
std::vector< GradientType > _current_elem_side_qp_functor_gradient
The values of the gradient for the _current_elem_side_qp_functor_elem_side.
std::vector< ValueType > _current_elem_side_qp_functor_sln
The values of the solution for the _current_elem_side_qp_functor_elem_side.

◆ faceEvaluate()

template<typename OutputType >
MooseVariableFE< OutputType >::ValueType MooseVariableFE< OutputType >::faceEvaluate ( const FaceArg face_arg,
const StateArg state,
const std::vector< ValueType > &  cache_data 
) const
protected

A common method that both evaluate(FaceArg) and evaluateDot(FaceArg) can call.

A value evaluation vs dot evaluation is delineated via the passed-in cache_data, e.g. if the passed-in cache data is the sln data member then this will return a value evaluation and if the cache data is the dot data member then this will return a dot evaluation

Definition at line 1058 of file MooseVariableFE.C.

1061 {
1062  const QMonomial qrule(face_arg.fi->elem().dim() - 1, CONSTANT);
1063  auto side_evaluate =
1064  [this, &qrule, &state, &cache_data](const Elem * const elem, const unsigned int side)
1065  {
1066  // We can use whatever we want for the point argument since it won't be used
1067  const ElemSideQpArg elem_side_qp_arg{elem, side, /*qp=*/0, &qrule, Point(0, 0, 0)};
1068  evaluateOnElementSide(elem_side_qp_arg, state, /*cache_eligible=*/false);
1069  return cache_data[0];
1070  };
1071 
1072  const auto continuity = this->getContinuity();
1073  const bool on_elem = !face_arg.face_side || (face_arg.face_side == face_arg.fi->elemPtr());
1074  const bool on_neighbor =
1075  !face_arg.face_side || (face_arg.face_side == face_arg.fi->neighborPtr());
1076  if (on_neighbor)
1077  mooseAssert(
1078  face_arg.fi->neighborPtr(),
1079  "If we are signaling we should evaluate on the neighbor, we better have a neighbor");
1080 
1081  // Only do multiple evaluations if we are not continuous and we are on an internal face
1082  if ((continuity != C_ZERO && continuity != C_ONE) && on_elem && on_neighbor)
1083  return (side_evaluate(face_arg.fi->elemPtr(), face_arg.fi->elemSideID()) +
1084  side_evaluate(face_arg.fi->neighborPtr(), face_arg.fi->neighborSideID())) /
1085  2;
1086  else if (on_elem)
1087  return side_evaluate(face_arg.fi->elemPtr(), face_arg.fi->elemSideID());
1088  else if (on_neighbor)
1089  return side_evaluate(face_arg.fi->neighborPtr(), face_arg.fi->neighborSideID());
1090  else
1091  mooseError(
1092  "Attempted to evaluate a moose finite element variable on a face where it is not defined");
1093 }
Moose::ElemSideQpArg ElemSideQpArg
CONSTANT
FEContinuity getContinuity() const override
Return the continuity of this variable.
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
void evaluateOnElementSide(const ElemSideQpArg &elem_side_qp, const StateArg &state, bool cache_eligible) const
Evaluate solution and gradient for the elem_side_qp argument.

◆ feType()

const FEType& MooseVariableBase::feType ( ) const
inlineinherited

◆ fieldType()

template<typename OutputType >
Moose::VarFieldType MooseVariableField< OutputType >::fieldType ( ) const
overridevirtualinherited

Filed type of this variable.

Implements MooseVariableFieldBase.

Definition at line 72 of file MooseVariableField.C.

73 {
74  if (std::is_same<OutputType, Real>::value)
76  else if (std::is_same<OutputType, RealVectorValue>::value)
78  else if (std::is_same<OutputType, RealEigenVector>::value)
80  else
81  mooseError("Unknown variable field type");
82 }
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.

◆ functorName()

const MooseFunctorName& Moose::FunctorBase< Moose::ADType< OutputType >::type >::functorName ( ) const
inlineinherited

Return the functor name.

Definition at line 168 of file MooseFunctor.h.

168 { return _functor_name; }
MooseFunctorName _functor_name
name of the functor
Definition: MooseFunctor.h:559

◆ genericEvaluate()

FunctorReturnType< Moose::ADType< OutputType >::type , FET >::type Moose::FunctorBase< Moose::ADType< OutputType >::type >::genericEvaluate ( const Space &  r,
const State &  state 
) const
inherited

Perform a generic evaluation based on the supplied template argument FET and supplied spatial and temporal arguments.

Definition at line 977 of file MooseFunctor.h.

978 {
979  if constexpr (FET == FunctorEvaluationKind::Value)
980  return (*this)(r, state);
981  else if constexpr (FET == FunctorEvaluationKind::Gradient)
982  return gradient(r, state);
983  else if constexpr (FET == FunctorEvaluationKind::Dot)
984  return dot(r, state);
985  else
986  return gradDot(r, state);
987 }
GradientType gradDot(const ElemArg &elem, const StateArg &state) const
Same as their evaluateGradDot overloads with the same arguments but allows for caching implementation...
Definition: MooseFunctor.h:924
DotType dot(const ElemArg &elem, const StateArg &state) const
Same as their evaluateDot overloads with the same arguments but allows for caching implementation...
Definition: MooseFunctor.h:882
GradientType gradient(const ElemArg &elem, const StateArg &state) const
Same as their evaluateGradient overloads with the same arguments but allows for caching implementatio...
Definition: MooseFunctor.h:840

◆ getBlockCoordSystem()

Moose::CoordinateSystemType BlockRestrictable::getBlockCoordSystem ( )
protectedinherited

Check if the blocks this object operates on all have the same coordinate system, and if so return it.

Definition at line 311 of file BlockRestrictable.C.

312 {
313  if (!_blk_mesh)
314  mooseError("No mesh available in BlockRestrictable::checkCoordSystem()");
315  if (!_blk_feproblem)
316  mooseError("No problem available in BlockRestrictable::checkCoordSystem()");
317 
318  const auto & subdomains = blockRestricted() ? blockIDs() : meshBlockIDs();
319 
320  if (subdomains.empty())
321  mooseError("No subdomains found in the problem.");
322 
323  // make sure all subdomains are using the same coordinate system
324  auto coord_system = _blk_feproblem->getCoordSystem(*subdomains.begin());
325  for (auto subdomain : subdomains)
326  if (_blk_feproblem->getCoordSystem(subdomain) != coord_system)
327  mooseError("This object requires all subdomains to have the same coordinate system.");
328 
329  return coord_system;
330 }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
FEProblemBase * _blk_feproblem
Pointer to FEProblemBase.
virtual const std::set< SubdomainID > & blockIDs() const
Return the block subdomain ids for this object Note, if this is not block restricted, this function returns all mesh subdomain ids.
virtual bool blockRestricted() const
Returns true if this object has been restricted to a block.
const std::set< SubdomainID > & meshBlockIDs() const
Return all of the SubdomainIDs for the mesh.
Moose::CoordinateSystemType getCoordSystem(SubdomainID sid) const
Definition: SubProblem.C:1235
MooseMesh * _blk_mesh
Pointer to Mesh.

◆ getCheckedPointerParam()

template<typename T >
T MooseBaseParameterInterface::getCheckedPointerParam ( const std::string &  name,
const std::string &  error_string = "" 
) const
inherited

Verifies that the requested parameter exists and is not NULL and returns it to the caller.

The template parameter must be a pointer or an error will be thrown.

Definition at line 268 of file MooseBaseParameterInterface.h.

270 {
271  return parameters().getCheckedPointerParam<T>(name, error_string);
272 }
std::string name(const ElemQuality q)
T getCheckedPointerParam(const std::string &name, const std::string &error_string="") const
Verifies that the requested parameter exists and is not NULL and returns it to the caller...
const InputParameters & parameters() const
Get the parameters of the object.

◆ getContinuity()

template<typename OutputType>
FEContinuity MooseVariableFE< OutputType >::getContinuity ( ) const
inlineoverridevirtual

Return the continuity of this variable.

Reimplemented from MooseVariableBase.

Definition at line 149 of file MooseVariableFE.h.

Referenced by ProjectionAux::computeValue().

149 { return _element_data->getContinuity(); };
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getDataFileName()

std::string DataFileInterface< MooseObject >::getDataFileName ( const std::string &  param) const
inherited

Returns the path of a data file for a given FileName type parameter, searching (in the following order)

  • relative to the input file directory
  • relative to the running binary (assuming the application is installed)
  • relative to all registered data file directories

Definition at line 24 of file DataFileInterface.C.

25 {
26  // The path from the parameters, which has not been modified because it is a DataFileName
27  const auto & value = _parent.template getParam<DataFileParameterType>(param);
28  if (value.empty())
29  _parent.paramInfo(param, "Data file name is empty");
30 
31  const std::filesystem::path value_path = std::filesystem::path(std::string(value));
32 
33  // If the file is absolute, we should reference that directly and don't need to add
34  // any info beacuse this is not ambiguous
35  if (value_path.is_absolute() && MooseUtils::checkFileReadable(value, false, false, false))
36  return value;
37 
38  // Look relative to the input file
39  const auto base = _parent.parameters().getParamFileBase(param);
40  const std::string relative_to_context = std::filesystem::absolute(base / value_path).c_str();
41  if (MooseUtils::checkFileReadable(relative_to_context, false, false, false))
42  {
43  _parent.paramInfo(param, "Data file '", value, "' found relative to the input file.");
44  return relative_to_context;
45  }
46 
47  // Isn't absolute and couldn't find relative to the input file, so search the data
48  return getDataFileNameByName(value, &param);
49 }
std::string getDataFileNameByName(const std::string &name, const std::string *param=nullptr) const
Returns the path of a data file for a given relative file path.
std::filesystem::path getParamFileBase(const std::string &param_name) const
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true, bool check_for_git_lfs_pointer=true)
Checks to see if a file is readable (exists and permissions)
Definition: MooseUtils.C:256
const InputParameters & parameters() const
Get the parameters of the object.
void paramInfo(const std::string &param, Args... args) const
Emits an informational message prefixed with the file and line number of the given param (from the in...

◆ getDataFileNameByName()

std::string DataFileInterface< MooseObject >::getDataFileNameByName ( const std::string &  name,
const std::string *  param = nullptr 
) const
inherited

Returns the path of a data file for a given relative file path.

This can be used for hardcoded datafile names and will search the same locations as getDataFileName. The optional param pointer can be used to turn the mooseErrors this function emits into paramErrors

  • relative to the running binary (assuming the application is installed)
  • relative to all registered data file directories

Definition at line 53 of file DataFileInterface.C.

55 {
57  const auto share_dir = MooseUtils::pathjoin(Moose::getExecutablePath(), "..", "share");
58  if (MooseUtils::pathIsDirectory(share_dir))
59  {
60  const auto dirs = MooseUtils::listDir(share_dir, false);
61  for (const auto & data_dir : dirs)
62  {
63  const auto path = MooseUtils::pathjoin(data_dir, "data", relative_path);
64  if (MooseUtils::checkFileReadable(path, false, false, false))
65  {
66  if (param)
68  *param, "Data file '", path, "' found in an installed app distribution.");
69  else
70  mooseInfo("Data file '", path, "' found in an installed app distribution.");
71  return path;
72  }
73  }
74  }
75 
77  for (const auto & data_dir : Registry::getRegistry().getDataFilePaths())
78  {
79  const auto path = MooseUtils::pathjoin(data_dir, relative_path);
80  if (MooseUtils::checkFileReadable(path, false, false, false))
81  {
82  if (param)
83  _parent.paramInfo(*param, "Data file '", path, "' found in a source repository.");
84  else
85  mooseInfo("Data file '", path, "' found in a source repository.");
86  return path;
87  }
88  }
89 
90  mooseException(param ? _parent.parameters().inputLocation(*param) : _parent.name(),
91  ": Unable to find data file '",
92  relative_path,
93  "' anywhere");
94 }
static Registry & getRegistry()
Get the global Registry singleton.
Definition: Registry.C:21
std::string getExecutablePath()
This function returns the PATH of the running executable.
bool pathIsDirectory(const std::string &path)
Definition: MooseUtils.C:247
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
void mooseInfo(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
Definition: MooseError.h:366
bool checkFileReadable(const std::string &filename, bool check_line_endings=false, bool throw_on_unreadable=true, bool check_for_git_lfs_pointer=true)
Checks to see if a file is readable (exists and permissions)
Definition: MooseUtils.C:256
std::string inputLocation(const std::string &param) const
std::filesystem::path pathjoin(const std::filesystem::path &p)
Definition: MooseUtils.C:58
std::list< std::string > listDir(const std::string path, bool files_only=false)
Definition: MooseUtils.C:768
const InputParameters & parameters() const
Get the parameters of the object.
void paramInfo(const std::string &param, Args... args) const
Emits an informational message prefixed with the file and line number of the given param (from the in...

◆ getDofIndices()

template<typename OutputType >
void MooseVariableFE< OutputType >::getDofIndices ( const Elem *  elem,
std::vector< dof_id_type > &  dof_indices 
) const
overridevirtual

Reimplemented from MooseVariableBase.

Definition at line 157 of file MooseVariableFE.C.

159 {
160  _element_data->getDofIndices(elem, dof_indices);
161 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getElementalValue()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getElementalValue ( const Elem *  elem,
unsigned int  idx = 0 
) const

Get the current value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Definition at line 186 of file MooseVariableFE.C.

Referenced by MortarConstraintBase::zeroInactiveLMDofs().

187 {
188  return _element_data->getElementalValue(elem, Moose::Current, idx);
189 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getElementalValueOld()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getElementalValueOld ( const Elem *  elem,
unsigned int  idx = 0 
) const

Get the old value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Definition at line 193 of file MooseVariableFE.C.

194 {
195  return _element_data->getElementalValue(elem, Moose::Old, idx);
196 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getElementalValueOlder()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getElementalValueOlder ( const Elem *  elem,
unsigned int  idx = 0 
) const

Get the older value of this variable on an element.

Parameters
[in]elemElement at which to get value
[in]idxLocal index of this variable's element DoFs
Returns
Variable value

Definition at line 200 of file MooseVariableFE.C.

201 {
202  return _element_data->getElementalValue(elem, Moose::Older, idx);
203 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getExecuteOnEnum()

const ExecFlagEnum & SetupInterface::getExecuteOnEnum ( ) const
inherited

◆ getGradient()

template<typename OutputType>
OutputTools< OutputType >::OutputGradient MooseVariableFE< OutputType >::getGradient ( const Elem *  elem,
const std::vector< std::vector< typename OutputTools< OutputType >::OutputShapeGradient >> &  grad_phi 
) const

Compute the variable gradient value at a point on an element.

Parameters
elemThe element we are computing on
phiEvaluated shape functions at a point
Returns
The variable gradient value

Definition at line 512 of file MooseVariableFE.C.

516 {
517  std::vector<dof_id_type> dof_indices;
518  this->_dof_map.dof_indices(elem, dof_indices, _var_num);
519 
521  if (isNodal())
522  {
523  for (unsigned int i = 0; i < dof_indices.size(); ++i)
524  {
525  // The zero index is because we only have one point that the phis are evaluated at
526  value += grad_phi[i][0] * (*this->_sys.currentSolution())(dof_indices[i]);
527  }
528  }
529  else
530  {
531  mooseAssert(dof_indices.size() == 1, "Wrong size for dof indices");
532  value = 0.0;
533  }
534 
535  return value;
536 }
virtual const NumericVector< Number > *const & currentSolution() const =0
The solution vector that is currently being operated on.
const DofMap & _dof_map
DOF map.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
SystemBase & _sys
System this variable is part of.
TensorTools::IncrementRank< OutputType >::type OutputGradient
Definition: MooseTypes.h:268
bool isNodal() const override
Is this variable nodal.
unsigned int _var_num
variable number (from libMesh)

◆ getMooseApp()

MooseApp& MooseBase::getMooseApp ( ) const
inlineinherited

◆ getNodalValue()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getNodalValue ( const Node &  node) const

Get the value of this variable at given node.

Definition at line 165 of file MooseVariableFE.C.

Referenced by PenetrationAux::computeValue(), NodalVariableValue::execute(), and MortarConstraintBase::zeroInactiveLMDofs().

166 {
167  return _element_data->getNodalValue(node, Moose::Current);
168 }
const Node *const & node() const
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getNodalValueOld()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getNodalValueOld ( const Node &  node) const

Get the old value of this variable at given node.

Definition at line 172 of file MooseVariableFE.C.

Referenced by VariableOldValueBounds::getBound().

173 {
174  return _element_data->getNodalValue(node, Moose::Old);
175 }
const Node *const & node() const
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getNodalValueOlder()

template<typename OutputType >
MooseVariableFE< OutputType >::OutputData MooseVariableFE< OutputType >::getNodalValueOlder ( const Node &  node) const

Get the t-2 value of this variable at given node.

Definition at line 179 of file MooseVariableFE.C.

180 {
181  return _element_data->getNodalValue(node, Moose::Older);
182 }
const Node *const & node() const
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ getOutputs()

const std::set< OutputName > & OutputInterface::getOutputs ( )
inherited

Get the list of output objects that this class is restricted.

Returns
A set of OutputNames

Definition at line 94 of file OutputInterface.C.

95 {
96  return _oi_outputs;
97 }
std::set< OutputName > _oi_outputs
The set of Output object names listed in the &#39;outputs&#39; parameter.

◆ getParam() [1/2]

template<typename T >
const T & MooseBaseParameterInterface::getParam ( const std::string &  name) const
inherited

Retrieve a parameter for the object.

Parameters
nameThe name of the parameter
Returns
The value of the parameter

Definition at line 204 of file MooseBaseParameterInterface.h.

Referenced by CreateDisplacedProblemAction::act(), AddPeriodicBCAction::act(), ADNodalKernel::ADNodalKernel(), ArrayParsedAux::ArrayParsedAux(), AddPeriodicBCAction::autoTranslationBoundaries(), BicubicSplineFunction::BicubicSplineFunction(), PiecewiseTabularBase::buildFromJSON(), PhysicsBase::checkVectorParamsNoOverlap(), PhysicsBase::checkVectorParamsSameLength(), FEProblemBase::createTagSolutions(), AccumulateReporter::declareLateValues(), DerivativeParsedMaterialTempl< is_ad >::DerivativeParsedMaterialTempl(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), EigenKernel::EigenKernel(), FEProblemBase::FEProblemBase(), FEProblemSolve::FEProblemSolve(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FVInterfaceKernel::FVInterfaceKernel(), ExtraNodesetGenerator::generate(), FileMeshGenerator::generate(), BreakMeshByBlockGenerator::generate(), CoarsenBlockGenerator::generate(), GeneratedMeshGenerator::generate(), RefineBlockGenerator::generate(), RefineSidesetGenerator::generate(), BlockDeletionGenerator::generate(), MeshExtruderGenerator::generate(), GenericConstantRankTwoTensorTempl< is_ad >::GenericConstantRankTwoTensorTempl(), MooseApp::getCheckpointDirectories(), ExecutorInterface::getExecutor(), GhostingUserObject::GhostingUserObject(), TimeSequenceStepper::init(), IterationAdaptiveDT::init(), AdvancedOutput::init(), AttribThread::initFrom(), AttribSysNum::initFrom(), AttribResidualObject::initFrom(), AttribDisplaced::initFrom(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), Console::initialSetup(), IterationAdaptiveDT::limitDTToPostprocessorValue(), MooseMesh::MooseMesh(), MooseVariableBase::MooseVariableBase(), NestedDivision::NestedDivision(), ConsoleUtils::outputExecutionInformation(), ParsedAux::ParsedAux(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedElementDeletionGenerator::ParsedElementDeletionGenerator(), ParsedGenerateSideset::ParsedGenerateSideset(), ParsedMaterialTempl< is_ad >::ParsedMaterialTempl(), ParsedNodeTransformGenerator::ParsedNodeTransformGenerator(), ParsedODEKernel::ParsedODEKernel(), ParsedPostprocessor::ParsedPostprocessor(), ParsedSubdomainMeshGenerator::ParsedSubdomainMeshGenerator(), PiecewiseByBlockFunctorMaterialTempl< T >::PiecewiseByBlockFunctorMaterialTempl(), PiecewiseConstantByBlockMaterialTempl< is_ad >::PiecewiseConstantByBlockMaterialTempl(), RenameBlockGenerator::RenameBlockGenerator(), RenameBoundaryGenerator::RenameBoundaryGenerator(), Moose::FV::setInterpolationMethod(), SetupMeshAction::setupMesh(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), TimePeriod::TimePeriod(), UniqueExtraIDMeshGenerator::UniqueExtraIDMeshGenerator(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), and VectorOfPostprocessors::VectorOfPostprocessors().

205 {
206  return InputParameters::getParamHelper(name, _pars, static_cast<T *>(0), &_moose_base);
207 }
const MooseBase & _moose_base
The MooseBase object that inherits this class.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
static const T & getParamHelper(const std::string &name, const InputParameters &pars, const T *the_type, const MooseBase *moose_base=nullptr)

◆ getParam() [2/2]

template<typename T1 , typename T2 >
std::vector< std::pair< T1, T2 > > MooseBaseParameterInterface::getParam ( const std::string &  param1,
const std::string &  param2 
) const
inherited

Retrieve two parameters and provide pair of parameters for the object.

Parameters
param1The name of first parameter
param2The name of second parameter
Returns
Vector of pairs of first and second parameters

Definition at line 261 of file MooseBaseParameterInterface.h.

262 {
263  return _pars.get<T1, T2>(param1, param2);
264 }
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.

◆ getRenamedParam()

template<typename T >
const T & MooseBaseParameterInterface::getRenamedParam ( const std::string &  old_name,
const std::string &  new_name 
) const
inherited

Retrieve a renamed parameter for the object.

This helper makes sure we check both names before erroring, and that only one parameter is passed to avoid silent errors

Parameters
old_namethe old name for the parameter
new_namethe new name for the parameter

Definition at line 211 of file MooseBaseParameterInterface.h.

213 {
214  // this enables having a default on the new parameter but bypassing it with the old one
215  // Most important: accept new parameter
216  if (isParamSetByUser(new_name) && !isParamValid(old_name))
217  return InputParameters::getParamHelper(new_name, _pars, static_cast<T *>(0), &_moose_base);
218  // Second most: accept old parameter
219  else if (isParamValid(old_name) && !isParamSetByUser(new_name))
220  return InputParameters::getParamHelper(old_name, _pars, static_cast<T *>(0), &_moose_base);
221  // Third most: accept default for new parameter
222  else if (isParamValid(new_name) && !isParamValid(old_name))
223  return InputParameters::getParamHelper(new_name, _pars, static_cast<T *>(0), &_moose_base);
224  // Refuse: no default, no value passed
225  else if (!isParamValid(old_name) && !isParamValid(new_name))
226  mooseError(_pars.blockFullpath() + ": parameter '" + new_name +
227  "' is being retrieved without being set.\n"
228  "Did you misspell it?");
229  // Refuse: both old and new parameters set by user
230  else
231  mooseError(_pars.blockFullpath() + ": parameter '" + new_name +
232  "' may not be provided alongside former parameter '" + old_name + "'");
233 }
const MooseBase & _moose_base
The MooseBase object that inherits this class.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
bool isParamSetByUser(const std::string &nm) const
Test if the supplied parameter is set by a user, as opposed to not set or set to default.
std::string blockFullpath() const
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
static const T & getParamHelper(const std::string &name, const InputParameters &pars, const T *the_type, const MooseBase *moose_base=nullptr)

◆ getSharedPtr() [1/2]

std::shared_ptr< MooseObject > MooseObject::getSharedPtr ( )
inherited

Get another shared pointer to this object that has the same ownership group.

Wrapper around shared_from_this().

Definition at line 72 of file MooseObject.C.

73 {
74  try
75  {
76  return shared_from_this();
77  }
78  catch (std::bad_weak_ptr &)
79  {
80  mooseError(not_shared_error);
81  }
82 }
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.

◆ getSharedPtr() [2/2]

std::shared_ptr< const MooseObject > MooseObject::getSharedPtr ( ) const
inherited

Definition at line 85 of file MooseObject.C.

86 {
87  try
88  {
89  return shared_from_this();
90  }
91  catch (std::bad_weak_ptr &)
92  {
93  mooseError(not_shared_error);
94  }
95 }
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.

◆ getSolution()

template<typename OutputType >
const NumericVector< Number > & MooseVariableField< OutputType >::getSolution ( const Moose::StateArg state) const
protectedinherited

Get the solution corresponding to the provided state.

Definition at line 60 of file MooseVariableField.C.

61 {
62  // It's not safe to use solutionState(0) because it returns the libMesh System solution member
63  // which is wrong during things like finite difference Jacobian evaluation, e.g. when PETSc
64  // perturbs the solution vector we feed these perturbations into the current_local_solution
65  // while the libMesh solution is frozen in the non-perturbed state
66  return (state.state == 0) ? *this->_sys.currentSolution()
67  : this->_sys.solutionState(state.state, state.iteration_type);
68 }
virtual const NumericVector< Number > *const & currentSolution() const =0
The solution vector that is currently being operated on.
virtual NumericVector< Number > & solutionState(const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time)
Get a state of the solution (0 = current, 1 = old, 2 = older, etc).
Definition: SystemBase.C:1380
SystemBase & _sys
System this variable is part of.
SolutionIterationType iteration_type
The solution iteration type, e.g. time or nonlinear.
unsigned int state
The state.

◆ getValue()

template<typename OutputType >
OutputType MooseVariableFE< OutputType >::getValue ( const Elem *  elem,
const std::vector< std::vector< OutputShape >> &  phi 
) const

Compute the variable value at a point on an element.

Parameters
elemThe element we are computing on
phiEvaluated shape functions at a point
Returns
The variable value

Definition at line 451 of file MooseVariableFE.C.

Referenced by GapValueAux::computeValue(), and PenetrationThread::smoothNormal().

453 {
454  std::vector<dof_id_type> dof_indices;
455  this->_dof_map.dof_indices(elem, dof_indices, _var_num);
456 
457  OutputType value = 0;
458  if (isNodal())
459  {
460  mooseAssert(dof_indices.size() == phi.size(),
461  "The number of shapes does not match the number of dof indices on the elem");
462 
463  for (unsigned int i = 0; i < dof_indices.size(); ++i)
464  {
465  // The zero index is because we only have one point that the phis are evaluated at
466  value += phi[i][0] * (*this->_sys.currentSolution())(dof_indices[i]);
467  }
468  }
469  else
470  {
471  mooseAssert(dof_indices.size() == 1, "Wrong size for dof indices");
472  value = (*this->_sys.currentSolution())(dof_indices[0]);
473  }
474 
475  return value;
476 }
virtual const NumericVector< Number > *const & currentSolution() const =0
The solution vector that is currently being operated on.
const DofMap & _dof_map
DOF map.
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)
SystemBase & _sys
System this variable is part of.
const FieldVariablePhiValue & phi() const override
Return the variable&#39;s elemental shape functions.
bool isNodal() const override
Is this variable nodal.
unsigned int _var_num
variable number (from libMesh)

◆ gradDot() [1/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const ElemArg elem,
const StateArg state 
) const
inherited

Same as their evaluateGradDot overloads with the same arguments but allows for caching implementation.

These are the methods a user will call in their code

Definition at line 924 of file MooseFunctor.h.

925 {
926  return evaluateGradDot(elem, state);
927 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437

◆ gradDot() [2/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const FaceArg face,
const StateArg state 
) const
inherited

Definition at line 931 of file MooseFunctor.h.

932 {
933  return evaluateGradDot(checkFace(face), state);
934 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437
Moose::FaceArg checkFace(const Moose::FaceArg &face) const
Examines the incoming face argument.
Definition: MooseFunctor.h:723

◆ gradDot() [3/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const ElemQpArg qp,
const StateArg state 
) const
inherited

Definition at line 938 of file MooseFunctor.h.

939 {
940  return evaluateGradDot(elem_qp, state);
941 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437

◆ gradDot() [4/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const ElemSideQpArg qp,
const StateArg state 
) const
inherited

Definition at line 945 of file MooseFunctor.h.

946 {
947  return evaluateGradDot(elem_side_qp, state);
948 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437

◆ gradDot() [5/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const ElemPointArg elem_point,
const StateArg state 
) const
inherited

Definition at line 952 of file MooseFunctor.h.

953 {
954  return evaluateGradDot(elem_point, state);
955 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437

◆ gradDot() [6/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradDot ( const NodeArg node,
const StateArg state 
) const
inherited

Definition at line 959 of file MooseFunctor.h.

960 {
961  return evaluateGradDot(node, state);
962 }
virtual GradientType evaluateGradDot(const ElemArg &, const StateArg &) const
Evaluate the functor gradient-dot with a given element.
Definition: MooseFunctor.h:437

◆ gradient() [1/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const ElemArg elem,
const StateArg state 
) const
inherited

Same as their evaluateGradient overloads with the same arguments but allows for caching implementation.

These are the methods a user will call in their code

Definition at line 840 of file MooseFunctor.h.

Referenced by MooseVariableFV< Real >::evaluate().

841 {
842  return evaluateGradient(elem, state);
843 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330

◆ gradient() [2/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const FaceArg face,
const StateArg state 
) const
inherited

Definition at line 847 of file MooseFunctor.h.

848 {
849  return evaluateGradient(checkFace(face), state);
850 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330
Moose::FaceArg checkFace(const Moose::FaceArg &face) const
Examines the incoming face argument.
Definition: MooseFunctor.h:723

◆ gradient() [3/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const ElemQpArg qp,
const StateArg state 
) const
inherited

Definition at line 854 of file MooseFunctor.h.

855 {
856  return evaluateGradient(elem_qp, state);
857 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330

◆ gradient() [4/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const ElemSideQpArg qp,
const StateArg state 
) const
inherited

Definition at line 861 of file MooseFunctor.h.

862 {
863  return evaluateGradient(elem_side_qp, state);
864 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330

◆ gradient() [5/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const ElemPointArg elem_point,
const StateArg state 
) const
inherited

Definition at line 868 of file MooseFunctor.h.

869 {
870  return evaluateGradient(elem_point, state);
871 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330

◆ gradient() [6/6]

FunctorBase< Moose::ADType< OutputType >::type >::GradientType Moose::FunctorBase< Moose::ADType< OutputType >::type >::gradient ( const NodeArg node,
const StateArg state 
) const
inherited

Definition at line 875 of file MooseFunctor.h.

876 {
877  return evaluateGradient(node, state);
878 }
virtual GradientType evaluateGradient(const ElemArg &, const StateArg &) const
Evaluate the functor gradient with a given element.
Definition: MooseFunctor.h:330

◆ gradPhi()

template<typename OutputType>
const FieldVariablePhiGradient& MooseVariableFE< OutputType >::gradPhi ( ) const
inlinefinaloverridevirtual

Return the gradients of the variable's elemental shape functions.

Implements MooseVariableField< OutputType >.

Definition at line 191 of file MooseVariableFE.h.

192  {
193  return _element_data->gradPhi();
194  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradPhiFace()

template<typename OutputType>
const FieldVariablePhiGradient& MooseVariableFE< OutputType >::gradPhiFace ( ) const
inlinefinaloverridevirtual

Return the gradients of the variable's shape functions on an element face.

Implements MooseVariableField< OutputType >.

Definition at line 204 of file MooseVariableFE.h.

205  {
206  return _element_data->gradPhiFace();
207  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradPhiFaceNeighbor()

template<typename OutputType>
const FieldVariablePhiGradient& MooseVariableFE< OutputType >::gradPhiFaceNeighbor ( ) const
inlinefinaloverridevirtual

Return the gradients of the variable's shape functions on a neighboring element face.

Implements MooseVariableField< OutputType >.

Definition at line 233 of file MooseVariableFE.h.

234  {
235  return _neighbor_data->gradPhiFace();
236  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradPhiLower()

template<typename OutputType>
const FieldVariablePhiGradient& MooseVariableFE< OutputType >::gradPhiLower ( ) const
inline

Definition at line 246 of file MooseVariableFE.h.

246 { return _lower_data->gradPhi(); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ gradPhiNeighbor()

template<typename OutputType>
const FieldVariablePhiGradient& MooseVariableFE< OutputType >::gradPhiNeighbor ( ) const
inlinefinaloverridevirtual

Return the gradients of the variable's shape functions on a neighboring element.

Implements MooseVariableField< OutputType >.

Definition at line 217 of file MooseVariableFE.h.

218  {
219  return _neighbor_data->gradPhi();
220  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSln()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSln ( ) const
inlineoverridevirtual

element gradients

Implements MooseVariableField< OutputType >.

Definition at line 290 of file MooseVariableFE.h.

291  {
292  return _element_data->gradSln(Moose::Current);
293  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnDot()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnDot ( ) const
inline

element gradient dots

Definition at line 308 of file MooseVariableFE.h.

308 { return _element_data->gradSlnDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnDotDot()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnDotDot ( ) const
inline

Definition at line 309 of file MooseVariableFE.h.

309 { return _element_data->gradSlnDotDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnNeighbor()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnNeighbor ( ) const
inlineoverridevirtual

neighbor solution gradients

Implements MooseVariableField< OutputType >.

Definition at line 413 of file MooseVariableFE.h.

414  {
415  return _neighbor_data->gradSln(Moose::Current);
416  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSlnNeighborDot()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnNeighborDot ( ) const
inline

neighbor grad dots

Definition at line 431 of file MooseVariableFE.h.

431 { return _neighbor_data->gradSlnDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSlnNeighborDotDot()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnNeighborDotDot ( ) const
inline

Definition at line 432 of file MooseVariableFE.h.

433  {
434  return _neighbor_data->gradSlnDotDot();
435  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSlnOld()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnOld ( ) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 294 of file MooseVariableFE.h.

295  {
296  return _element_data->gradSln(Moose::Old);
297  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnOlder()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnOlder ( ) const
inline

Definition at line 298 of file MooseVariableFE.h.

299  {
300  return _element_data->gradSln(Moose::Older);
301  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnOlderNeighbor()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnOlderNeighbor ( ) const
inline

Definition at line 421 of file MooseVariableFE.h.

422  {
423  return _neighbor_data->gradSln(Moose::Older);
424  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSlnOldNeighbor()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnOldNeighbor ( ) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 417 of file MooseVariableFE.h.

418  {
419  return _neighbor_data->gradSln(Moose::Old);
420  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ gradSlnPreviousNL()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnPreviousNL ( ) const
inline

Definition at line 302 of file MooseVariableFE.h.

303  {
304  return _element_data->gradSln(Moose::PreviousNL);
305  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ gradSlnPreviousNLNeighbor()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::gradSlnPreviousNLNeighbor ( ) const
inline

Definition at line 425 of file MooseVariableFE.h.

426  {
427  return _neighbor_data->gradSln(Moose::PreviousNL);
428  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ hasBlockMaterialProperty()

template<typename T , bool is_ad>
bool BlockRestrictable::hasBlockMaterialProperty ( const std::string &  prop_name)
inherited

Check if a material property is valid for all blocks of this object.

This method returns true if the supplied property name has been declared in a Material object on the block ids for this object.

Template Parameters
TThe type of material property
Parameters
prop_namethe name of the property to query
Returns
true if the property exists for all block ids of the object, otherwise false
See also
Material::hasBlockMaterialProperty

Definition at line 264 of file BlockRestrictable.h.

265 {
266  mooseAssert(_blk_material_data != NULL, "MaterialData pointer is not defined");
267  return hasBlockMaterialPropertyHelper(prop_name) &&
268  _blk_material_data->haveGenericProperty<T, is_ad>(prop_name);
269 }
bool haveGenericProperty(const std::string &prop_name) const
Definition: MaterialData.h:253
const MaterialData * _blk_material_data
Pointer to the MaterialData class for this object.
virtual bool hasBlockMaterialPropertyHelper(const std::string &prop_name)
A helper method to allow the Material object to specialize the behavior of hasBlockMaterialProperty.

◆ hasBlockMaterialPropertyHelper()

bool BlockRestrictable::hasBlockMaterialPropertyHelper ( const std::string &  prop_name)
protectedvirtualinherited

A helper method to allow the Material object to specialize the behavior of hasBlockMaterialProperty.

It also avoid circular #include problems.

See also
hasBlockMaterialProperty

Definition at line 275 of file BlockRestrictable.C.

Referenced by BlockRestrictable::hasBlockMaterialProperty().

276 {
277 
278  // Reference to MaterialWarehouse for testing and retrieving block ids
280 
281  // Complete set of ids that this object is active
282  const std::set<SubdomainID> & ids = blockRestricted() ? blockIDs() : meshBlockIDs();
283 
284  // Loop over each id for this object
285  for (const auto & id : ids)
286  {
287  // Storage of material properties that have been DECLARED on this id
288  std::set<std::string> declared_props;
289 
290  // If block materials exist, populated the set of properties that were declared
291  if (warehouse.hasActiveBlockObjects(id))
292  {
293  const std::vector<std::shared_ptr<MaterialBase>> & mats = warehouse.getActiveBlockObjects(id);
294  for (const auto & mat : mats)
295  {
296  const std::set<std::string> & mat_props = mat->getSuppliedItems();
297  declared_props.insert(mat_props.begin(), mat_props.end());
298  }
299  }
300 
301  // If the supplied property is not in the list of properties on the current id, return false
302  if (declared_props.find(prop_name) == declared_props.end())
303  return false;
304  }
305 
306  // If you get here the supplied property is defined on all blocks
307  return true;
308 }
bool hasActiveBlockObjects(THREAD_ID tid=0) const
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
FEProblemBase * _blk_feproblem
Pointer to FEProblemBase.
virtual const std::set< SubdomainID > & blockIDs() const
Return the block subdomain ids for this object Note, if this is not block restricted, this function returns all mesh subdomain ids.
virtual bool blockRestricted() const
Returns true if this object has been restricted to a block.
MaterialBase objects are special in that they have additional objects created automatically (see FEPr...
const MaterialWarehouse & getMaterialWarehouse() const
const std::set< SubdomainID > & meshBlockIDs() const
Return all of the SubdomainIDs for the mesh.

◆ hasBlocks() [1/5]

bool BlockRestrictable::hasBlocks ( const SubdomainName &  name) const
inherited

Test if the supplied block name is valid for this object.

Parameters
nameA SubdomainName to check
Returns
True if the given id is valid for this object

Definition at line 205 of file BlockRestrictable.C.

Referenced by LinearFVFluxKernel::addMatrixContribution(), DiracKernelBase::addPoint(), LinearFVFluxKernel::addRightHandSideContribution(), MultiAppVariableValueSamplePostprocessorTransfer::cacheElemToPostprocessorData(), DomainUserObject::checkVariable(), ComputeJacobianThread::compute(), DomainUserObject::DomainUserObject(), ExtraIDIntegralVectorPostprocessor::execute(), MeshDivisionFunctorReductionVectorPostprocessor::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), QuadraturePointMultiApp::fillPositions(), CentroidMultiApp::fillPositions(), BlockRestrictable::hasBlocks(), MooseVariableField< Real >::hasBlocks(), FVFluxKernel::hasFaceSide(), and PointwiseRenormalizeVector::PointwiseRenormalizeVector().

206 {
207  // Create a vector and utilize the getSubdomainIDs function, which
208  // handles the ANY_BLOCK_ID (getSubdomainID does not)
209  std::vector<SubdomainName> names(1);
210  names[0] = name;
211  return hasBlocks(_blk_mesh->getSubdomainIDs(names));
212 }
std::string name(const ElemQuality q)
std::vector< SubdomainID > getSubdomainIDs(const std::vector< SubdomainName > &subdomain_name) const
Get the associated subdomainIDs for the subdomain names that are passed in.
Definition: MooseMesh.C:1520
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.
MooseMesh * _blk_mesh
Pointer to Mesh.

◆ hasBlocks() [2/5]

bool BlockRestrictable::hasBlocks ( const std::vector< SubdomainName > &  names) const
inherited

Test if the supplied vector of block names are valid for this object.

Parameters
namesA vector of SubdomainNames to check
Returns
True if the given ids are valid for this object

Definition at line 215 of file BlockRestrictable.C.

216 {
217  return hasBlocks(_blk_mesh->getSubdomainIDs(names));
218 }
std::vector< SubdomainID > getSubdomainIDs(const std::vector< SubdomainName > &subdomain_name) const
Get the associated subdomainIDs for the subdomain names that are passed in.
Definition: MooseMesh.C:1520
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.
MooseMesh * _blk_mesh
Pointer to Mesh.

◆ hasBlocks() [3/5]

bool BlockRestrictable::hasBlocks ( const std::vector< SubdomainID > &  ids) const
inherited

Test if the supplied vector block ids are valid for this object.

Parameters
idsA vector of SubdomainIDs ids to check
Returns
True if all of the given ids are found within the ids for this object

Definition at line 230 of file BlockRestrictable.C.

231 {
232  std::set<SubdomainID> ids_set(ids.begin(), ids.end());
233  return hasBlocks(ids_set);
234 }
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.

◆ hasBlocks() [4/5]

bool BlockRestrictable::hasBlocks ( const std::set< SubdomainID > &  ids) const
inherited

Test if the supplied set of block ids are valid for this object.

Parameters
idsA std::set of SubdomainIDs to check
Returns
True if all of the given ids are found within the ids for this object
See also
isSubset

Definition at line 237 of file BlockRestrictable.C.

238 {
239  if (_blk_ids.empty() || _blk_ids.find(Moose::ANY_BLOCK_ID) != _blk_ids.end())
240  return true;
241  else
242  return std::includes(_blk_ids.begin(), _blk_ids.end(), ids.begin(), ids.end());
243 }
const SubdomainID ANY_BLOCK_ID
Definition: MooseTypes.C:19
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)

◆ hasBlocks() [5/5]

template<typename OutputType>
bool MooseVariableField< OutputType >::hasBlocks ( const SubdomainID  ) const
inlineoverridevirtualinherited

Returns whether the functor is defined on this block.

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 382 of file MooseVariableField.h.

Referenced by Coupleable::checkWritableVar(), GradientJumpIndicator::computeQpIntegral(), ProjectionAux::computeValue(), ProjectionAux::elemOnNodeVariableIsDefinedOn(), FVInterfaceKernel::FVInterfaceKernel(), and ComputeLinearFVGreenGaussGradientVolumeThread::operator()().

382 { return BlockRestrictable::hasBlocks(id); }
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.

◆ hasDoFsOnNodes()

template<typename OutputType>
bool MooseVariableFE< OutputType >::hasDoFsOnNodes ( ) const
inlineoverridevirtual

Does this variable have DoFs on nodes.

Returns
true if it does, false if not.

Reimplemented from MooseVariableBase.

Definition at line 148 of file MooseVariableFE.h.

148 { return _element_data->hasDoFsOnNodes(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ hasFaceSide()

bool Moose::FunctorBase< Moose::ADType< OutputType >::type >::hasFaceSide ( const FaceInfo fi,
const bool  fi_elem_side 
) const
overridevirtualinherited

Implements FaceArgInterface.

Definition at line 966 of file MooseFunctor.h.

967 {
968  if (fi_elem_side)
969  return hasBlocks(fi.elem().subdomain_id());
970  else
971  return fi.neighborPtr() && hasBlocks(fi.neighbor().subdomain_id());
972 }
virtual bool hasBlocks(SubdomainID) const
Returns whether the functor is defined on this block.
Definition: MooseFunctor.h:235
const Elem & elem() const
Definition: FaceInfo.h:80
const Elem * neighborPtr() const
Definition: FaceInfo.h:83
const Elem & neighbor() const
Definition: FaceInfo.h:207

◆ increment()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::increment ( ) const
inline

Definition at line 264 of file MooseVariableFE.h.

264 { return _element_data->increment(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ initializeBlockRestrictable()

void BlockRestrictable::initializeBlockRestrictable ( const MooseObject moose_object)
protectedinherited

An initialization routine needed for dual constructors.

Definition at line 74 of file BlockRestrictable.C.

Referenced by BlockRestrictable::BlockRestrictable().

75 {
76  // If the mesh pointer is not defined, but FEProblemBase is, get it from there
77  if (_blk_feproblem != NULL && _blk_mesh == NULL)
79 
80  // Check that the mesh pointer was defined, it is required for this class to operate
81  if (_blk_mesh == NULL)
82  mooseError("The input parameters must contain a pointer to FEProblem via '_fe_problem' or a "
83  "pointer to the MooseMesh via '_mesh'");
84 
85  // Populate the MaterialData pointer
86  if (_blk_feproblem != NULL)
88 
89  // The 'block' input is defined
90  if (moose_object->isParamValid("block"))
91  {
92  // Extract the blocks from the input
93  _blocks = moose_object->getParam<std::vector<SubdomainName>>("block");
94 
95  // Store the IDs in a set, handling ANY_BLOCK_ID if supplied
96  if (std::find(_blocks.begin(), _blocks.end(), "ANY_BLOCK_ID") != _blocks.end())
98  else
99  {
100  // Get the IDs from the supplied names
102  _blk_ids.insert(_vec_ids.begin(), _vec_ids.end());
103  }
104  }
105 
106  // When 'blocks' is not set and there is a "variable", use the blocks from the variable
107  else if (moose_object->isParamValid("variable"))
108  {
109  std::string variable_name = moose_object->parameters().getMooseType("variable");
110  if (!variable_name.empty())
112  ->getVariable(_blk_tid,
113  variable_name,
116  .activeSubdomains();
117  }
118 
119  // Produce error if the object is not allowed to be both block and boundary restricted
120  if (!_blk_dual_restrictable && !_boundary_ids.empty() && !_boundary_ids.empty())
121  if (!_boundary_ids.empty() && _boundary_ids.find(Moose::ANY_BOUNDARY_ID) == _boundary_ids.end())
122  moose_object->paramError("block",
123  "Attempted to restrict the object '",
124  _blk_name,
125  "' to a block, but the object is already restricted by boundary");
126 
127  // If no blocks were defined above, specify that it is valid on all blocks
128  if (_blk_ids.empty() && !moose_object->isParamValid("boundary"))
129  {
131  _blocks = {"ANY_BLOCK_ID"};
132  }
133 
134  // If this object is block restricted, check that defined blocks exist on the mesh
135  if (_blk_ids.find(Moose::ANY_BLOCK_ID) == _blk_ids.end())
136  {
137  const std::set<SubdomainID> & valid_ids = _blk_mesh->meshSubdomains();
138  std::vector<SubdomainID> diff;
139 
140  std::set_difference(_blk_ids.begin(),
141  _blk_ids.end(),
142  valid_ids.begin(),
143  valid_ids.end(),
144  std::back_inserter(diff));
145 
146  if (!diff.empty())
147  {
148  std::ostringstream msg;
149  auto sep = " ";
150  msg << "the following blocks (ids) do not exist on the mesh:";
151  for (const auto & id : diff)
152  {
153  if (_blk_name.size() > 0)
154  {
155  auto & name =
156  _blocks.at(std::find(_vec_ids.begin(), _vec_ids.end(), id) - _vec_ids.begin());
157  if (std::to_string(id) != name)
158  msg << sep << name << " (" << id << ")";
159  else
160  msg << sep << id;
161  }
162  else
163  msg << sep << id;
164  sep = ", ";
165  }
166  moose_object->paramError("block", msg.str());
167  }
168  }
169 
170  // Get the mesh dimension for the blocks
171  if (blockRestricted())
173  else
175 }
std::string name(const ElemQuality q)
std::string getMooseType(const std::string &name) const
Utility functions for retrieving one of the MooseTypes variables into the common "string" base class...
unsigned int _blk_dim
Largest mesh dimension of the elements in the blocks for this object.
const bool _blk_dual_restrictable
Flag for allowing dual restriction.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299
MaterialData & getMaterialData(Moose::MaterialDataType type, const THREAD_ID tid=0)
FEProblemBase * _blk_feproblem
Pointer to FEProblemBase.
virtual bool blockRestricted() const
Returns true if this object has been restricted to a block.
bool isParamValid(const std::string &name) const
Test if the supplied parameter is valid.
std::vector< SubdomainID > _vec_ids
Vector of block ids supplied by the user via the input file (for error reporting) ...
virtual unsigned int dimension() const
Returns MeshBase::mesh_dimension(), (not MeshBase::spatial_dimension()!) of the underlying libMesh me...
Definition: MooseMesh.C:2679
const T & getParam(const std::string &name) const
Retrieve a parameter for the object.
THREAD_ID _blk_tid
Thread id for this object.
std::vector< SubdomainName > _blocks
Vector the block names supplied by the user via the input file.
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
const SubdomainID ANY_BLOCK_ID
Definition: MooseTypes.C:19
unsigned int getBlocksMaxDimension(const std::vector< SubdomainName > &blocks) const
Returns the maximum element dimension on the given blocks.
Definition: MooseMesh.C:2700
const MaterialData * _blk_material_data
Pointer to the MaterialData class for this object.
virtual MooseMesh & mesh() override
const std::set< BoundaryID > & _boundary_ids
Reference to the boundary_ids, defaults to an empty set if not provided.
const InputParameters & parameters() const
Get the parameters of the object.
std::vector< SubdomainID > getSubdomainIDs(const std::vector< SubdomainName > &subdomain_name) const
Get the associated subdomainIDs for the subdomain names that are passed in.
Definition: MooseMesh.C:1520
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)
const std::string & _blk_name
Name of the object.
MooseMesh * _blk_mesh
Pointer to Mesh.
const BoundaryID ANY_BOUNDARY_ID
Definition: MooseTypes.C:23
const std::set< SubdomainID > & meshSubdomains() const
Returns a read-only reference to the set of subdomains currently present in the Mesh.
Definition: MooseMesh.C:2922

◆ initialSetup()

void MooseVariableBase::initialSetup ( )
overridevirtualinherited

Gets called at the beginning of the simulation before this object is asked to do its job.

Reimplemented from SetupInterface.

Reimplemented in MooseLinearVariableFV< ComputeValueType >, MooseLinearVariableFV< T >, MooseLinearVariableFV< RealEigenVector >, MooseLinearVariableFV< RealVectorValue >, and MooseLinearVariableFV< Real >.

Definition at line 199 of file MooseVariableBase.C.

Referenced by MooseLinearVariableFV< Real >::initialSetup().

200 {
201  // Currently the scaling vector is only used through AD residual computing objects
203  (_subproblem.automaticScaling() || (std::find_if(_scaling_factor.begin(),
204  _scaling_factor.end(),
205  [](const Real element) {
207  element, 1.);
208  }) != _scaling_factor.end())))
209 
211 }
virtual void haveADObjects(bool have_ad_objects)
Method for setting whether we have any ad objects.
Definition: SubProblem.h:737
bool absoluteFuzzyEqual(const T &var1, const T2 &var2, const T3 &tol=libMesh::TOLERANCE *libMesh::TOLERANCE)
Function to check whether two variables are equal within an absolute tolerance.
Definition: MooseUtils.h:346
void addScalingVector()
Add the scaling factor vector to the system.
Definition: SystemBase.C:1470
SubProblem & _subproblem
Problem this variable is part of.
SystemBase & _sys
System this variable is part of.
std::vector< Real > _scaling_factor
scaling factor for this variable
Moose::VarKindType _var_kind
Variable type (see MooseTypes.h)
virtual void automaticScaling(bool automatic_scaling)
Automatic scaling setter.
Definition: SubProblem.C:1112
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ insert()

template<typename OutputType >
void MooseVariableFE< OutputType >::insert ( NumericVector< Number > &  vector)
overridevirtual

Set the current local DOF values to the input vector.

Implements MooseVariableFieldBase.

Definition at line 207 of file MooseVariableFE.C.

208 {
209  _element_data->insert(vector);
210 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ insertLower()

template<typename OutputType >
void MooseVariableFE< OutputType >::insertLower ( NumericVector< Number > &  vector)
overridevirtual

Insert the currently cached degree of freedom values for a lower-dimensional element into the provided vector.

Implements MooseVariableFieldBase.

Definition at line 214 of file MooseVariableFE.C.

215 {
216  _lower_data->insert(vector);
217 }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ insertNodalValue()

template<typename OutputType >
void MooseVariableFE< OutputType >::insertNodalValue ( NumericVector< Number > &  residual,
const OutputData v 
)

Write a nodal value to the passed-in solution vector.

Definition at line 707 of file MooseVariableFE.C.

Referenced by TaggingInterface::setResidual().

709 {
710  _element_data->insertNodalValue(residual, v);
711 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ isArray()

template<typename OutputType >
bool MooseVariableField< OutputType >::isArray ( ) const
overridevirtualinherited
Returns
true if this is an array variable, false otherwise.

Implements MooseVariableFieldBase.

Definition at line 86 of file MooseVariableField.C.

87 {
88  return std::is_same<OutputType, RealEigenVector>::value;
89 }

◆ isBlockSubset() [1/2]

bool BlockRestrictable::isBlockSubset ( const std::set< SubdomainID > &  ids) const
inherited

Test if the class block ids are a subset of the supplied objects.

Parameters
idsA std::set of Subdomains to check
Returns
True if all of the block ids for this class are found within the given ids (opposite of hasBlocks)
See also
hasBlocks

Definition at line 246 of file BlockRestrictable.C.

Referenced by BlockRestrictable::checkVariable(), BlockRestrictable::isBlockSubset(), NodalPatchRecoveryAux::NodalPatchRecoveryAux(), and ProjectedMaterialPropertyNodalPatchRecoveryAux::ProjectedMaterialPropertyNodalPatchRecoveryAux().

247 {
248  // An empty input is assumed to be ANY_BLOCK_ID
249  if (ids.empty() || ids.find(Moose::ANY_BLOCK_ID) != ids.end())
250  return true;
251 
252  if (_blk_ids.find(Moose::ANY_BLOCK_ID) != _blk_ids.end())
253  return std::includes(ids.begin(),
254  ids.end(),
255  _blk_mesh->meshSubdomains().begin(),
256  _blk_mesh->meshSubdomains().end());
257  else
258  return std::includes(ids.begin(), ids.end(), _blk_ids.begin(), _blk_ids.end());
259 }
const SubdomainID ANY_BLOCK_ID
Definition: MooseTypes.C:19
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)
MooseMesh * _blk_mesh
Pointer to Mesh.
const std::set< SubdomainID > & meshSubdomains() const
Returns a read-only reference to the set of subdomains currently present in the Mesh.
Definition: MooseMesh.C:2922

◆ isBlockSubset() [2/2]

bool BlockRestrictable::isBlockSubset ( const std::vector< SubdomainID > &  ids) const
inherited

Test if the class block ids are a subset of the supplied objects.

Parameters
idsA std::vector of Subdomains to check
Returns
True if all of the block ids for this class are found within the given ids (opposite of hasBlocks)
See also
hasBlocks

Definition at line 262 of file BlockRestrictable.C.

263 {
264  std::set<SubdomainID> ids_set(ids.begin(), ids.end());
265  return isBlockSubset(ids_set);
266 }
bool isBlockSubset(const std::set< SubdomainID > &ids) const
Test if the class block ids are a subset of the supplied objects.

◆ isConstant()

virtual bool Moose::FunctorBase< Moose::ADType< OutputType >::type >::isConstant ( ) const
inlinevirtualinherited

Returns true if this functor is a constant.

Definition at line 258 of file MooseFunctor.h.

258 { return false; }

◆ isExtrapolatedBoundaryFace()

virtual bool Moose::FunctorBase< Moose::ADType< OutputType >::type >::isExtrapolatedBoundaryFace ( const FaceInfo ,
const Elem *  ,
const StateArg  
) const
inlinevirtualinherited

Returns whether this (sided) face is an extrapolated boundary face for this functor.

Reimplemented in MooseVariableFV< OutputType >, and MooseLinearVariableFV< OutputType >.

Definition at line 245 of file MooseFunctor.h.

246  {
247  mooseError("not implemented");
248  }
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
Definition: MooseError.h:299

◆ isFV()

virtual bool MooseVariableFieldBase::isFV ( ) const
inlinevirtualinherited

◆ isInternalFace()

bool Moose::FunctorBase< Moose::ADType< OutputType >::type >::isInternalFace ( const FaceInfo fi) const
inherited

Returns true if the face is an internal face.

Definition at line 564 of file MooseFunctor.h.

565 {
566  if (!fi.neighborPtr())
567  return false;
568 
569  return hasBlocks(fi.elem().subdomain_id()) && hasBlocks(fi.neighborPtr()->subdomain_id());
570 }
virtual bool hasBlocks(SubdomainID) const
Returns whether the functor is defined on this block.
Definition: MooseFunctor.h:235
const Elem & elem() const
Definition: FaceInfo.h:80
const Elem * neighborPtr() const
Definition: FaceInfo.h:83

◆ isLowerD()

bool MooseVariableBase::isLowerD ( ) const
inlineinherited
Returns
whether this variable lives on lower dimensional blocks

Definition at line 183 of file MooseVariableBase.h.

183 { return _is_lower_d; }
bool _is_lower_d
Whether this variable lives on lower dimensional blocks.

◆ isNodal()

template<typename OutputType>
bool MooseVariableFE< OutputType >::isNodal ( ) const
inlineoverridevirtual

Is this variable nodal.

Returns
true if it nodal, otherwise false

Reimplemented from MooseVariableBase.

Definition at line 147 of file MooseVariableFE.h.

Referenced by ProjectionAux::computeValue(), and MortarConstraintBase::zeroInactiveLMDofs().

147 { return _element_data->isNodal(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ isNodalDefined()

template<typename OutputType >
bool MooseVariableFE< OutputType >::isNodalDefined ( ) const
overridevirtual

Is this variable defined at nodes.

Returns
true if it the variable is defined at nodes, otherwise false

Implements MooseVariableFieldBase.

Definition at line 827 of file MooseVariableFE.C.

Referenced by ArrayNodalBC::computeJacobian(), NodalBC::computeJacobian(), ADNodalKernel::computeJacobian(), NodalKernel::computeJacobian(), ArrayNodalBC::computeOffDiagJacobian(), NodalBC::computeOffDiagJacobian(), NodalKernel::computeOffDiagJacobian(), ArrayNodalBC::computeResidual(), TimeNodalKernel::computeResidual(), NodalBC::computeResidual(), NodalKernel::computeResidual(), ADNodalKernel::computeResidual(), and DirichletBCBase::computeValue().

828 {
829  return _element_data->isNodalDefined();
830 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ isNodalNeighborDefined()

template<typename OutputType >
bool MooseVariableFE< OutputType >::isNodalNeighborDefined ( ) const

Definition at line 834 of file MooseVariableFE.C.

835 {
836  return _neighbor_data->isNodalDefined();
837 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ isParamSetByUser()

bool MooseBaseParameterInterface::isParamSetByUser ( const std::string &  nm) const
inlineinherited

◆ isParamValid()

bool MooseBaseParameterInterface::isParamValid ( const std::string &  name) const
inlineinherited

Test if the supplied parameter is valid.

Parameters
nameThe name of the parameter to test

Definition at line 111 of file MooseBaseParameterInterface.h.

Referenced by CopyNodalVarsAction::act(), SetupMeshAction::act(), ComposeTimeStepperAction::act(), SetupDebugAction::act(), CreateDisplacedProblemAction::act(), SetAdaptivityOptionsAction::act(), CommonOutputAction::act(), ADConservativeAdvectionBC::ADConservativeAdvectionBC(), DiffusionCG::addFEBCs(), DiffusionCG::addFEKernels(), DiffusionFV::addFVBCs(), DiffusionFV::addFVKernels(), DiffusionCG::addNonlinearVariables(), AdvectiveFluxAux::AdvectiveFluxAux(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), AddPeriodicBCAction::autoTranslationBoundaries(), BicubicSplineFunction::BicubicSplineFunction(), BlockDeletionGenerator::BlockDeletionGenerator(), PiecewiseTabularBase::buildFromFile(), PiecewiseTabularBase::buildFromJSON(), GeneratedMesh::buildMesh(), CartesianGridDivision::CartesianGridDivision(), CartesianMeshGenerator::CartesianMeshGenerator(), PhysicsBase::checkParamsBothSetOrNotSet(), PhysicsBase::checkVectorParamsSameLength(), LibmeshPartitioner::clone(), OversampleOutput::cloneMesh(), CombinerGenerator::CombinerGenerator(), CSVReaderVectorPostprocessor::CSVReaderVectorPostprocessor(), CutMeshByPlaneGenerator::CutMeshByPlaneGenerator(), ConstantReporter::declareConstantReporterValues(), DGKernelBase::DGKernelBase(), DiffusionFluxAux::DiffusionFluxAux(), DomainUserObject::DomainUserObject(), DynamicObjectRegistrationAction::DynamicObjectRegistrationAction(), Eigenvalue::Eigenvalue(), ElementExtremeFunctorValueTempl< is_ad >::ElementExtremeFunctorValueTempl(), ElementExtremeValue::ElementExtremeValue(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), PIDTransientControl::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppUserObjectTransfer::execute(), Exodus::Exodus(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), FEProblemBase::FEProblemBase(), FEProblemSolve::FEProblemSolve(), FieldSplitPreconditioner::FieldSplitPreconditioner(), FileOutput::FileOutput(), SpatialUserObjectVectorPostprocessor::fillPoints(), CombinerGenerator::fillPositions(), MultiApp::fillPositions(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FunctionDT::FunctionDT(), FunctionValuePostprocessor::FunctionValuePostprocessor(), FVInterfaceKernel::FVInterfaceKernel(), FVMassMatrix::FVMassMatrix(), ExtraNodesetGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), SubdomainPerElementGenerator::generate(), AddMetaDataGenerator::generate(), BreakBoundaryOnSubdomainGenerator::generate(), FileMeshGenerator::generate(), ParsedSubdomainMeshGenerator::generate(), BlockDeletionGenerator::generate(), GeneratedMeshGenerator::generate(), MeshExtruderGenerator::generate(), XYDelaunayGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), DistributedRectilinearMeshGenerator::generate(), MultiAppNearestNodeTransfer::getLocalEntitiesAndComponents(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), MooseBaseParameterInterface::getRenamedParam(), MultiAppNearestNodeTransfer::getTargetLocalNodes(), Terminator::handleMessage(), HFEMDirichletBC::HFEMDirichletBC(), EigenExecutionerBase::init(), IterationAdaptiveDT::init(), Eigenvalue::init(), AdvancedOutput::initExecutionTypes(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), MultiAppCloneReporterTransfer::initialSetup(), MultiAppVariableValueSampleTransfer::initialSetup(), PiecewiseTabularBase::initialSetup(), SolutionScalarAux::initialSetup(), SolutionAux::initialSetup(), Console::initialSetup(), MooseParsedVectorFunction::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), MooseParsedGradFunction::initialSetup(), MooseParsedFunction::initialSetup(), IterationAdaptiveDT::IterationAdaptiveDT(), LeastSquaresFit::LeastSquaresFit(), LibmeshPartitioner::LibmeshPartitioner(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), MassMatrix::MassMatrix(), MatCoupledForce::MatCoupledForce(), MatDiffusionBase< Real >::MatDiffusionBase(), MooseMesh::MooseMesh(), MoosePreconditioner::MoosePreconditioner(), MooseVariableBase::MooseVariableBase(), MooseVariableFV< Real >::MooseVariableFV(), MortarConstraintBase::MortarConstraintBase(), MoveNodeGenerator::MoveNodeGenerator(), MultiApp::MultiApp(), MultiAppCloneReporterTransfer::MultiAppCloneReporterTransfer(), MultiAppGeneralFieldNearestLocationTransfer::MultiAppGeneralFieldNearestLocationTransfer(), MultiAppGeneralFieldShapeEvaluationTransfer::MultiAppGeneralFieldShapeEvaluationTransfer(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppPostprocessorInterpolationTransfer::MultiAppPostprocessorInterpolationTransfer(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), MultiAppReporterTransfer::MultiAppReporterTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), MultiAppVariableValueSampleTransfer::MultiAppVariableValueSampleTransfer(), NodalExtremeValue::NodalExtremeValue(), EigenExecutionerBase::normalizeSolution(), Output::Output(), MultiAppGeneralFieldTransfer::outputValueConflicts(), ParsedCurveGenerator::ParsedCurveGenerator(), PetscOutput::PetscOutput(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), PicardSolve::PicardSolve(), PIDTransientControl::PIDTransientControl(), PiecewiseTabularBase::PiecewiseTabularBase(), PlaneIDMeshGenerator::PlaneIDMeshGenerator(), MooseMesh::prepare(), MultiApp::readCommandLineArguments(), SolutionUserObject::readExodusII(), RenameBlockGenerator::RenameBlockGenerator(), RenameBoundaryGenerator::RenameBoundaryGenerator(), ReporterPointSource::ReporterPointSource(), MooseMesh::setCoordSystem(), FileOutput::setFileBase(), FileOutput::setFileBaseInternal(), Split::setup(), SideSetsGeneratorBase::setup(), SetupMeshAction::setupMesh(), SideDiffusiveFluxIntegralTempl< is_ad, Real >::SideDiffusiveFluxIntegralTempl(), SideExtremeValue::SideExtremeValue(), SideSetsGeneratorBase::SideSetsGeneratorBase(), SolutionUserObject::SolutionUserObject(), Terminator::Terminator(), TimeIntervalTimes::TimeIntervalTimes(), TimePeriod::TimePeriod(), MultiAppDofCopyTransfer::transfer(), TransformGenerator::TransformGenerator(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), and VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl().

111 { return _pars.isParamValid(name); }
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
bool isParamValid(const std::string &name) const
This method returns parameters that have been initialized in one fashion or another, i.e.

◆ isVector()

template<typename OutputType >
bool MooseVariableField< OutputType >::isVector ( ) const
overridevirtualinherited
Returns
true if this is a vector-valued element, false otherwise.

Implements MooseVariableFieldBase.

Definition at line 93 of file MooseVariableField.C.

94 {
95  return std::is_same<OutputType, RealVectorValue>::value;
96 }

◆ jacobianSetup()

template<typename OutputType >
void MooseVariableFE< OutputType >::jacobianSetup ( )
overridevirtual

Reimplemented from MooseVariableField< OutputType >.

Definition at line 1357 of file MooseVariableFE.C.

1358 {
1362 }
const unsigned int invalid_uint
virtual void jacobianSetup() override
std::pair< const Elem *, unsigned int > _current_elem_side_qp_functor_elem_side
Keep track of the current elem-side-qp functor element and side in order to enable local caching (e...
const Elem * _current_elem_qp_functor_elem
Keep track of the current elem-qp functor element in order to enable local caching (e...

◆ kind()

Moose::VarKindType MooseVariableBase::kind ( ) const
inlineinherited

◆ matrixTagValue()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::matrixTagValue ( TagID  tag) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 278 of file MooseVariableFE.h.

279  {
280  return _element_data->matrixTagValue(tag);
281  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ meshBlockIDs()

const std::set< SubdomainID > & BlockRestrictable::meshBlockIDs ( ) const
inherited

Return all of the SubdomainIDs for the mesh.

Returns
A set of all subdomians for the entire mesh

Definition at line 269 of file BlockRestrictable.C.

Referenced by BlockRestrictable::checkVariable(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), BlockRestrictable::getBlockCoordSystem(), BlockRestrictable::hasBlockMaterialPropertyHelper(), and SolutionIC::initialSetup().

270 {
271  return _blk_mesh->meshSubdomains();
272 }
MooseMesh * _blk_mesh
Pointer to Mesh.
const std::set< SubdomainID > & meshSubdomains() const
Returns a read-only reference to the set of subdomains currently present in the Mesh.
Definition: MooseMesh.C:2922

◆ meshChanged()

template<typename OutputType >
void MooseVariableFE< OutputType >::meshChanged ( )
overridevirtual

Called on this object when the mesh changes.

Reimplemented from MeshChangedInterface.

Definition at line 1339 of file MooseVariableFE.C.

1340 {
1344 }
const unsigned int invalid_uint
virtual void meshChanged()
Called on this object when the mesh changes.
std::pair< const Elem *, unsigned int > _current_elem_side_qp_functor_elem_side
Keep track of the current elem-side-qp functor element and side in order to enable local caching (e...
const Elem * _current_elem_qp_functor_elem
Keep track of the current elem-qp functor element in order to enable local caching (e...

◆ mooseDeprecated()

template<typename... Args>
void MooseBaseErrorInterface::mooseDeprecated ( Args &&...  args) const
inlineinherited

Definition at line 91 of file MooseBaseErrorInterface.h.

Referenced by FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), FEProblemBase::advanceMultiApps(), MultiApp::appProblem(), Executioner::augmentedPicardConvergenceCheck(), MooseMesh::buildSideList(), ChangeOverTimestepPostprocessor::ChangeOverTimestepPostprocessor(), FEProblemBase::computeResidual(), AddVariableAction::determineType(), EigenProblem::EigenProblem(), Eigenvalue::Eigenvalue(), MooseMesh::elem(), UserForcingFunction::f(), FaceFaceConstraint::FaceFaceConstraint(), FunctionDT::FunctionDT(), RandomICBase::generateRandom(), MooseMesh::getBoundariesToElems(), Control::getExecuteOptions(), FEProblemBase::getNonlinearSystem(), FEProblemBase::getUserObjects(), FEProblemBase::hasPostprocessor(), MatDiffusionBase< Real >::MatDiffusionBase(), MultiAppNearestNodeTransfer::MultiAppNearestNodeTransfer(), MultiAppShapeEvaluationTransfer::MultiAppShapeEvaluationTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), NodalScalarKernel::NodalScalarKernel(), MooseMesh::node(), FixedPointSolve::numPicardIts(), RelationshipManager::operator>=(), PercentChangePostprocessor::PercentChangePostprocessor(), Executioner::picardSolve(), ReferenceResidualProblem::ReferenceResidualProblem(), Residual::Residual(), MooseMesh::setBoundaryToNormalMap(), Exodus::setOutputDimension(), and UserForcingFunction::UserForcingFunction().

92  {
93  moose::internal::mooseDeprecatedStream(_console, false, true, std::forward<Args>(args)...);
94  }
void mooseDeprecatedStream(S &oss, const bool expired, const bool print_title, Args &&... args)
Definition: MooseError.h:236
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.

◆ mooseDocumentedError()

template<typename... Args>
void MooseBaseErrorInterface::mooseDocumentedError ( const std::string &  repo_name,
const unsigned int  issue_num,
Args &&...  args 
) const
inlineinherited

Emits a documented error with object name and type.

Documented errors are errors that have an issue associated with them.

The repository name repo_name links a named repository to a URL and should be registered at the application level with registerRepository(). See Moose.C for an example of the "moose" repository registration.

Parameters
repo_nameThe repository name where the issue resides
issue_numThe number of the issue
argsThe error message to be combined

Definition at line 61 of file MooseBaseErrorInterface.h.

64  {
65  std::ostringstream oss;
66  moose::internal::mooseStreamAll(oss, std::forward<Args>(args)...);
67  const auto msg = moose::internal::formatMooseDocumentedError(repo_name, issue_num, oss.str());
68  _moose_base.callMooseError(msg, /* with_prefix = */ true);
69  }
void mooseStreamAll(std::ostringstream &ss)
All of the following are not meant to be called directly - they are called by the normal macros (moos...
Definition: MooseError.C:92
const MooseBase & _moose_base
The MooseBase class deriving from this interface.
void callMooseError(std::string msg, const bool with_prefix) const
Calls moose error with the message msg.
Definition: MooseBase.C:33
std::string formatMooseDocumentedError(const std::string &repo_name, const unsigned int issue_num, const std::string &msg)
Formats a documented error.
Definition: MooseError.C:97

◆ mooseError()

template<typename... Args>
void MooseBaseErrorInterface::mooseError ( Args &&...  args) const
inlineinherited

Emits an error prefixed with object name and type.

Definition at line 29 of file MooseBaseErrorInterface.h.

Referenced by HierarchicalGridPartitioner::_do_partition(), PetscExternalPartitioner::_do_partition(), MultiAppGeneralFieldTransfer::acceptPointInOriginMesh(), InitProblemAction::act(), AddICAction::act(), AddMeshGeneratorAction::act(), CheckFVBCAction::act(), AddBoundsVectorsAction::act(), AddVectorPostprocessorAction::act(), SetupMeshCompleteAction::act(), CreateExecutionerAction::act(), AddFVICAction::act(), AutoCheckpointAction::act(), CheckIntegrityAction::act(), CreateProblemDefaultAction::act(), CreateProblemAction::act(), SetupMeshAction::act(), SplitMeshAction::act(), AdaptivityAction::act(), DeprecatedBlockAction::act(), SetupTimeStepperAction::act(), SetupPredictorAction::act(), AddTimeStepperAction::act(), MaterialDerivativeTestAction::act(), SetAdaptivityOptionsAction::act(), CreateDisplacedProblemAction::act(), AddPeriodicBCAction::act(), MaterialOutputAction::act(), CommonOutputAction::act(), Action::Action(), FEProblemBase::adaptMesh(), ADConservativeAdvectionBC::ADConservativeAdvectionBC(), FEProblemBase::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), DistributedRectilinearMeshGenerator::addElement(), FEProblemBase::addFunction(), SubProblem::addFunctor(), FEProblemBase::addFVInitialCondition(), ADDGKernel::ADDGKernel(), FEProblemBase::addInitialCondition(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addKernel(), FEProblem::addLineSearch(), FEProblemBase::addLineSearch(), MeshGenerator::addMeshSubgenerator(), FEProblemBase::addOutput(), SubProblem::addPiecewiseByBlockLambdaFunctor(), DiracKernelBase::addPoint(), DistributedRectilinearMeshGenerator::addPoint(), DiracKernelBase::addPointWithValidId(), FEProblemBase::addPostprocessor(), FEProblemBase::addPredictor(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), MooseMesh::addQuadratureNode(), Action::addRelationshipManager(), FEProblemBase::addReporter(), FEProblemBase::addScalarKernel(), AddVariableAction::addVariable(), FEProblemBase::addVectorPostprocessor(), SubProblem::addVectorTag(), MooseLinearVariableFV< Real >::adError(), ADInterfaceKernelTempl< T >::ADInterfaceKernelTempl(), ADPiecewiseLinearInterpolationMaterial::ADPiecewiseLinearInterpolationMaterial(), MooseVariableScalar::adUDot(), Output::advancedExecuteOn(), AdvectiveFluxAux::AdvectiveFluxAux(), MooseVariableBase::allDofIndices(), MultiApp::appPostprocessorValue(), MultiApp::appProblem(), MultiApp::appProblemBase(), MultiApp::appUserObjectBase(), ArrayConstantIC::ArrayConstantIC(), ArrayDGKernel::ArrayDGKernel(), ArrayDiffusion::ArrayDiffusion(), ArrayFunctionIC::ArrayFunctionIC(), ArrayParsedAux::ArrayParsedAux(), ArrayReaction::ArrayReaction(), ArrayTimeDerivative::ArrayTimeDerivative(), AddPeriodicBCAction::autoTranslationBoundaries(), AuxKernelTempl< Real >::AuxKernelTempl(), Function::average(), Axisymmetric2D3DSolutionFunction::Axisymmetric2D3DSolutionFunction(), BicubicSplineFunction::BicubicSplineFunction(), BlockDeletionGenerator::BlockDeletionGenerator(), BoundingValueElementDamper::BoundingValueElementDamper(), BoundingValueNodalDamper::BoundingValueNodalDamper(), BreakMeshByBlockGeneratorBase::BreakMeshByBlockGeneratorBase(), MooseMesh::buildCoarseningMap(), MultiApp::buildComm(), DistributedRectilinearMeshGenerator::buildCube(), PiecewiseTabularBase::buildFromFile(), PiecewiseTabularBase::buildFromJSON(), PiecewiseTabularBase::buildFromXY(), PiecewiseLinearBase::buildInterpolation(), MooseMesh::buildLowerDMesh(), TiledMesh::buildMesh(), GeneratedMesh::buildMesh(), SpiralAnnularMesh::buildMesh(), MeshGeneratorMesh::buildMesh(), ImageMeshGenerator::buildMesh3D(), ImageMesh::buildMesh3D(), MooseMesh::buildRefinementMap(), MaterialBase::buildRequiredMaterials(), MooseMesh::buildSideList(), MooseMesh::buildTypedMesh(), MooseMesh::cacheFaceInfoVariableOwnership(), CartesianGridDivision::CartesianGridDivision(), CartesianMeshGenerator::CartesianMeshGenerator(), UserObjectInterface::castUserObject(), ChangeOverFixedPointPostprocessor::ChangeOverFixedPointPostprocessor(), ChangeOverTimePostprocessor::ChangeOverTimePostprocessor(), EigenExecutionerBase::chebyshev(), SubProblem::checkBlockMatProps(), SubProblem::checkBoundaryMatProps(), MooseMesh::checkCoordinateSystems(), FEProblemBase::checkDependMaterialsHelper(), FEProblemBase::checkDisplacementOrders(), FEProblemBase::checkDuplicatePostprocessorVariableNames(), MooseMesh::checkDuplicateSubdomainNames(), FEProblemBase::checkExceptionAndStopSolve(), MaterialBase::checkExecutionStage(), MeshGenerator::checkGetMesh(), ReporterTransferInterface::checkHasReporterValue(), FEProblemBase::checkICRestartError(), Steady::checkIntegrity(), EigenExecutionerBase::checkIntegrity(), Eigenvalue::checkIntegrity(), ExplicitTimeIntegrator::checkLinearConvergence(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), PostprocessorInterface::checkParam(), FEProblemBase::checkProblemIntegrity(), Sampler::checkReinitStatus(), MultiAppPostprocessorToAuxScalarTransfer::checkSiblingsTransferSupported(), MultiAppScalarToAuxScalarTransfer::checkSiblingsTransferSupported(), MultiAppPostprocessorTransfer::checkSiblingsTransferSupported(), MultiAppReporterTransfer::checkSiblingsTransferSupported(), MultiAppCopyTransfer::checkSiblingsTransferSupported(), MultiAppTransfer::checkSiblingsTransferSupported(), MaterialBase::checkStatefulSanity(), FEProblemBase::checkUserObjects(), DomainUserObject::checkVariable(), MultiAppTransfer::checkVariable(), PhysicsBase::checkVectorParamsNoOverlap(), LibmeshPartitioner::clone(), MooseMesh::clone(), CombinerGenerator::CombinerGenerator(), ComparisonPostprocessor::comparisonIsTrue(), ElementSubdomainModifier::complementMovingBoundaryID(), ElementSubdomainModifier::complementMovingBoundaryName(), MooseVariableFieldBase::componentName(), CompositeFunction::CompositeFunction(), ElementH1ErrorFunctionAux::compute(), NodalPatchRecovery::compute(), FEProblemBase::computeBounds(), VariableCondensationPreconditioner::computeDInverseDiag(), CompositionDT::computeDT(), ArrayDGKernel::computeElemNeighJacobian(), ArrayDGKernel::computeElemNeighResidual(), InternalSideIntegralPostprocessor::computeFaceInfoIntegral(), SideIntegralPostprocessor::computeFaceInfoIntegral(), MooseVariableFieldBase::computeFaceValues(), TimeSequenceStepperBase::computeFailedDT(), IterationAdaptiveDT::computeFailedDT(), TimeStepper::computeFailedDT(), MooseMesh::computeFiniteVolumeCoords(), HistogramVectorPostprocessor::computeHistogram(), ArrayKernel::computeJacobian(), ArrayIntegratedBC::computeJacobian(), FVFluxKernel::computeJacobian(), NodalConstraint::computeJacobian(), FEProblemBase::computeJacobianTags(), LowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDOffDiagJacobian(), EigenProblem::computeMatricesTags(), ArrayDGKernel::computeOffDiagElemNeighJacobian(), ArrayKernel::computeOffDiagJacobian(), ArrayIntegratedBC::computeOffDiagJacobian(), FVElementalKernel::computeOffDiagJacobian(), MortarScalarBase::computeOffDiagJacobianScalar(), DGLowerDKernel::computeOffDiagLowerDJacobian(), ArrayDGLowerDKernel::computeOffDiagLowerDJacobian(), MaterialBase::computeProperties(), ScalarKernel::computeQpJacobian(), CoupledTiedValueConstraint::computeQpJacobian(), TiedValueConstraint::computeQpJacobian(), NodalEqualValueConstraint::computeQpJacobian(), LinearNodalConstraint::computeQpJacobian(), EqualValueBoundaryConstraint::computeQpJacobian(), EqualValueEmbeddedConstraint::computeQpJacobian(), CoupledTiedValueConstraint::computeQpOffDiagJacobian(), EqualValueEmbeddedConstraint::computeQpOffDiagJacobian(), ScalarKernel::computeQpResidual(), NodalEqualValueConstraint::computeQpResidual(), KernelValue::computeQpResidual(), InterfaceQpValueUserObject::computeRealValue(), ArrayKernel::computeResidual(), ArrayIntegratedBC::computeResidual(), FVFluxBC::computeResidual(), FVFluxKernel::computeResidual(), NodalConstraint::computeResidual(), FVFluxKernel::computeResidualAndJacobian(), ResidualObject::computeResidualAndJacobian(), FEProblemBase::computeResidualAndJacobian(), FEProblemBase::computeResidualInternal(), FEProblemBase::computeResidualL2Norm(), FEProblemBase::computeResidualTag(), FEProblemBase::computeResidualTags(), FEProblemBase::computeResidualType(), KernelScalarBase::computeScalarOffDiagJacobian(), ADKernelScalarBase::computeScalarQpResidual(), ADMortarScalarBase::computeScalarQpResidual(), MortarScalarBase::computeScalarQpResidual(), KernelScalarBase::computeScalarQpResidual(), TimeStepper::computeStep(), ActuallyExplicitEuler::computeTimeDerivatives(), ExplicitEuler::computeTimeDerivatives(), ImplicitEuler::computeTimeDerivatives(), BDF2::computeTimeDerivatives(), NewmarkBeta::computeTimeDerivatives(), CentralDifference::computeTimeDerivatives(), CrankNicolson::computeTimeDerivatives(), LStableDirk2::computeTimeDerivatives(), LStableDirk3::computeTimeDerivatives(), ImplicitMidpoint::computeTimeDerivatives(), ExplicitTVDRK2::computeTimeDerivatives(), AStableDirk4::computeTimeDerivatives(), LStableDirk4::computeTimeDerivatives(), ExplicitRK2::computeTimeDerivatives(), MultiAppGeometricInterpolationTransfer::computeTransformation(), BuildArrayVariableAux::computeValue(), TagVectorArrayVariableAux::computeValue(), PenetrationAux::computeValue(), ConcentricCircleMesh::ConcentricCircleMesh(), ConditionalEnableControl::ConditionalEnableControl(), TimeStepper::constrainStep(), LibtorchNeuralNetControl::controlNeuralNet(), CoupledForceNodalKernel::CoupledForceNodalKernel(), MultiApp::createApp(), AddVariableAction::createInitialConditionAction(), Function::curl(), MooseVariableFV< Real >::curlPhi(), SidesetInfoVectorPostprocessor::dataHelper(), ReporterTransferInterface::declareClone(), MeshGenerator::declareMeshProperty(), ReporterTransferInterface::declareVectorClone(), FunctorRelationshipManager::delete_remote_elements(), MooseMesh::deleteRemoteElements(), BicubicSplineFunction::derivative(), DerivativeSumMaterialTempl< is_ad >::DerivativeSumMaterialTempl(), MooseMesh::detectPairedSidesets(), FEProblemBase::determineSolverSystem(), DGKernel::DGKernel(), MeshDiagnosticsGenerator::diagnosticsLog(), DistributedPositions::DistributedPositions(), Function::div(), FunctorBinnedValuesDivision::divisionIndex(), MooseVariableFV< Real >::divPhi(), FunctorRelationshipManager::dofmap_reinit(), EigenProblem::doFreeNonlinearPowerIterations(), FEProblemBase::duplicateVariableCheck(), EigenProblem::EigenProblem(), Eigenvalue::Eigenvalue(), Eigenvalues::Eigenvalues(), ElementalVariableValue::ElementalVariableValue(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), ElementIntegerAux::ElementIntegerAux(), ElementQualityAux::ElementQualityAux(), ElementUOAux::ElementUOAux(), DistributedRectilinearMeshGenerator::elemId(), ProjectionAux::elemOnNodeVariableIsDefinedOn(), EigenKernel::enabled(), MooseMesh::errorIfDistributedMesh(), SideIntegralPostprocessor::errorNoFaceInfo(), SideIntegralFunctorPostprocessorTempl< is_ad >::errorNoFaceInfo(), SolutionUserObject::evalMeshFunction(), SolutionUserObject::evalMeshFunctionGradient(), SolutionUserObject::evalMultiValuedMeshFunction(), SolutionUserObject::evalMultiValuedMeshFunctionGradient(), MultiAppGeneralFieldTransfer::examineReceivedValueConflicts(), RestartableDataReporter::execute(), DiscreteElementUserObject::execute(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), NodalValueSampler::execute(), MultiAppPostprocessorInterpolationTransfer::execute(), MultiAppPostprocessorTransfer::execute(), ElementQualityChecker::execute(), PositionsFunctorValueSampler::execute(), GreaterThanLessThanPostprocessor::execute(), PointValue::execute(), MultiAppVariableValueSampleTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), FindValueOnLine::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppCopyTransfer::execute(), WebServerControl::execute(), MultiAppUserObjectTransfer::execute(), InterfaceQpUserObjectBase::execute(), MultiAppGeometricInterpolationTransfer::execute(), LeastSquaresFit::execute(), VectorPostprocessorComparison::execute(), LeastSquaresFitHistory::execute(), TimeExtremeValue::execute(), Eigenvalue::execute(), DomainUserObject::execute(), FEProblemBase::execute(), FEProblemBase::executeControls(), MultiAppVectorPostprocessorTransfer::executeFromMultiapp(), MultiAppVectorPostprocessorTransfer::executeToMultiapp(), Exodus::Exodus(), ExplicitSSPRungeKutta::ExplicitSSPRungeKutta(), MultiAppGeneralFieldTransfer::extractOutgoingPoints(), ExtraIDIntegralVectorPostprocessor::ExtraIDIntegralVectorPostprocessor(), FileOutput::FileOutput(), QuadraturePointMultiApp::fillPositions(), CentroidMultiApp::fillPositions(), MultiApp::fillPositions(), MultiAppGeometricInterpolationTransfer::fillSourceInterpolationPoints(), VerifyElementUniqueID::finalize(), VerifyNodalUniqueID::finalize(), DiscreteElementUserObject::finalize(), ElementQualityChecker::finalize(), MemoryUsage::finalize(), PointSamplerBase::finalize(), NearestPointAverage::finalize(), NearestPointIntegralVariablePostprocessor::finalize(), Transfer::find_sys(), BreakMeshByBlockGeneratorBase::findFreeBoundaryId(), FunctionDT::FunctionDT(), FunctionMaterialBase< is_ad >::FunctionMaterialBase(), FunctionScalarAux::FunctionScalarAux(), FunctionScalarIC::FunctionScalarIC(), MaterialOutputAction::functorMaterialOutputHelper(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), FVInitialConditionTempl< T >::FVInitialConditionTempl(), FVMassMatrix::FVMassMatrix(), FVMatAdvection::FVMatAdvection(), FVScalarLagrangeMultiplierInterface::FVScalarLagrangeMultiplierInterface(), GapValueAux::GapValueAux(), WorkBalance::gather(), BlockToMeshConverterGenerator::generate(), FileMeshGenerator::generate(), ExtraNodesetGenerator::generate(), LowerDBlockFromSidesetGenerator::generate(), MoveNodeGenerator::generate(), PlaneIDMeshGenerator::generate(), RenameBlockGenerator::generate(), RenameBoundaryGenerator::generate(), SideSetsFromNormalsGenerator::generate(), SmoothMeshGenerator::generate(), SubdomainPerElementGenerator::generate(), TiledMeshGenerator::generate(), FlipSidesetGenerator::generate(), BreakMeshByBlockGenerator::generate(), CoarsenBlockGenerator::generate(), GeneratedMeshGenerator::generate(), CutMeshByPlaneGenerator::generate(), MeshDiagnosticsGenerator::generate(), MeshRepairGenerator::generate(), SideSetsFromPointsGenerator::generate(), MeshCollectionGenerator::generate(), CombinerGenerator::generate(), AllSideSetsByNormalsGenerator::generate(), SideSetsFromBoundingBoxGenerator::generate(), StackGenerator::generate(), StitchedMeshGenerator::generate(), MeshExtruderGenerator::generate(), SpiralAnnularMeshGenerator::generate(), XYDelaunayGenerator::generate(), XYMeshLineCutter::generate(), PatternedMeshGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), DistributedRectilinearMeshGenerator::generate(), BoundingBoxNodeSetGenerator::generate(), MeshGenerator::generateData(), GeneratedMesh::GeneratedMesh(), GeneratedMeshGenerator::GeneratedMeshGenerator(), MeshGenerator::generateInternal(), CircularBoundaryCorrectionGenerator::generateRadialCorrectionFactor(), RandomICBase::generateRandom(), GenericConstantMaterialTempl< is_ad >::GenericConstantMaterialTempl(), GenericConstantVectorMaterialTempl< is_ad >::GenericConstantVectorMaterialTempl(), GenericFunctionMaterialTempl< is_ad >::GenericFunctionMaterialTempl(), GenericFunctionVectorMaterialTempl< is_ad >::GenericFunctionVectorMaterialTempl(), GenericFunctorGradientMaterialTempl< is_ad >::GenericFunctorGradientMaterialTempl(), GenericFunctorMaterialTempl< is_ad >::GenericFunctorMaterialTempl(), GenericVectorFunctorMaterialTempl< is_ad >::GenericVectorFunctorMaterialTempl(), DisplacedProblem::getActualFieldVariable(), FEProblemBase::getActualFieldVariable(), DisplacedProblem::getArrayVariable(), FEProblemBase::getArrayVariable(), MooseMesh::getAxisymmetricRadialCoord(), MooseMesh::getBlockConnectedBlocks(), VariableOldValueBounds::getBound(), MooseMesh::getBoundaryID(), MultiApp::getBoundingBox(), MooseMesh::getCoarseningMap(), MooseVariableBase::getContinuity(), Control::getControllableParameterByName(), MooseMesh::getCoordSystem(), PhysicsBase::getCoupledPhysics(), PropertyReadFile::getData(), TransfiniteMeshGenerator::getDiscreteEdge(), FEProblemBase::getDistribution(), MooseVariableBase::getDofIndices(), VariableCondensationPreconditioner::getDofToCondense(), TransfiniteMeshGenerator::getEdge(), GhostingUserObject::getElementalValue(), ElementUOProvider::getElementalValueLong(), ElementUOProvider::getElementalValueReal(), PropertyReadFile::getElementData(), MooseMesh::getElementIDIndex(), Material::getElementIDNeighbor(), Material::getElementIDNeighborByName(), MooseMesh::getElemIDMapping(), MooseMesh::getElemIDsOnBlocks(), MultiAppFieldTransfer::getEquationSystem(), MultiApp::getExecutioner(), MultiAppTransfer::getFromMultiApp(), MultiAppTransfer::getFromMultiAppInfo(), FEProblemBase::getFunction(), SubProblem::getFunctor(), MooseMesh::getGeneralAxisymmetricCoordAxis(), DistributedRectilinearMeshGenerator::getGhostNeighbors(), DistributedRectilinearMeshGenerator::getIndices(), SolutionUserObject::getLocalVarIndex(), Material::getMaterialByName(), FEProblemBase::getMaterialData(), SubProblem::getMatrixTagID(), AnnularMesh::getMaxInDimension(), GeneratedMesh::getMaxInDimension(), FEProblemBase::getMaxQps(), FEProblemBase::getMeshDivision(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), AnnularMesh::getMinInDimension(), GeneratedMesh::getMinInDimension(), MultiAppTransfer::getMultiApp(), DistributedRectilinearMeshGenerator::getNeighbors(), Times::getNextTime(), MooseMesh::getNodeBlockIds(), PropertyReadFile::getNodeData(), MooseMesh::getNodeList(), EigenProblem::getNonlinearEigenSystem(), FEProblemBase::getNonlinearSystem(), MooseMesh::getPairedBoundaryMapping(), ImageMeshGenerator::GetPixelInfo(), ImageMesh::GetPixelInfo(), PlaneIDMeshGenerator::getPlaneID(), Positions::getPosition(), Positions::getPositions(), FEProblemBase::getPositionsObject(), Positions::getPositionsVector2D(), Positions::getPositionsVector3D(), Positions::getPositionsVector4D(), PostprocessorInterface::getPostprocessorValueByNameInternal(), Times::getPreviousTime(), InterfaceQpUserObjectBase::getQpValue(), MooseMesh::getRefinementMap(), ReporterInterface::getReporterName(), Reporter::getReporterValueName(), FEProblemBase::getSampler(), JSONFileReader::getScalar(), WebServerControl::getScalarJSONValue(), DisplacedProblem::getScalarVariable(), FEProblemBase::getScalarVariable(), MooseObject::getSharedPtr(), InterfaceQpUserObjectBase::getSideAverageValue(), DisplacedProblem::getStandardVariable(), FEProblemBase::getStandardVariable(), MooseMesh::getSubdomainBoundaryIds(), DisplacedProblem::getSystem(), FEProblemBase::getSystem(), Times::getTimeAtIndex(), FEProblemBase::getTimeFromStateArg(), Transient::getTimeIntegratorName(), Times::getTimes(), MultiAppTransfer::getToMultiApp(), MultiAppTransfer::getToMultiAppInfo(), MooseMesh::getUniqueCoordSystem(), FEProblemBase::getUserObject(), FEProblemBase::getUserObjectBase(), UserObjectInterface::getUserObjectBaseByName(), UserObjectInterface::getUserObjectName(), NumRelationshipManagers::getValue(), VectorPostprocessorComponent::getValue(), Residual::getValue(), SideAverageValue::getValue(), LineValueSampler::getValue(), FindValueOnLine::getValueAtPoint(), SubProblem::getVariableHelper(), JSONFileReader::getVector(), VectorPostprocessorInterface::getVectorPostprocessorName(), SubProblem::getVectorTag(), SubProblem::getVectorTagID(), DisplacedProblem::getVectorVariable(), FEProblemBase::getVectorVariable(), GhostingAux::GhostingAux(), MultiApp::globalAppToLocal(), MooseParsedVectorFunction::gradient(), Function::gradient(), FEProblemBase::handleException(), Terminator::handleMessage(), MooseVariableBase::hasDoFsOnNodes(), PostprocessorInterface::hasPostprocessor(), PostprocessorInterface::hasPostprocessorByName(), ReporterInterface::hasReporterValue(), ReporterInterface::hasReporterValueByName(), VectorPostprocessorInterface::hasVectorPostprocessor(), VectorPostprocessorInterface::hasVectorPostprocessorByName(), CrankNicolson::init(), CSVTimeSequenceStepper::init(), ExplicitTimeIntegrator::init(), EigenExecutionerBase::init(), IterationAdaptiveDT::init(), Transient::init(), AddAuxVariableAction::init(), Eigenvalue::init(), AddVariableAction::init(), MooseMesh::init(), Sampler::init(), FEProblemBase::init(), MultiApp::init(), FEProblemBase::initialAdaptMesh(), NestedDivision::initialize(), TransformedPositions::initialize(), DistributedPositions::initialize(), ReporterPositions::initialize(), ReporterTimes::initialize(), ElementGroupCentroidPositions::initialize(), FunctorPositions::initialize(), FunctorTimes::initialize(), MultiAppCloneReporterTransfer::initialSetup(), SolutionIC::initialSetup(), PiecewiseLinearBase::initialSetup(), IntegralPreservingFunctionIC::initialSetup(), MultiAppConservativeTransfer::initialSetup(), ReferenceResidualProblem::initialSetup(), FullSolveMultiApp::initialSetup(), PiecewiseLinear::initialSetup(), CoarsenedPiecewiseLinear::initialSetup(), LinearFVAdvection::initialSetup(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), LinearFVDiffusion::initialSetup(), SolutionScalarAux::initialSetup(), SolutionAux::initialSetup(), NodalVariableValue::initialSetup(), Axisymmetric2D3DSolutionFunction::initialSetup(), Exodus::initialSetup(), CSV::initialSetup(), MooseParsedFunction::initialSetup(), SolutionUserObject::initialSetup(), FEProblemBase::initialSetup(), SubProblem::initialSetup(), AdvancedOutput::initOutputList(), AdvancedOutput::initShowHideLists(), Function::integral(), InterfaceDiffusiveFluxIntegralTempl< is_ad >::InterfaceDiffusiveFluxIntegralTempl(), InterfaceIntegralVariableValuePostprocessor::InterfaceIntegralVariableValuePostprocessor(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), InterfaceTimeKernel::InterfaceTimeKernel(), MultiAppGeometricInterpolationTransfer::interpolateTargetPoints(), EigenExecutionerBase::inversePowerIteration(), InversePowerMethod::InversePowerMethod(), Sampler::isAdaptiveSamplingCompleted(), MooseMesh::isBoundaryFullyExternalToSubdomains(), MooseVariableBase::isNodal(), IterationAdaptiveDT::IterationAdaptiveDT(), LeastSquaresFit::LeastSquaresFit(), LibmeshPartitioner::LibmeshPartitioner(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), LinearCombinationPostprocessor::LinearCombinationPostprocessor(), LinearNodalConstraint::LinearNodalConstraint(), LineMaterialSamplerBase< Real >::LineMaterialSamplerBase(), LineSearch::lineSearch(), LineValueSampler::LineValueSampler(), MultiAppGeneralFieldTransfer::locatePointReceivers(), LowerBoundNodalKernel::LowerBoundNodalKernel(), MooseLinearVariableFV< Real >::lowerDError(), MooseVariableFV< Real >::lowerDError(), PNGOutput::makePNG(), ReporterPointMarker::markerSetup(), MassMatrix::MassMatrix(), Material::Material(), MaterialOutputAction::materialOutputHelper(), MaterialRealTensorValueAux::MaterialRealTensorValueAux(), MaterialRealVectorValueAuxTempl< is_ad >::MaterialRealVectorValueAuxTempl(), MaterialStdVectorRealGradientAux::MaterialStdVectorRealGradientAux(), MaterialVectorPostprocessor::MaterialVectorPostprocessor(), Distribution::median(), FunctorRelationshipManager::mesh_reinit(), SubProblem::meshChanged(), MeshDiagnosticsGenerator::MeshDiagnosticsGenerator(), MeshExtruderGenerator::MeshExtruderGenerator(), MeshRepairGenerator::MeshRepairGenerator(), SetupMeshAction::modifyParamsForUseSplit(), MeshMetaDataInterface::mooseErrorInternal(), MooseLinearVariableFV< Real >::MooseLinearVariableFV(), MooseMesh::MooseMesh(), MooseObject::MooseObject(), MooseVariableBase::MooseVariableBase(), MooseVariableConstMonomial::MooseVariableConstMonomial(), MoveNodeGenerator::MoveNodeGenerator(), ElementSubdomainModifier::movingBoundaryID(), ElementSubdomainModifier::movingBoundaryName(), MultiApp::MultiApp(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), NearestNodeDistanceAux::NearestNodeDistanceAux(), NearestNodeValueAux::NearestNodeValueAux(), FEProblemBase::needsPreviousNewtonIteration(), NewmarkBeta::NewmarkBeta(), NodalConstraint::NodalConstraint(), MooseVariableFV< Real >::nodalDofIndex(), MooseVariableFV< Real >::nodalDofIndexNeighbor(), MooseLinearVariableFV< Real >::nodalError(), MooseVariableFV< Real >::nodalMatrixTagValue(), NodalPatchRecoveryBase::nodalPatchRecovery(), NodalPatchRecoveryAuxBase::NodalPatchRecoveryAuxBase(), NodalScalarKernel::NodalScalarKernel(), MooseVariableFV< Real >::nodalValueArray(), MooseVariableFV< Real >::nodalValueOldArray(), MooseVariableFV< Real >::nodalValueOlderArray(), NodalVariableValue::NodalVariableValue(), MooseVariableFV< Real >::nodalVectorTagValue(), DistributedRectilinearMeshGenerator::nodeId(), PhysicsBase::nonlinearVariableExists(), MooseVariableFV< Real >::numberOfDofsNeighbor(), NumDOFs::NumDOFs(), NumFailedTimeSteps::NumFailedTimeSteps(), DistributedRectilinearMeshGenerator::numNeighbors(), NumNonlinearIterations::NumNonlinearIterations(), NumVars::NumVars(), Output::onInterval(), FunctorRelationshipManager::operator()(), RelationshipManager::operator==(), XDA::output(), SolutionHistory::output(), Exodus::output(), Output::Output(), AdvancedOutput::outputElementalVariables(), AdvancedOutput::outputInput(), AdvancedOutput::outputNodalVariables(), AdvancedOutput::outputPostprocessors(), AdvancedOutput::outputReporters(), AdvancedOutput::outputScalarVariables(), Exodus::outputSetup(), AdvancedOutput::outputSystemInformation(), Console::outputVectorPostprocessors(), AdvancedOutput::outputVectorPostprocessors(), DistributedRectilinearMeshGenerator::paritionSquarely(), PiecewiseBilinear::parse(), ParsedAux::ParsedAux(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedGenerateSideset::ParsedGenerateSideset(), ParsedODEKernel::ParsedODEKernel(), ParsedPostprocessor::ParsedPostprocessor(), ParsedSubdomainMeshGenerator::ParsedSubdomainMeshGenerator(), MultiAppConservativeTransfer::performAdjustment(), ExplicitTimeIntegrator::performExplicitSolve(), PetscExternalPartitioner::PetscExternalPartitioner(), MooseVariableFV< Real >::phiLowerSize(), PhysicsBasedPreconditioner::PhysicsBasedPreconditioner(), Executioner::picardSolve(), PIDTransientControl::PIDTransientControl(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), PiecewiseMulticonstant::PiecewiseMulticonstant(), PiecewiseMultiInterpolation::PiecewiseMultiInterpolation(), PiecewiseTabularBase::PiecewiseTabularBase(), CutMeshByPlaneGenerator::pointPairPlaneInterception(), SolutionUserObject::pointValueGradientWrapper(), SolutionUserObject::pointValueWrapper(), ReporterInterface::possiblyCheckHasReporter(), VectorPostprocessorInterface::possiblyCheckHasVectorPostprocessorByName(), LStableDirk2::postResidual(), LStableDirk3::postResidual(), ImplicitMidpoint::postResidual(), ExplicitTVDRK2::postResidual(), AStableDirk4::postResidual(), LStableDirk4::postResidual(), ExplicitRK2::postResidual(), EigenProblem::postScaleEigenVector(), VariableCondensationPreconditioner::preallocateCondensedJacobian(), ADKernelValueTempl< T >::precomputeQpJacobian(), Predictor::Predictor(), Transient::preExecute(), MooseMesh::prepare(), MooseMesh::prepared(), FixedPointSolve::printFixedPointConvergenceReason(), PseudoTimestep::PseudoTimestep(), MultiApp::readCommandLineArguments(), PropertyReadFile::readData(), SolutionUserObject::readExodusII(), SolutionUserObject::readXda(), CoarsenBlockGenerator::recursiveCoarsen(), FunctorRelationshipManager::redistribute(), ReferenceResidualProblem::ReferenceResidualProblem(), Sampler::reinit(), EqualValueEmbeddedConstraint::reinitConstraint(), RelativeSolutionDifferenceNorm::RelativeSolutionDifferenceNorm(), RinglebMesh::RinglebMesh(), RinglebMeshGenerator::RinglebMeshGenerator(), PiecewiseMultiInterpolation::sample(), ScalarComponentIC::ScalarComponentIC(), MortarScalarBase::scalarVariable(), DistributedRectilinearMeshGenerator::scaleNodalPositions(), BicubicSplineFunction::secondDerivative(), MooseVariableFV< Real >::secondPhi(), MooseVariableFV< Real >::secondPhiFace(), MooseVariableFV< Real >::secondPhiFaceNeighbor(), MooseVariableFV< Real >::secondPhiNeighbor(), FunctorRelationshipManager::set_mesh(), MooseVariableBase::setActiveTags(), DistributedRectilinearMeshGenerator::setBoundaryNames(), MooseMesh::setCoordSystem(), FEProblemBase::setCoupling(), PiecewiseBase::setData(), FileOutput::setFileBaseInternal(), MooseMesh::setGeneralAxisymmetricCoordAxes(), FEProblemSolve::setInnerSolve(), MeshGenerator::setMeshProperty(), FVPointValueConstraint::setMyElem(), FEProblemBase::setNonlocalCouplingMatrix(), Sampler::setNumberOfCols(), Sampler::setNumberOfRandomSeeds(), Sampler::setNumberOfRows(), Exodus::setOutputDimensionInExodusWriter(), MultiAppGeneralFieldTransfer::setSolutionVectorValues(), Split::setup(), TransientMultiApp::setupApp(), SetupMeshAction::setupMesh(), TimeSequenceStepperBase::setupSequence(), Transient::setupTimeIntegrator(), TimePeriodBase::setupTimes(), SideAdvectiveFluxIntegralTempl< is_ad >::SideAdvectiveFluxIntegralTempl(), SideDiffusiveFluxIntegralTempl< is_ad, Real >::SideDiffusiveFluxIntegralTempl(), SideSetsFromNormalsGenerator::SideSetsFromNormalsGenerator(), SideSetsFromPointsGenerator::SideSetsFromPointsGenerator(), SingleMatrixPreconditioner::SingleMatrixPreconditioner(), SolutionTimeAdaptiveDT::SolutionTimeAdaptiveDT(), SolutionUserObject::SolutionUserObject(), FullSolveMultiApp::solveStep(), SpatialAverageBase::SpatialAverageBase(), UserObject::spatialPoints(), NearestPointIntegralVariablePostprocessor::spatialValue(), NearestPointAverage::spatialValue(), MeshDivisionFunctorReductionVectorPostprocessor::spatialValue(), UserObject::spatialValue(), SpiralAnnularMesh::SpiralAnnularMesh(), SpiralAnnularMeshGenerator::SpiralAnnularMeshGenerator(), WebServerControl::startServer(), StitchedMesh::StitchedMesh(), WebServerControl::stringifyJSONType(), MultiAppGeometricInterpolationTransfer::subdomainIDsNode(), Constraint::subdomainSetup(), GeneralUserObject::subdomainSetup(), NodalUserObject::subdomainSetup(), MaterialBase::subdomainSetup(), FEProblemBase::swapBackMaterialsNeighbor(), DisplacedProblem::systemBaseLinear(), Console::systemInfoFlags(), Terminator::Terminator(), CutMeshByPlaneGenerator::tet4ElemCutter(), ThreadedGeneralUserObject::threadJoin(), DiscreteElementUserObject::threadJoin(), GeneralUserObject::threadJoin(), Function::timeDerivative(), TimeExtremeValue::TimeExtremeValue(), MooseLinearVariableFV< Real >::timeIntegratorError(), TimeIntervalTimes::TimeIntervalTimes(), TimePeriodBase::TimePeriodBase(), VectorPostprocessorVisualizationAux::timestepSetup(), MultiAppDofCopyTransfer::transfer(), MultiAppShapeEvaluationTransfer::transferVariable(), TransformedPositions::TransformedPositions(), FEProblemBase::trustUserCouplingMatrix(), MooseVariableScalar::uDot(), MooseVariableScalar::uDotDot(), MooseVariableScalar::uDotDotOld(), FEProblemBase::uDotDotOldRequested(), MooseVariableScalar::uDotOld(), FEProblemBase::uDotOldRequested(), Positions::unrollMultiDPositions(), ScalarKernelBase::uOld(), AuxScalarKernel::uOld(), Checkpoint::updateCheckpointFiles(), EqualValueBoundaryConstraint::updateConstrainedNodes(), SolutionUserObject::updateExodusBracketingTimeIndices(), FEProblemBase::updateMaxQps(), UpperBoundNodalKernel::UpperBoundNodalKernel(), NearestPointIntegralVariablePostprocessor::userObjectValue(), NearestPointAverage::userObjectValue(), BoundingBoxIC::value(), PiecewiseConstantFromCSV::value(), IntegralPreservingFunctionIC::value(), Axisymmetric2D3DSolutionFunction::value(), Function::value(), ValueRangeMarker::ValueRangeMarker(), ValueThresholdMarker::ValueThresholdMarker(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), MultiAppTransfer::variableIntegrityCheck(), VariableTimeIntegrationAux::VariableTimeIntegrationAux(), AddVariableAction::variableType(), VariableValueVolumeHistogram::VariableValueVolumeHistogram(), VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl(), VectorNodalBC::VectorNodalBC(), SubProblem::vectorTagName(), SubProblem::vectorTagType(), MooseParsedGradFunction::vectorValue(), MooseParsedFunction::vectorValue(), Function::vectorValue(), SubProblem::verifyVectorTags(), VTKOutput::VTKOutput(), DOFMapOutput::writeStreamToFile(), and Console::writeStreamToFile().

30  {
31  std::ostringstream oss;
32  moose::internal::mooseStreamAll(oss, std::forward<Args>(args)...);
33  _moose_base.callMooseError(oss.str(), /* with_prefix = */ true);
34  }
void mooseStreamAll(std::ostringstream &ss)
All of the following are not meant to be called directly - they are called by the normal macros (moos...
Definition: MooseError.C:92
const MooseBase & _moose_base
The MooseBase class deriving from this interface.
void callMooseError(std::string msg, const bool with_prefix) const
Calls moose error with the message msg.
Definition: MooseBase.C:33

◆ mooseErrorNonPrefixed()

template<typename... Args>
void MooseBaseErrorInterface::mooseErrorNonPrefixed ( Args &&...  args) const
inlineinherited

Emits an error without the prefixing included in mooseError().

Definition at line 40 of file MooseBaseErrorInterface.h.

41  {
42  std::ostringstream oss;
43  moose::internal::mooseStreamAll(oss, std::forward<Args>(args)...);
44  _moose_base.callMooseError(oss.str(), /* with_prefix = */ false);
45  }
void mooseStreamAll(std::ostringstream &ss)
All of the following are not meant to be called directly - they are called by the normal macros (moos...
Definition: MooseError.C:92
const MooseBase & _moose_base
The MooseBase class deriving from this interface.
void callMooseError(std::string msg, const bool with_prefix) const
Calls moose error with the message msg.
Definition: MooseBase.C:33

◆ mooseInfo()

template<typename... Args>
void MooseBaseErrorInterface::mooseInfo ( Args &&...  args) const
inlineinherited

◆ mooseWarning()

template<typename... Args>
void MooseBaseErrorInterface::mooseWarning ( Args &&...  args) const
inlineinherited

Emits a warning prefixed with object name and type.

Definition at line 75 of file MooseBaseErrorInterface.h.

Referenced by AddKernelAction::act(), SetupMeshAction::act(), MeshOnlyAction::act(), AddFunctionAction::act(), MaterialOutputAction::act(), CommonOutputAction::act(), DiracKernelBase::addPoint(), BoundaryMarker::BoundaryMarker(), BoundsBase::BoundsBase(), DistributedRectilinearMeshGenerator::buildCube(), MultiAppVariableValueSamplePostprocessorTransfer::cacheElemToPostprocessorData(), CartesianMeshGenerator::CartesianMeshGenerator(), CheckOutputAction::checkConsoleOutput(), MultiAppTransfer::checkMultiAppExecuteOn(), PhysicsBase::checkRequiredTasks(), OversampleOutput::cloneMesh(), GapValueAux::computeValue(), MultiApp::createApp(), MeshDiagnosticsGenerator::diagnosticsLog(), CartesianGridDivision::divisionIndex(), CylindricalGridDivision::divisionIndex(), SphericalGridDivision::divisionIndex(), Postprocessor::evaluateDotWarning(), MeshDivisionFunctorReductionVectorPostprocessor::execute(), ElementQualityChecker::finalize(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), FixedPointSolve::FixedPointSolve(), SubdomainPerElementGenerator::generate(), ParsedGenerateSideset::generate(), MultiAppTransfer::getAppInfo(), FunctorBinnedValuesDivision::getBinIndex(), PointSamplerBase::getLocalElemContainingPoint(), FEProblemBase::getMaterial(), Positions::getNearestPositionIndex(), LineValueSampler::getValue(), Terminator::handleMessage(), CartesianGridDivision::initialize(), SphericalGridDivision::initialize(), ElementGroupCentroidPositions::initialize(), CylindricalGridDivision::initialize(), ReferenceResidualProblem::initialSetup(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), FEProblemBase::initialSetup(), AdvancedOutput::initPostprocessorOrVectorPostprocessorLists(), MaterialBase::initStatefulProperties(), LeastSquaresFit::LeastSquaresFit(), IterationAdaptiveDT::limitDTToPostprocessorValue(), MaterialVectorPostprocessor::MaterialVectorPostprocessor(), FEProblemBase::mesh(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), NewmarkBeta::NewmarkBeta(), NodalPatchRecovery::NodalPatchRecovery(), NonlocalIntegratedBC::NonlocalIntegratedBC(), NonlocalKernel::NonlocalKernel(), Output::Output(), MultiAppGeneralFieldTransfer::outputValueConflicts(), PiecewiseConstantFromCSV::PiecewiseConstantFromCSV(), Executioner::problem(), PropertyReadFile::readData(), TestSourceStepper::rejectStep(), MaterialBase::resetQpProperties(), SecondTimeDerivativeAux::SecondTimeDerivativeAux(), MooseMesh::setCoordSystem(), FEProblemBase::sizeZeroes(), TransientMultiApp::solveStep(), Tecplot::Tecplot(), TimeDerivativeAux::TimeDerivativeAux(), Checkpoint::updateCheckpointFiles(), PiecewiseConstantFromCSV::value(), and VariableCondensationPreconditioner::VariableCondensationPreconditioner().

76  {
78  _console, _moose_base.errorPrefix("warning"), std::forward<Args>(args)...);
79  }
std::string errorPrefix(const std::string &error_type) const
Definition: MooseBase.C:43
void mooseWarningStream(S &oss, Args &&... args)
Definition: MooseError.h:181
const MooseBase & _moose_base
The MooseBase class deriving from this interface.
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.

◆ mooseWarningNonPrefixed()

template<typename... Args>
void MooseBaseErrorInterface::mooseWarningNonPrefixed ( Args &&...  args) const
inlineinherited

Emits a warning without the prefixing included in mooseWarning().

Definition at line 85 of file MooseBaseErrorInterface.h.

86  {
87  moose::internal::mooseWarningStream(_console, std::forward<Args>(args)...);
88  }
void mooseWarningStream(S &oss, Args &&... args)
Definition: MooseError.h:181
const ConsoleStream _console
An instance of helper class to write streams to the Console objects.

◆ name()

const std::string& MooseVariableBase::name ( ) const
inlineoverridevirtualinherited

◆ needsGradientVectorStorage()

virtual bool MooseVariableFieldBase::needsGradientVectorStorage ( ) const
inlinevirtualinherited

Check if this variable needs a raw vector of gradients at dof-values.

This is mainly used for finite volume variables.

Reimplemented in MooseLinearVariableFV< OutputType >, MooseLinearVariableFV< ComputeValueType >, MooseLinearVariableFV< T >, MooseLinearVariableFV< RealEigenVector >, MooseLinearVariableFV< RealVectorValue >, and MooseLinearVariableFV< Real >.

Definition at line 125 of file MooseVariableFieldBase.h.

125 { return false; }

◆ neighbor()

template<typename OutputType>
const Elem* const& MooseVariableFE< OutputType >::neighbor ( ) const
inline

Current neighboring element.

Definition at line 171 of file MooseVariableFE.h.

171 { return _neighbor_data->currentElem(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalDofIndex()

template<typename OutputType>
const dof_id_type& MooseVariableFE< OutputType >::nodalDofIndex ( ) const
inlineoverridevirtual

◆ nodalDofIndexNeighbor()

template<typename OutputType>
const dof_id_type& MooseVariableFE< OutputType >::nodalDofIndexNeighbor ( ) const
inlineoverridevirtual

Implements MooseVariableFieldBase.

Definition at line 155 of file MooseVariableFE.h.

Referenced by InternalSideIndicator::computeIndicator().

156  {
157  return _neighbor_data->nodalDofIndex();
158  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalMatrixTagValue()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::nodalMatrixTagValue ( TagID  tag) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 588 of file MooseVariableFE.C.

589 {
590  return _element_data->nodalMatrixTagValue(tag);
591 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValue()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValue ( ) const

Methods for retrieving values of variables at the nodes.

Definition at line 567 of file MooseVariableFE.C.

568 {
569  return _element_data->nodalValue(Moose::Current);
570 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueArray()

template<typename OutputType>
const MooseArray<OutputType>& MooseVariableFE< OutputType >::nodalValueArray ( ) const
inlineoverridevirtual

Methods for retrieving values of variables at the nodes in a MooseArray for AuxKernelBase.

Implements MooseVariableField< OutputType >.

Definition at line 681 of file MooseVariableFE.h.

682  {
683  return _element_data->nodalValueArray(Moose::Current);
684  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueDot()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueDot ( ) const

Definition at line 637 of file MooseVariableFE.C.

638 {
639  return _element_data->nodalValueDot();
640 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueDotDot()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueDotDot ( ) const

Definition at line 644 of file MooseVariableFE.C.

645 {
646  return _element_data->nodalValueDotDot();
647 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueDotDotNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotDotNeighbor ( ) const

◆ nodalValueDotDotNeighborResidual()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotDotNeighborResidual ( ) const

◆ nodalValueDotDotOld()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueDotDotOld ( ) const

Definition at line 658 of file MooseVariableFE.C.

659 {
660  return _element_data->nodalValueDotDotOld();
661 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueDotDotOldNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotDotOldNeighbor ( ) const

◆ nodalValueDotNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotNeighbor ( ) const

◆ nodalValueDotNeighborResidual()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotNeighborResidual ( ) const

◆ nodalValueDotOld()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueDotOld ( ) const

Definition at line 651 of file MooseVariableFE.C.

652 {
653  return _element_data->nodalValueDotOld();
654 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueDotOldNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDotOldNeighbor ( ) const

◆ nodalValueDuDotDotDu()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDuDotDotDu ( ) const

◆ nodalValueDuDotDotDuNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDuDotDotDuNeighbor ( ) const

◆ nodalValueDuDotDu()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDuDotDu ( ) const

◆ nodalValueDuDotDuNeighbor()

template<typename OutputType>
const OutputType& MooseVariableFE< OutputType >::nodalValueDuDotDuNeighbor ( ) const

◆ nodalValueNeighbor()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueNeighbor ( ) const

Definition at line 574 of file MooseVariableFE.C.

575 {
576  return _neighbor_data->nodalValue(Moose::Current);
577 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalValueOld()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueOld ( ) const

Definition at line 595 of file MooseVariableFE.C.

596 {
597  return _element_data->nodalValue(Moose::Old);
598 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueOldArray()

template<typename OutputType>
const MooseArray<OutputType>& MooseVariableFE< OutputType >::nodalValueOldArray ( ) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 685 of file MooseVariableFE.h.

686  {
687  return _element_data->nodalValueArray(Moose::Old);
688  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueOlder()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueOlder ( ) const

Definition at line 609 of file MooseVariableFE.C.

610 {
611  return _element_data->nodalValue(Moose::Older);
612 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueOlderArray()

template<typename OutputType>
const MooseArray<OutputType>& MooseVariableFE< OutputType >::nodalValueOlderArray ( ) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 689 of file MooseVariableFE.h.

690  {
691  return _element_data->nodalValueArray(Moose::Older);
692  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValueOlderNeighbor()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueOlderNeighbor ( ) const

Definition at line 616 of file MooseVariableFE.C.

617 {
618  return _neighbor_data->nodalValue(Moose::Older);
619 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalValueOldNeighbor()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValueOldNeighbor ( ) const

Definition at line 602 of file MooseVariableFE.C.

603 {
604  return _neighbor_data->nodalValue(Moose::Old);
605 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalValuePreviousNL()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValuePreviousNL ( ) const

Definition at line 623 of file MooseVariableFE.C.

624 {
625  return _element_data->nodalValue(Moose::PreviousNL);
626 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodalValuePreviousNLNeighbor()

template<typename OutputType >
const OutputType & MooseVariableFE< OutputType >::nodalValuePreviousNLNeighbor ( ) const

Definition at line 630 of file MooseVariableFE.C.

631 {
632  return _neighbor_data->nodalValue(Moose::PreviousNL);
633 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ nodalVectorTagValue()

template<typename OutputType >
const MooseVariableFE< OutputType >::DoFValue & MooseVariableFE< OutputType >::nodalVectorTagValue ( TagID  tag) const
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 581 of file MooseVariableFE.C.

582 {
583  return _element_data->nodalVectorTagValue(tag);
584 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ node()

template<typename OutputType>
const Node* const& MooseVariableFE< OutputType >::node ( ) const
inline

Definition at line 150 of file MooseVariableFE.h.

150 { return _element_data->node(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ nodeNeighbor()

template<typename OutputType>
const Node* const& MooseVariableFE< OutputType >::nodeNeighbor ( ) const
inline

Definition at line 154 of file MooseVariableFE.h.

154 { return _neighbor_data->node(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ number()

unsigned int MooseVariableBase::number ( ) const
inlineinherited

Get variable number coming from libMesh.

Returns
the libmesh variable number

Definition at line 49 of file MooseVariableBase.h.

Referenced by AdaptivityAction::act(), Assembly::addJacobianBlock(), Assembly::addJacobianCoupledVarPair(), LinearFVElementalKernel::addMatrixContribution(), LinearFVFluxKernel::addMatrixContribution(), LinearFVElementalKernel::addRightHandSideContribution(), LinearFVFluxKernel::addRightHandSideContribution(), EigenProblem::adjustEigenVector(), MooseMesh::cacheFaceInfoVariableOwnership(), Assembly::cacheJacobianBlock(), Assembly::cacheJacobianBlockNonzero(), Assembly::cacheJacobianCoupledVarPair(), ComputeJacobianThread::compute(), DGKernel::computeElemNeighJacobian(), ElemElemConstraint::computeElemNeighJacobian(), ArrayDGKernel::computeElemNeighJacobian(), ADDGKernel::computeElemNeighResidual(), DGKernel::computeElemNeighResidual(), ElemElemConstraint::computeElemNeighResidual(), ArrayDGKernel::computeElemNeighResidual(), MassLumpedTimeDerivative::computeJacobian(), TimeDerivative::computeJacobian(), VectorTimeDerivative::computeJacobian(), ScalarKernel::computeJacobian(), ODEKernel::computeJacobian(), VectorKernel::computeJacobian(), Kernel::computeJacobian(), ArrayKernel::computeJacobian(), IntegratedBC::computeJacobian(), VectorIntegratedBC::computeJacobian(), EigenKernel::computeJacobian(), ArrayIntegratedBC::computeJacobian(), NodalEqualValueConstraint::computeJacobian(), FVBoundaryScalarLagrangeMultiplierConstraint::computeJacobian(), FVFluxBC::computeJacobian(), KernelGrad::computeJacobian(), KernelValue::computeJacobian(), NonlocalKernel::computeJacobian(), NonlocalIntegratedBC::computeJacobian(), MortarConstraint::computeJacobian(), NodeElemConstraint::computeJacobian(), FVFluxKernel::computeJacobian(), NodeFaceConstraint::computeJacobian(), LowerDIntegratedBC::computeLowerDJacobian(), ArrayLowerDIntegratedBC::computeLowerDJacobian(), DGLowerDKernel::computeLowerDJacobian(), ArrayDGLowerDKernel::computeLowerDJacobian(), LowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayHFEMDirichletBC::computeLowerDQpOffDiagJacobian(), HFEMDirichletBC::computeLowerDQpOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDQpOffDiagJacobian(), ArrayDGLowerDKernel::computeLowerDQpOffDiagJacobian(), DGLowerDKernel::computeLowerDResidual(), ArrayDGLowerDKernel::computeLowerDResidual(), NonlocalKernel::computeNonlocalJacobian(), NonlocalIntegratedBC::computeNonlocalJacobian(), NonlocalKernel::computeNonlocalOffDiagJacobian(), NonlocalIntegratedBC::computeNonlocalOffDiagJacobian(), DGKernel::computeOffDiagElemNeighJacobian(), ArrayDGKernel::computeOffDiagElemNeighJacobian(), LowerDIntegratedBC::computeOffDiagJacobian(), VectorKernel::computeOffDiagJacobian(), ADDGKernel::computeOffDiagJacobian(), Kernel::computeOffDiagJacobian(), ArrayKernel::computeOffDiagJacobian(), EigenKernel::computeOffDiagJacobian(), IntegratedBC::computeOffDiagJacobian(), VectorIntegratedBC::computeOffDiagJacobian(), VectorNodalBC::computeOffDiagJacobian(), ArrayIntegratedBC::computeOffDiagJacobian(), NodalBC::computeOffDiagJacobian(), NonlocalKernel::computeOffDiagJacobian(), NonlocalIntegratedBC::computeOffDiagJacobian(), KernelGrad::computeOffDiagJacobian(), KernelValue::computeOffDiagJacobian(), ADKernelScalarBase::computeOffDiagJacobian(), NodeElemConstraint::computeOffDiagJacobian(), ADNodalKernel::computeOffDiagJacobian(), NodalKernel::computeOffDiagJacobian(), DGLowerDKernel::computeOffDiagJacobian(), NodeFaceConstraint::computeOffDiagJacobian(), ODEKernel::computeOffDiagJacobianScalar(), NodalScalarKernel::computeOffDiagJacobianScalar(), VectorKernel::computeOffDiagJacobianScalar(), ArrayKernel::computeOffDiagJacobianScalar(), IntegratedBC::computeOffDiagJacobianScalar(), VectorIntegratedBC::computeOffDiagJacobianScalar(), ArrayIntegratedBC::computeOffDiagJacobianScalar(), Kernel::computeOffDiagJacobianScalar(), ScalarLagrangeMultiplier::computeOffDiagJacobianScalar(), DGLowerDKernel::computeOffDiagLowerDJacobian(), ArrayDGLowerDKernel::computeOffDiagLowerDJacobian(), ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), ComputeFullJacobianThread::computeOnInterface(), ComputeFullJacobianThread::computeOnInternalFace(), OldEqualValueConstraint::computeQpJacobian(), TiedValueConstraint::computeQpJacobian(), CoupledTiedValueConstraint::computeQpJacobian(), EqualValueEmbeddedConstraint::computeQpJacobian(), ArrayTimeDerivative::computeQpOffDiagJacobian(), ArrayReaction::computeQpOffDiagJacobian(), ArrayDiffusion::computeQpOffDiagJacobian(), ArrayCoupledTimeDerivative::computeQpOffDiagJacobian(), EqualValueEmbeddedConstraint::computeQpOffDiagJacobian(), ArrayIntegratedBC::computeQpOffDiagJacobian(), ArrayKernel::computeQpOffDiagJacobian(), ArrayNodalBC::computeQpOffDiagJacobian(), ArrayDGKernel::computeQpOffDiagJacobian(), TiedValueConstraint::computeQpResidual(), FVOrthogonalBoundaryDiffusion::computeQpResidual(), CoupledTiedValueConstraint::computeQpResidual(), ScalarKernel::computeResidual(), FVScalarLagrangeMultiplierInterface::computeResidual(), VectorKernel::computeResidual(), Kernel::computeResidual(), ArrayKernel::computeResidual(), LowerDIntegratedBC::computeResidual(), VectorTimeKernel::computeResidual(), TimeKernel::computeResidual(), ODETimeKernel::computeResidual(), ODEKernel::computeResidual(), ADScalarKernel::computeResidual(), VectorIntegratedBC::computeResidual(), ArrayLowerDIntegratedBC::computeResidual(), IntegratedBC::computeResidual(), ArrayIntegratedBC::computeResidual(), EigenKernel::computeResidual(), NodalEqualValueConstraint::computeResidual(), ADMortarConstraint::computeResidual(), FVScalarLagrangeMultiplierConstraint::computeResidual(), FVFluxBC::computeResidual(), FVBoundaryScalarLagrangeMultiplierConstraint::computeResidual(), MortarConstraint::computeResidual(), KernelValue::computeResidual(), KernelGrad::computeResidual(), FVElementalKernel::computeResidual(), NodeElemConstraint::computeResidual(), FVFluxKernel::computeResidual(), NodeFaceConstraint::computeResidual(), FVInterfaceKernel::computeResidual(), Kernel::computeResidualAndJacobian(), NodalBC::computeResidualAndJacobian(), IntegratedBC::computeResidualAndJacobian(), MortarScalarBase::computeScalarOffDiagJacobian(), PeriodicSegmentalConstraint::computeScalarQpOffDiagJacobian(), PenaltyPeriodicSegmentalConstraint::computeScalarQpOffDiagJacobian(), DebugResidualAux::computeValue(), ProjectionAux::computeValue(), CoupledForceNodalKernel::CoupledForceNodalKernel(), CoupledForceTempl< is_ad >::CoupledForceTempl(), ScalarCoupleable::coupledScalar(), VariableResidual::execute(), NodalNormalsCorner::execute(), NodalNormalsEvaluator::execute(), NodalNormalsPreprocessor::execute(), FieldSplitPreconditioner::FieldSplitPreconditioner(), FiniteDifferencePreconditioner::FiniteDifferencePreconditioner(), ConservativeAdvection::fullUpwind(), BoundsBase::getDoFIndex(), LinearFVFluxKernel::hasFaceSide(), LinearFVBoundaryCondition::hasFaceSide(), FVBoundaryCondition::hasFaceSide(), LazyCoupleable::init(), NodalNormalsPreprocessor::initialize(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), ArrayKernel::initQpOffDiagJacobian(), LowerBoundNodalKernel::LowerBoundNodalKernel(), PNGOutput::makeMeshFunc(), MatCoupledForce::MatCoupledForce(), ComputeLinearFVGreenGaussGradientFaceThread::onBoundaryFace(), ComputeDiracThread::onElement(), ComputeLinearFVGreenGaussGradientFaceThread::onInternalFace(), ComputeNodalKernelBCJacobiansThread::onNode(), ComputeNodalKernelJacobiansThread::onNode(), ComputeLinearFVGreenGaussGradientFaceThread::operator()(), ComputeLinearFVGreenGaussGradientVolumeThread::operator()(), Assembly::prepareBlock(), Assembly::prepareBlockNonlocal(), Assembly::prepareJacobianBlock(), Assembly::prepareLowerD(), Assembly::prepareNeighbor(), Assembly::prepareNonlocal(), Assembly::prepareVariable(), Assembly::prepareVariableNonlocal(), MultiAppProjectionTransfer::projectSolution(), EqualValueEmbeddedConstraint::reinitConstraint(), LinearFVFluxKernel::setCurrentFaceInfo(), AddPeriodicBCAction::setPeriodicVars(), FVInterfaceKernel::setupData(), NonlinearSystemBase::setupScalingData(), MultiAppDofCopyTransfer::transferDofObject(), FVFluxBC::uOnGhost(), FVFluxBC::uOnUSub(), UpdateErrorVectorsThread::UpdateErrorVectorsThread(), UpperBoundNodalKernel::UpperBoundNodalKernel(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), and MortarConstraintBase::zeroInactiveLMDofs().

49 { return _var_num; }
unsigned int _var_num
variable number (from libMesh)

◆ numberOfDofs()

template<typename OutputType>
unsigned int MooseVariableFE< OutputType >::numberOfDofs ( ) const
inlinefinalvirtual

Get the number of local DoFs.

Reimplemented from MooseVariableBase.

Definition at line 176 of file MooseVariableFE.h.

176 { return _element_data->numberOfDofs(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ numberOfDofsNeighbor()

template<typename OutputType>
unsigned int MooseVariableFE< OutputType >::numberOfDofsNeighbor ( )
inlineoverridevirtual

Implements MooseVariableFieldBase.

Definition at line 188 of file MooseVariableFE.h.

188 { return _neighbor_data->dofIndices().size(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ numBlocks()

unsigned int BlockRestrictable::numBlocks ( ) const
inherited

Return the number of blocks for this object.

Returns
The number of subdomains

Definition at line 199 of file BlockRestrictable.C.

Referenced by ElementCentroidPositions::initialize().

200 {
201  return (unsigned int)_blk_ids.size();
202 }
std::set< SubdomainID > _blk_ids
Set of block ids supplied by the user via the input file (for error checking)

◆ oldestSolutionStateRequested()

template<typename OutputType >
unsigned int MooseVariableFE< OutputType >::oldestSolutionStateRequested ( ) const
finaloverridevirtual

The oldest solution state that is requested for this variable (0 = current, 1 = old, 2 = older, etc).

Implements MooseVariableFieldBase.

Definition at line 841 of file MooseVariableFE.C.

842 {
843  unsigned int state = 0;
844  state = std::max(state, _element_data->oldestSolutionStateRequested());
845  state = std::max(state, _neighbor_data->oldestSolutionStateRequested());
846  state = std::max(state, _lower_data->oldestSolutionStateRequested());
847  return state;
848 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
auto max(const L &left, const R &right)
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ operator()() [1/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const ElemArg elem,
const StateArg state 
) const
inherited

Same as their evaluate overloads with the same arguments but allows for caching implementation.

These are the methods a user will call in their code

Definition at line 592 of file MooseFunctor.h.

593 {
594  if (_clearance_schedule.count(EXEC_ALWAYS))
595  return evaluate(elem, state);
596 
597  mooseAssert(state.state == 0,
598  "Cached evaluations are only currently supported for the current state.");
599 
600  return queryFVArgCache(_elem_arg_to_value, elem);
601 }
const ExecFlagType EXEC_ALWAYS
Definition: Moose.C:43
ValueType queryFVArgCache(std::map< SpaceArg, ValueType > &cache_data, const SpaceArg &space) const
check a finite volume spatial argument cache and if invalid then evaluate
Definition: MooseFunctor.h:575
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.
std::map< ElemArg, ValueType > _elem_arg_to_value
Map from element arguments to their cached evaluations.
Definition: MooseFunctor.h:550
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ operator()() [2/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const FaceArg face,
const StateArg state 
) const
inherited

Definition at line 605 of file MooseFunctor.h.

606 {
607  const auto face = checkFace(face_in);
608 
609  if (_clearance_schedule.count(EXEC_ALWAYS))
610  return evaluate(face, state);
611 
612  mooseAssert(state.state == 0,
613  "Cached evaluations are only currently supported for the current state.");
614 
615  return queryFVArgCache(_face_arg_to_value, face);
616 }
std::map< FaceArg, ValueType > _face_arg_to_value
Map from face arguments to their cached evaluations.
Definition: MooseFunctor.h:553
const ExecFlagType EXEC_ALWAYS
Definition: Moose.C:43
ValueType queryFVArgCache(std::map< SpaceArg, ValueType > &cache_data, const SpaceArg &space) const
check a finite volume spatial argument cache and if invalid then evaluate
Definition: MooseFunctor.h:575
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.
Moose::FaceArg checkFace(const Moose::FaceArg &face) const
Examines the incoming face argument.
Definition: MooseFunctor.h:723
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ operator()() [3/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const ElemQpArg qp,
const StateArg state 
) const
inherited

Definition at line 651 of file MooseFunctor.h.

652 {
653  if (_clearance_schedule.count(EXEC_ALWAYS))
654  return evaluate(elem_qp, state);
655 
656  const auto elem_id = elem_qp.elem->id();
657  if (elem_id != _current_qp_map_key)
658  {
659  _current_qp_map_key = elem_id;
661  }
662  auto & qp_data = *_current_qp_map_value;
663  const auto qp = elem_qp.qp;
664  const auto * const qrule = elem_qp.qrule;
665  mooseAssert(qrule, "qrule must be non-null");
666 
667  return queryQpCache(qp, *qrule, qp_data, elem_qp, state);
668 }
dof_id_type _current_qp_map_key
Current key for qp map cache.
Definition: MooseFunctor.h:518
const ExecFlagType EXEC_ALWAYS
Definition: Moose.C:43
std::vector< std::pair< bool, ValueType > > * _current_qp_map_value
Current value for qp map cache.
Definition: MooseFunctor.h:521
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.
ValueType queryQpCache(unsigned int qp, const QBase &qrule, std::vector< std::pair< bool, Moose::ADType< OutputType >::type >> &qp_cache_data, const SpaceArg &space, const StateArg &state) const
check a qp cache and if invalid then evaluate
Definition: MooseFunctor.h:621
std::unordered_map< dof_id_type, std::vector< std::pair< bool, ValueType > > > _qp_to_value
Cached element quadrature point functor property evaluations.
Definition: MooseFunctor.h:528
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ operator()() [4/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const ElemSideQpArg qp,
const StateArg state 
) const
inherited

Definition at line 672 of file MooseFunctor.h.

673 {
674  if (_clearance_schedule.count(EXEC_ALWAYS))
675  return evaluate(elem_side_qp, state);
676 
677  const Elem * const elem = elem_side_qp.elem;
678  mooseAssert(elem, "elem must be non-null");
679  const auto elem_id = elem->id();
680  if (elem_id != _current_side_qp_map_key)
681  {
682  _current_side_qp_map_key = elem_id;
684  }
685  auto & side_qp_data = *_current_side_qp_map_value;
686  const auto side = elem_side_qp.side;
687  const auto qp = elem_side_qp.qp;
688  const auto * const qrule = elem_side_qp.qrule;
689  mooseAssert(qrule, "qrule must be non-null");
690 
691  // Check and see whether we even have sized for this side
692  if (side >= side_qp_data.size())
693  side_qp_data.resize(elem->n_sides());
694 
695  // Ok we were sized enough for our side
696  auto & qp_data = side_qp_data[side];
697  return queryQpCache(qp, *qrule, qp_data, elem_side_qp, state);
698 }
const ExecFlagType EXEC_ALWAYS
Definition: Moose.C:43
std::unordered_map< dof_id_type, std::vector< std::vector< std::pair< bool, ValueType > > > > _side_qp_to_value
Cached element quadrature point functor property evaluations.
Definition: MooseFunctor.h:547
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.
dof_id_type _current_side_qp_map_key
Current key for side-qp map cache.
Definition: MooseFunctor.h:534
std::vector< std::vector< std::pair< bool, ValueType > > > * _current_side_qp_map_value
Current value for side-qp map cache.
Definition: MooseFunctor.h:537
ValueType queryQpCache(unsigned int qp, const QBase &qrule, std::vector< std::pair< bool, Moose::ADType< OutputType >::type >> &qp_cache_data, const SpaceArg &space, const StateArg &state) const
check a qp cache and if invalid then evaluate
Definition: MooseFunctor.h:621
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ operator()() [5/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const ElemPointArg elem_point,
const StateArg state 
) const
inherited

Definition at line 702 of file MooseFunctor.h.

703 {
704  return evaluate(elem_point, state);
705 }
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.

◆ operator()() [6/6]

FunctorBase< Moose::ADType< OutputType >::type >::ValueType Moose::FunctorBase< Moose::ADType< OutputType >::type >::operator() ( const NodeArg node,
const StateArg state 
) const
inherited

Definition at line 716 of file MooseFunctor.h.

717 {
718  return evaluate(node, state);
719 }
virtual ValueType evaluate(const ElemArg &elem, const StateArg &state) const=0
Evaluate the functor with a given element.

◆ order()

Order MooseVariableBase::order ( ) const
inherited

Get the order of this variable Note: Order enum can be implicitly converted to unsigned int.

Definition at line 165 of file MooseVariableBase.C.

Referenced by FEProblemBase::checkDisplacementOrders(), AuxScalarKernel::compute(), ScalarInitialCondition::compute(), ADScalarKernel::computeADJacobian(), ODEKernel::computeJacobian(), FVBoundaryScalarLagrangeMultiplierConstraint::computeJacobian(), FVScalarLagrangeMultiplierConstraint::computeOffDiagJacobian(), ODEKernel::computeOffDiagJacobianScalar(), Kernel::computeOffDiagJacobianScalar(), ScalarLagrangeMultiplier::computeOffDiagJacobianScalar(), MortarScalarBase::computeOffDiagJacobianScalar(), KernelScalarBase::computeOffDiagJacobianScalarLocal(), ArrayDGDiffusion::computeQpJacobian(), DGDiffusion::computeQpJacobian(), DGFunctionDiffusionDirichletBC::computeQpJacobian(), ArrayIntegratedBC::computeQpOffDiagJacobianScalar(), ArrayKernel::computeQpOffDiagJacobianScalar(), ADDGDiffusion::computeQpResidual(), DGDiffusion::computeQpResidual(), DGFunctionDiffusionDirichletBC::computeQpResidual(), ScalarKernel::computeResidual(), ADScalarKernel::computeResidual(), ODETimeKernel::computeResidual(), ODEKernel::computeResidual(), FVBoundaryScalarLagrangeMultiplierConstraint::computeResidual(), FVScalarLagrangeMultiplierConstraint::computeResidual(), KernelScalarBase::computeScalarOffDiagJacobianScalar(), MortarScalarBase::computeScalarOffDiagJacobianScalar(), ProjectionAux::computeValue(), ScalarCoupleable::coupledScalarOrder(), MultiAppPostprocessorToAuxScalarTransfer::execute(), FunctionScalarAux::FunctionScalarAux(), GapValueAux::GapValueAux(), ArrayDGDiffusion::initQpResidual(), NodalPatchRecovery::NodalPatchRecovery(), FEProblemBase::projectInitialConditionOnCustomRange(), ProjectionAux::ProjectionAux(), FEProblemBase::projectSolution(), ScalarComponentIC::ScalarComponentIC(), and MooseVariableBase::validParams().

166 {
167  return _fe_type.order;
168 }
FEType _fe_type
The FEType associated with this variable.

◆ paramError()

template<typename... Args>
void MooseBaseParameterInterface::paramError ( const std::string &  param,
Args...  args 
) const
inherited

Emits an error prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseError - only printing a message using the given args.

Definition at line 237 of file MooseBaseParameterInterface.h.

Referenced by HierarchicalGridPartitioner::_do_partition(), SetupDebugAction::act(), ADConservativeAdvectionBC::ADConservativeAdvectionBC(), DiffusionCG::addFEKernels(), DiffusionFV::addFVKernels(), ADDGKernel::ADDGKernel(), DiffusionCG::addNonlinearVariables(), ReporterPointSource::addPoints(), ADIntegratedBCTempl< T >::ADIntegratedBCTempl(), ADKernelTempl< T >::ADKernelTempl(), ADNodalKernel::ADNodalKernel(), ADPenaltyPeriodicSegmentalConstraint::ADPenaltyPeriodicSegmentalConstraint(), ADPeriodicSegmentalConstraint::ADPeriodicSegmentalConstraint(), AdvancedExtruderGenerator::AdvancedExtruderGenerator(), AdvectiveFluxAux::AdvectiveFluxAux(), ADVectorFunctionDirichletBC::ADVectorFunctionDirichletBC(), AnnularMesh::AnnularMesh(), AnnularMeshGenerator::AnnularMeshGenerator(), ArrayBodyForce::ArrayBodyForce(), ArrayDGKernel::ArrayDGKernel(), ArrayDGLowerDKernel::ArrayDGLowerDKernel(), ArrayDirichletBC::ArrayDirichletBC(), ArrayHFEMDirichletBC::ArrayHFEMDirichletBC(), ArrayIntegratedBC::ArrayIntegratedBC(), ArrayKernel::ArrayKernel(), ArrayLowerDIntegratedBC::ArrayLowerDIntegratedBC(), ArrayParsedAux::ArrayParsedAux(), ArrayPenaltyDirichletBC::ArrayPenaltyDirichletBC(), ArrayVacuumBC::ArrayVacuumBC(), AuxKernelTempl< Real >::AuxKernelTempl(), BlockDeletionGenerator::BlockDeletionGenerator(), BlockWeightedPartitioner::BlockWeightedPartitioner(), BoundsBase::BoundsBase(), BreakMeshByBlockGenerator::BreakMeshByBlockGenerator(), BuildArrayVariableAux::BuildArrayVariableAux(), PiecewiseTabularBase::buildFromFile(), CartesianGridDivision::CartesianGridDivision(), UserObjectInterface::castUserObject(), checkComponent(), MeshGenerator::checkGetMesh(), PostprocessorInterface::checkParam(), PhysicsBase::checkParamsBothSetOrNotSet(), Checkpoint::Checkpoint(), PhysicsBase::checkSecondParamSetOnlyIfFirstOneTrue(), Coupleable::checkVar(), MultiAppTransfer::checkVariable(), PhysicsBase::checkVectorParamsSameLength(), CircularBoundaryCorrectionGenerator::CircularBoundaryCorrectionGenerator(), CircularBoundaryCorrectionGenerator::circularCenterCalculator(), MultiAppGeneralFieldTransfer::closestToPosition(), CoarsenBlockGenerator::CoarsenBlockGenerator(), CombinerGenerator::CombinerGenerator(), CompositionDT::CompositionDT(), ConcentricCircleMeshGenerator::ConcentricCircleMeshGenerator(), LibtorchNeuralNetControl::conditionalParameterError(), ConstantVectorPostprocessor::ConstantVectorPostprocessor(), ContainsPointAux::ContainsPointAux(), CopyValueAux::CopyValueAux(), Coupleable::Coupleable(), CoupledForceTempl< is_ad >::CoupledForceTempl(), CoupledValueFunctionMaterialTempl< is_ad >::CoupledValueFunctionMaterialTempl(), MultiApp::createApp(), MeshGeneratorSystem::createMeshGenerator(), CylindricalGridDivision::CylindricalGridDivision(), ConstantReporter::declareConstantReporterValues(), AccumulateReporter::declareLateValues(), DGKernel::DGKernel(), DGKernelBase::DGKernelBase(), DGLowerDKernel::DGLowerDKernel(), DiffusionFluxAux::DiffusionFluxAux(), DomainUserObject::DomainUserObject(), EigenProblem::EigenProblem(), Eigenvalue::Eigenvalue(), ElementExtremeFunctorValueTempl< is_ad >::ElementExtremeFunctorValueTempl(), ElementExtremeValue::ElementExtremeValue(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), ElementLengthAux::ElementLengthAux(), ElementLpNormAux::ElementLpNormAux(), ElementValueSampler::ElementValueSampler(), ElementVectorL2Error::ElementVectorL2Error(), ReporterPointSource::errorCheck(), MultiAppNearestNodeTransfer::execute(), MultiAppUserObjectTransfer::execute(), ExtraElementIDAux::ExtraElementIDAux(), ExtraElementIntegerDivision::ExtraElementIntegerDivision(), FEProblemSolve::FEProblemSolve(), FillBetweenCurvesGenerator::FillBetweenCurvesGenerator(), FillBetweenSidesetsGenerator::FillBetweenSidesetsGenerator(), ReporterPointSource::fillPoint(), SpatialUserObjectVectorPostprocessor::fillPoints(), CombinerGenerator::fillPositions(), MultiApp::fillPositions(), InternalSideIndicator::finalize(), FixedPointSolve::FixedPointSolve(), ForcingFunctionAux::ForcingFunctionAux(), FunctionArrayAux::FunctionArrayAux(), FunctionValuePostprocessor::FunctionValuePostprocessor(), FunctorADConverterTempl< T >::FunctorADConverterTempl(), FunctorAux::FunctorAux(), FunctorBinnedValuesDivision::FunctorBinnedValuesDivision(), FunctorElementalGradientAuxTempl< is_ad >::FunctorElementalGradientAuxTempl(), FunctorPositions::FunctorPositions(), FunctorVectorElementalAuxTempl< is_ad >::FunctorVectorElementalAuxTempl(), FVFluxBC::FVFluxBC(), FVInterfaceKernel::FVInterfaceKernel(), FVOneVarDiffusionInterface::FVOneVarDiffusionInterface(), FVTwoVarContinuityConstraint::FVTwoVarContinuityConstraint(), BoundaryDeletionGenerator::generate(), ElementsToTetrahedronsConverter::generate(), ExtraNodesetGenerator::generate(), FillBetweenSidesetsGenerator::generate(), PlaneIDMeshGenerator::generate(), RenameBlockGenerator::generate(), RenameBoundaryGenerator::generate(), AddMetaDataGenerator::generate(), FillBetweenCurvesGenerator::generate(), BlockToMeshConverterGenerator::generate(), BreakBoundaryOnSubdomainGenerator::generate(), CutMeshByPlaneGenerator::generate(), FlipSidesetGenerator::generate(), GeneratedMeshGenerator::generate(), CoarsenBlockGenerator::generate(), ParsedSubdomainMeshGenerator::generate(), RefineBlockGenerator::generate(), RefineSidesetGenerator::generate(), BlockDeletionGenerator::generate(), BreakMeshByBlockGenerator::generate(), CombinerGenerator::generate(), MeshCollectionGenerator::generate(), MeshExtruderGenerator::generate(), ParsedCurveGenerator::generate(), StackGenerator::generate(), StitchedMeshGenerator::generate(), AdvancedExtruderGenerator::generate(), BreakMeshByElementGenerator::generate(), CircularBoundaryCorrectionGenerator::generate(), XYDelaunayGenerator::generate(), XYMeshLineCutter::generate(), PatternedMeshGenerator::generate(), SubdomainBoundingBoxGenerator::generate(), GenericFunctorGradientMaterialTempl< is_ad >::GenericFunctorGradientMaterialTempl(), GenericFunctorMaterialTempl< is_ad >::GenericFunctorMaterialTempl(), GenericVectorFunctorMaterialTempl< is_ad >::GenericVectorFunctorMaterialTempl(), PropertyReadFile::getBlockData(), PropertyReadFile::getData(), Sampler::getGlobalSamples(), MultiAppNearestNodeTransfer::getLocalEntitiesAndComponents(), Sampler::getLocalSamples(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), Sampler::getNextLocalRow(), PostprocessorInterface::getPostprocessorNameInternal(), PostprocessorInterface::getPostprocessorValueInternal(), MultiAppNearestNodeTransfer::getTargetLocalNodes(), UserObjectInterface::getUserObjectBase(), UserObjectInterface::getUserObjectName(), HFEMDirichletBC::HFEMDirichletBC(), MultiApp::init(), DistributedPositions::initialize(), BlockWeightedPartitioner::initialize(), BlockRestrictable::initializeBlockRestrictable(), BoundaryRestrictable::initializeBoundaryRestrictable(), PhysicsBase::initializePhysics(), MultiAppCloneReporterTransfer::initialSetup(), ReferenceResidualProblem::initialSetup(), MultiAppVariableValueSamplePostprocessorTransfer::initialSetup(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), MultiAppDofCopyTransfer::initialSetup(), HistogramVectorPostprocessor::initialSetup(), PiecewiseConstantFromCSV::initialSetup(), LibtorchControlValuePostprocessor::initialSetup(), MultiAppGeneralFieldTransfer::initialSetup(), AddMetaDataGenerator::inputChecker(), IntegratedBC::IntegratedBC(), InterfaceDiffusiveFluxIntegralTempl< is_ad >::InterfaceDiffusiveFluxIntegralTempl(), InterfaceValueUserObjectAux::InterfaceValueUserObjectAux(), InterpolatedStatefulMaterialTempl< T >::InterpolatedStatefulMaterialTempl(), InversePowerMethod::InversePowerMethod(), IterationAdaptiveDT::IterationAdaptiveDT(), MultiApp::keepSolutionDuringRestore(), Kernel::Kernel(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), LinearCombinationFunction::LinearCombinationFunction(), LowerDIntegratedBC::LowerDIntegratedBC(), PNGOutput::makeMeshFunc(), MatCoupledForce::MatCoupledForce(), MaterialADConverterTempl< T >::MaterialADConverterTempl(), MaterialFunctorConverterTempl< T >::MaterialFunctorConverterTempl(), PatternedMeshGenerator::mergeSubdomainNameMaps(), MeshCollectionGenerator::MeshCollectionGenerator(), MeshDiagnosticsGenerator::MeshDiagnosticsGenerator(), MeshDivisionAux::MeshDivisionAux(), MeshGenerator::MeshGenerator(), MooseLinearVariableFV< Real >::MooseLinearVariableFV(), MoosePreconditioner::MoosePreconditioner(), MooseVariableBase::MooseVariableBase(), MortarConstraintBase::MortarConstraintBase(), MortarNodalAuxKernelTempl< ComputeValueType >::MortarNodalAuxKernelTempl(), MultiApp::moveApp(), MoveNodeGenerator::MoveNodeGenerator(), MultiApp::MultiApp(), MultiAppCloneReporterTransfer::MultiAppCloneReporterTransfer(), MultiAppGeneralFieldNearestLocationTransfer::MultiAppGeneralFieldNearestLocationTransfer(), MultiAppGeneralFieldShapeEvaluationTransfer::MultiAppGeneralFieldShapeEvaluationTransfer(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppGeometricInterpolationTransfer::MultiAppGeometricInterpolationTransfer(), MultiAppNearestNodeTransfer::MultiAppNearestNodeTransfer(), MultiAppPostprocessorInterpolationTransfer::MultiAppPostprocessorInterpolationTransfer(), MultiAppPostprocessorToAuxScalarTransfer::MultiAppPostprocessorToAuxScalarTransfer(), MultiAppPostprocessorTransfer::MultiAppPostprocessorTransfer(), MultiAppProjectionTransfer::MultiAppProjectionTransfer(), MultiAppReporterTransfer::MultiAppReporterTransfer(), MultiAppScalarToAuxScalarTransfer::MultiAppScalarToAuxScalarTransfer(), MultiAppShapeEvaluationTransfer::MultiAppShapeEvaluationTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppUserObjectTransfer::MultiAppUserObjectTransfer(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), MultiAppVariableValueSampleTransfer::MultiAppVariableValueSampleTransfer(), MultiAppVectorPostprocessorTransfer::MultiAppVectorPostprocessorTransfer(), NestedDivision::NestedDivision(), NodalBC::NodalBC(), NodalEqualValueConstraint::NodalEqualValueConstraint(), NodalKernel::NodalKernel(), NodalPatchRecoveryAux::NodalPatchRecoveryAux(), NodalValueSampler::NodalValueSampler(), Output::Output(), ParsedCurveGenerator::ParsedCurveGenerator(), ParsedElementDeletionGenerator::ParsedElementDeletionGenerator(), ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl(), ParsedNodeTransformGenerator::ParsedNodeTransformGenerator(), PatchMeshGenerator::PatchMeshGenerator(), PatternedMeshGenerator::PatternedMeshGenerator(), PenaltyPeriodicSegmentalConstraint::PenaltyPeriodicSegmentalConstraint(), PeriodicSegmentalConstraint::PeriodicSegmentalConstraint(), PIDTransientControl::PIDTransientControl(), PlaneDeletionGenerator::PlaneDeletionGenerator(), PlaneIDMeshGenerator::PlaneIDMeshGenerator(), PointwiseRenormalizeVector::PointwiseRenormalizeVector(), PolyLineMeshGenerator::PolyLineMeshGenerator(), ReporterInterface::possiblyCheckHasReporter(), VectorPostprocessorInterface::possiblyCheckHasVectorPostprocessor(), LibmeshPartitioner::prepareBlocksForSubdomainPartitioner(), ProjectedMaterialPropertyNodalPatchRecoveryAux::ProjectedMaterialPropertyNodalPatchRecoveryAux(), PropertyReadFile::PropertyReadFile(), RandomIC::RandomIC(), MultiApp::readCommandLineArguments(), PropertyReadFile::readData(), SolutionUserObject::readXda(), ReferenceResidualProblem::ReferenceResidualProblem(), RefineBlockGenerator::RefineBlockGenerator(), RefineSidesetGenerator::RefineSidesetGenerator(), RenameBlockGenerator::RenameBlockGenerator(), RenameBoundaryGenerator::RenameBoundaryGenerator(), ReporterPointSource::ReporterPointSource(), SecondTimeDerivativeAux::SecondTimeDerivativeAux(), MooseMesh::setPartitioner(), SideSetsGeneratorBase::setup(), TimeSequenceStepperBase::setupSequence(), SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(), SingleRankPartitioner::SingleRankPartitioner(), SphericalGridDivision::SphericalGridDivision(), SymmetryTransformGenerator::SymmetryTransformGenerator(), Terminator::Terminator(), TimeDerivativeAux::TimeDerivativeAux(), Transfer::Transfer(), TransformGenerator::TransformGenerator(), TransientMultiApp::TransientMultiApp(), ParsedCurveGenerator::tSectionSpaceDefiner(), UniqueExtraIDMeshGenerator::UniqueExtraIDMeshGenerator(), UserObject::UserObject(), VariableCondensationPreconditioner::VariableCondensationPreconditioner(), VectorBodyForce::VectorBodyForce(), VectorFunctionDirichletBC::VectorFunctionDirichletBC(), VectorFunctionIC::VectorFunctionIC(), VolumeAux::VolumeAux(), XYDelaunayGenerator::XYDelaunayGenerator(), and XYMeshLineCutter::XYMeshLineCutter().

238 {
239  Moose::show_trace = false;
240  _moose_base.callMooseError(paramErrorMsg(param, std::forward<Args>(args)...),
241  /* with_prefix = */ false);
242  Moose::show_trace = true;
243 }
bool show_trace
Set to true (the default) to print the stack trace with error and warning messages - false to omit it...
Definition: Moose.C:649
const MooseBase & _moose_base
The MooseBase object that inherits this class.
std::string paramErrorMsg(const std::string &param, Args... args) const
void callMooseError(std::string msg, const bool with_prefix) const
Calls moose error with the message msg.
Definition: MooseBase.C:33

◆ parameters()

const InputParameters& MooseBaseParameterInterface::parameters ( ) const
inlineinherited

Get the parameters of the object.

Returns
The parameters of the object

Definition at line 62 of file MooseBaseParameterInterface.h.

Referenced by SetupDebugAction::act(), CommonOutputAction::act(), Action::Action(), FEProblemBase::addAnyRedistributers(), FEProblemBase::addAuxKernel(), FEProblemBase::addAuxScalarKernel(), DisplacedProblem::addAuxVariable(), FEProblemBase::addBoundaryCondition(), FEProblemBase::addConstraint(), FEProblemBase::addDamper(), FEProblemBase::addDGKernel(), FEProblemBase::addDiracKernel(), FEProblemBase::addDistribution(), FEProblemBase::addFunction(), FEProblemBase::addFunctorMaterial(), FEProblemBase::addFVBC(), FEProblemBase::addFVInitialCondition(), FEProblemBase::addFVInterfaceKernel(), FEProblemBase::addFVKernel(), FEProblemBase::addIndicator(), FEProblemBase::addInitialCondition(), FEProblemBase::addInterfaceKernel(), FEProblemBase::addInterfaceMaterial(), FEProblemBase::addKernel(), FEProblemBase::addLinearFVBC(), FEProblemBase::addLinearFVKernel(), FEProblem::addLineSearch(), FEProblemBase::addMarker(), FEProblemBase::addMaterial(), FEProblemBase::addMaterialHelper(), FEProblemBase::addMeshDivision(), FEProblemBase::addMultiApp(), FEProblemBase::addNodalKernel(), FEProblemBase::addObject(), FEProblemBase::addObjectParamsHelper(), FEProblemBase::addOutput(), FEProblemBase::addPostprocessor(), FEProblemBase::addPredictor(), FEProblemBase::addReporter(), FEProblemBase::addSampler(), FEProblemBase::addScalarKernel(), FEProblemBase::addTimeIntegrator(), FEProblemBase::addTransfer(), FEProblemBase::addUserObject(), DisplacedProblem::addVariable(), FEProblemBase::addVectorPostprocessor(), ADPiecewiseLinearInterpolationMaterial::ADPiecewiseLinearInterpolationMaterial(), AdvancedOutput::AdvancedOutput(), ADVectorFunctionDirichletBC::ADVectorFunctionDirichletBC(), AnnularMesh::AnnularMesh(), AnnularMeshGenerator::AnnularMeshGenerator(), assemble_l2(), Moose::assemble_matrix(), PhysicsBase::assertParamDefined(), Action::associateWithParameter(), AuxKernelTempl< Real >::AuxKernelTempl(), AuxScalarKernel::AuxScalarKernel(), BoundsBase::BoundsBase(), MooseMesh::buildTypedMesh(), UserObjectInterface::castUserObject(), PostprocessorInterface::checkParam(), PhysicsBase::checkSecondParamSetOnlyIfFirstOneTrue(), OversampleOutput::cloneMesh(), Moose::compute_bounds(), Moose::compute_jacobian(), Moose::compute_nearnullspace(), Moose::compute_nullspace(), Moose::compute_postcheck(), Moose::compute_transpose_nullspace(), LibtorchNeuralNetControl::conditionalParameterError(), Console::Console(), CommonOutputAction::create(), MultiApp::createApp(), Postprocessor::declareValue(), DumpObjectsProblem::deduceNecessaryParameters(), DumpObjectsProblem::dumpObjectHelper(), EigenProblem::EigenProblem(), Eigenvalue::Eigenvalue(), Executor::Executor(), Exodus::Exodus(), FEProblem::FEProblem(), FEProblemBase::FEProblemBase(), FixedPointSolve::FixedPointSolve(), FunctorSmootherTempl< T >::FunctorSmootherTempl(), GapValueAux::GapValueAux(), ParsedSubdomainMeshGenerator::generate(), MooseBaseParameterInterface::getCheckedPointerParam(), ActionWarehouse::getCurrentActionName(), ExecutorInterface::getExecutor(), Material::getMaterial(), ReporterInterface::getReporterName(), Reporter::getReporterValueName(), UserObjectInterface::getUserObjectName(), VectorPostprocessorInterface::getVectorPostprocessorName(), GhostingUserObject::GhostingUserObject(), AttribSystem::initFrom(), AttribDisplaced::initFrom(), BlockRestrictable::initializeBlockRestrictable(), FullSolveMultiApp::initialSetup(), FEProblemBase::initNullSpaceVectors(), InterfaceDiffusiveFluxIntegralTempl< is_ad >::InterfaceDiffusiveFluxIntegralTempl(), InterfaceIntegralVariableValuePostprocessor::InterfaceIntegralVariableValuePostprocessor(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), isValid(), IterationAdaptiveDT::IterationAdaptiveDT(), LibtorchNeuralNetControl::LibtorchNeuralNetControl(), MaterialVectorPostprocessor::MaterialVectorPostprocessor(), MooseObject::MooseObject(), MooseVariableInterface< Real >::MooseVariableInterface(), MultiApp::MultiApp(), MultiAppGeneralFieldTransfer::MultiAppGeneralFieldTransfer(), MultiAppGeneralFieldUserObjectTransfer::MultiAppGeneralFieldUserObjectTransfer(), MultiAppTransfer::MultiAppTransfer(), MultiAppVariableValueSamplePostprocessorTransfer::MultiAppVariableValueSamplePostprocessorTransfer(), NodeFaceConstraint::NodeFaceConstraint(), OverlayMeshGenerator::OverlayMeshGenerator(), PatchMeshGenerator::PatchMeshGenerator(), PenetrationAux::PenetrationAux(), PicardSolve::PicardSolve(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), ProjectedStatefulMaterialStorageAction::processProperty(), PropertyReadFile::PropertyReadFile(), PseudoTimestep::PseudoTimestep(), RandomIC::RandomIC(), InputParameterWarehouse::removeInputParameters(), OutputWarehouse::resetFileBase(), FEProblem::setInputParametersFEProblem(), FEProblemBase::setInputParametersFEProblem(), SideSetsGeneratorBase::setup(), SideSetsFromBoundingBoxGenerator::SideSetsFromBoundingBoxGenerator(), SteffensenSolve::SteffensenSolve(), DumpObjectsProblem::stringifyParameters(), TaggingInterface::TaggingInterface(), Transfer::Transfer(), Transient::Transient(), VectorBodyForce::VectorBodyForce(), VectorFunctionDirichletBC::VectorFunctionDirichletBC(), VectorFunctionIC::VectorFunctionIC(), and VectorMagnitudeFunctorMaterialTempl< is_ad >::VectorMagnitudeFunctorMaterialTempl().

62 { return _pars; }
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.

◆ paramInfo()

template<typename... Args>
void MooseBaseParameterInterface::paramInfo ( const std::string &  param,
Args...  args 
) const
inherited

Emits an informational message prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseInfo - only printing a message using the given args.

Definition at line 254 of file MooseBaseParameterInterface.h.

Referenced by TransientMultiApp::TransientMultiApp().

255 {
256  mooseInfo(paramErrorMsg(param, std::forward<Args>(args)...));
257 }
void mooseInfo(Args &&... args)
Emit an informational message with the given stringified, concatenated args.
Definition: MooseError.h:366
std::string paramErrorMsg(const std::string &param, Args... args) const

◆ paramWarning()

template<typename... Args>
void MooseBaseParameterInterface::paramWarning ( const std::string &  param,
Args...  args 
) const
inherited

Emits a warning prefixed with the file and line number of the given param (from the input file) along with the full parameter path+name followed by the given args as the message.

If this object's parameters were not created directly by the Parser, then this function falls back to the normal behavior of mooseWarning - only printing a message using the given args.

Definition at line 247 of file MooseBaseParameterInterface.h.

Referenced by MultiAppNearestNodeTransfer::execute(), FEProblemSolve::FEProblemSolve(), FixedPointSolve::FixedPointSolve(), UniqueExtraIDMeshGenerator::generate(), PlaneIDMeshGenerator::generate(), Terminator::initialSetup(), and MooseMesh::MooseMesh().

248 {
249  mooseWarning(paramErrorMsg(param, std::forward<Args>(args)...));
250 }
void mooseWarning(Args &&... args)
Emit a warning message with the given stringified, concatenated args.
Definition: MooseError.h:333
std::string paramErrorMsg(const std::string &param, Args... args) const

◆ phi()

template<typename OutputType>
const FieldVariablePhiValue& MooseVariableFE< OutputType >::phi ( ) const
inlineoverridevirtual

Return the variable's elemental shape functions.

Implements MooseVariableField< OutputType >.

Definition at line 190 of file MooseVariableFE.h.

190 { return _element_data->phi(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ phiFace()

template<typename OutputType>
const FieldVariablePhiValue& MooseVariableFE< OutputType >::phiFace ( ) const
inlinefinaloverridevirtual

Return the variable's shape functions on an element face.

Implements MooseVariableField< OutputType >.

Definition at line 203 of file MooseVariableFE.h.

Referenced by MortarConstraint::computeJacobian(), ArrayDGKernel::computeOffDiagElemNeighJacobian(), and MortarScalarBase::computeScalarOffDiagJacobian().

203 { return _element_data->phiFace(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ phiFaceNeighbor()

template<typename OutputType>
const FieldVariablePhiValue& MooseVariableFE< OutputType >::phiFaceNeighbor ( ) const
inlinefinaloverridevirtual

Return the variable's shape functions on a neighboring element face.

Implements MooseVariableField< OutputType >.

Definition at line 229 of file MooseVariableFE.h.

230  {
231  return _neighbor_data->phiFace();
232  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ phiFaceNeighborSize()

template<typename OutputType>
virtual std::size_t MooseVariableFE< OutputType >::phiFaceNeighborSize ( ) const
inlinefinalvirtual

Return phiFaceNeighbor size.

Implements MooseVariableFieldBase.

Definition at line 651 of file MooseVariableFE.h.

651 { return _neighbor_data->phiFaceSize(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ phiFaceSize()

template<typename OutputType>
virtual std::size_t MooseVariableFE< OutputType >::phiFaceSize ( ) const
inlinefinalvirtual

Return phiFace size.

Implements MooseVariableFieldBase.

Definition at line 643 of file MooseVariableFE.h.

643 { return _element_data->phiFaceSize(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ phiLower()

template<typename OutputType>
virtual const FieldVariablePhiValue& MooseVariableFE< OutputType >::phiLower ( ) const
inlineoverridevirtual

Return the variable's shape functions on a lower-dimensional element.

Implements MooseVariableField< OutputType >.

Definition at line 245 of file MooseVariableFE.h.

Referenced by LowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDOffDiagJacobian(), DGLowerDKernel::computeOffDiagLowerDJacobian(), and ArrayDGLowerDKernel::computeOffDiagLowerDJacobian().

245 { return _lower_data->phi(); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ phiLowerSize()

template<typename OutputType>
std::size_t MooseVariableFE< OutputType >::phiLowerSize ( ) const
inlinefinalvirtual

Return the number of shape functions on the lower dimensional element for this variable.

Implements MooseVariableFieldBase.

Definition at line 653 of file MooseVariableFE.h.

653 { return _lower_data->phiSize(); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ phiNeighbor()

template<typename OutputType>
const FieldVariablePhiValue& MooseVariableFE< OutputType >::phiNeighbor ( ) const
inlinefinaloverridevirtual

Return the variable's shape functions on a neighboring element.

Implements MooseVariableField< OutputType >.

Definition at line 216 of file MooseVariableFE.h.

216 { return _neighbor_data->phi(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ phiNeighborSize()

template<typename OutputType>
virtual std::size_t MooseVariableFE< OutputType >::phiNeighborSize ( ) const
inlinefinalvirtual

Return phiNeighbor size.

Implements MooseVariableFieldBase.

Definition at line 647 of file MooseVariableFE.h.

647 { return _neighbor_data->phiSize(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ phiSize()

template<typename OutputType>
virtual std::size_t MooseVariableFE< OutputType >::phiSize ( ) const
inlinefinalvirtual

Return phi size.

Implements MooseVariableFieldBase.

Definition at line 639 of file MooseVariableFE.h.

639 { return _element_data->phiSize(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ prepare()

template<typename OutputType >
void MooseVariableFE< OutputType >::prepare ( )
overridevirtual

Prepare the elemental degrees of freedom.

Implements MooseVariableFieldBase.

Definition at line 92 of file MooseVariableFE.C.

93 {
94  _element_data->prepare();
95 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ prepareAux()

template<typename OutputType >
void MooseVariableFE< OutputType >::prepareAux ( )
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 113 of file MooseVariableFE.C.

114 {
115  _element_data->prepareAux();
116  _neighbor_data->prepareAux();
117  _lower_data->prepareAux();
118 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ prepareIC()

template<typename OutputType >
void MooseVariableFE< OutputType >::prepareIC ( )
overridevirtual

Prepare the initial condition.

Implements MooseVariableFieldBase.

Definition at line 390 of file MooseVariableFE.C.

391 {
392  _element_data->prepareIC();
393 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ prepareLowerD()

template<typename OutputType >
void MooseVariableFE< OutputType >::prepareLowerD ( )
overridevirtual

Prepare a lower dimensional element's degrees of freedom.

Implements MooseVariableFieldBase.

Definition at line 106 of file MooseVariableFE.C.

107 {
108  _lower_data->prepare();
109 }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ prepareNeighbor()

template<typename OutputType >
void MooseVariableFE< OutputType >::prepareNeighbor ( )
overridevirtual

Prepare the neighbor element degrees of freedom.

Implements MooseVariableFieldBase.

Definition at line 99 of file MooseVariableFE.C.

100 {
101  _neighbor_data->prepare();
102 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ reinitAux()

template<typename OutputType >
void MooseVariableFE< OutputType >::reinitAux ( )
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 129 of file MooseVariableFE.C.

130 {
131  _element_data->reinitAux();
132 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ reinitAuxNeighbor()

template<typename OutputType >
void MooseVariableFE< OutputType >::reinitAuxNeighbor ( )
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 136 of file MooseVariableFE.C.

137 {
138  _neighbor_data->reinitAux();
139 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ reinitNode()

template<typename OutputType >
void MooseVariableFE< OutputType >::reinitNode ( )
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 122 of file MooseVariableFE.C.

123 {
124  _element_data->reinitNode();
125 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ reinitNodes()

template<typename OutputType >
void MooseVariableFE< OutputType >::reinitNodes ( const std::vector< dof_id_type > &  nodes)
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 143 of file MooseVariableFE.C.

144 {
145  _element_data->reinitNodes(nodes);
146 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ reinitNodesNeighbor()

template<typename OutputType >
void MooseVariableFE< OutputType >::reinitNodesNeighbor ( const std::vector< dof_id_type > &  nodes)
overridevirtual

Implements MooseVariableFieldBase.

Definition at line 150 of file MooseVariableFE.C.

151 {
152  _neighbor_data->reinitNodes(nodes);
153 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ residualSetup()

template<typename OutputType >
void MooseVariableFE< OutputType >::residualSetup ( )
overridevirtual

Reimplemented from MooseVariableField< OutputType >.

Definition at line 1348 of file MooseVariableFE.C.

1349 {
1353 }
const unsigned int invalid_uint
std::pair< const Elem *, unsigned int > _current_elem_side_qp_functor_elem_side
Keep track of the current elem-side-qp functor element and side in order to enable local caching (e...
const Elem * _current_elem_qp_functor_elem
Keep track of the current elem-qp functor element in order to enable local caching (e...
virtual void residualSetup() override

◆ scalingFactor() [1/2]

void MooseVariableBase::scalingFactor ( const std::vector< Real > &  factor)
inherited

Set the scaling factor for this variable.

Definition at line 191 of file MooseVariableBase.C.

Referenced by ADScalarKernel::computeADJacobian(), ADDGKernel::computeElemNeighJacobian(), FVScalarLagrangeMultiplierInterface::computeJacobian(), FVBoundaryScalarLagrangeMultiplierConstraint::computeJacobian(), FVFluxBC::computeJacobian(), ADMortarConstraint::computeJacobian(), FVElementalKernel::computeJacobian(), ADKernelScalarBase::computeJacobian(), ADNodalKernel::computeJacobian(), NodalKernel::computeJacobian(), FVFluxKernel::computeJacobian(), ADMortarScalarBase::computeJacobian(), NodalConstraint::computeJacobian(), FVInterfaceKernel::computeJacobian(), ADDGKernel::computeOffDiagElemNeighJacobian(), FVScalarLagrangeMultiplierConstraint::computeOffDiagJacobian(), NodalKernel::computeOffDiagJacobian(), MortarScalarBase::computeOffDiagJacobianScalar(), KernelScalarBase::computeOffDiagJacobianScalarLocal(), CoupledTiedValueConstraint::computeQpJacobian(), TiedValueConstraint::computeQpJacobian(), CoupledTiedValueConstraint::computeQpResidual(), TiedValueConstraint::computeQpResidual(), FVScalarLagrangeMultiplierInterface::computeResidual(), TimeNodalKernel::computeResidual(), FVScalarLagrangeMultiplierConstraint::computeResidual(), FVBoundaryScalarLagrangeMultiplierConstraint::computeResidual(), ADNodalKernel::computeResidual(), NodalKernel::computeResidual(), ADKernelScalarBase::computeResidual(), NodalConstraint::computeResidual(), ADMortarScalarBase::computeResidual(), MortarScalarBase::computeResidual(), FVScalarLagrangeMultiplierConstraint::computeResidualAndJacobian(), FVElementalKernel::computeResidualAndJacobian(), ADKernelScalarBase::computeResidualAndJacobian(), MortarScalarBase::computeScalarJacobian(), KernelScalarBase::computeScalarJacobian(), MortarScalarBase::computeScalarOffDiagJacobian(), KernelScalarBase::computeScalarOffDiagJacobian(), KernelScalarBase::computeScalarOffDiagJacobianScalar(), MortarScalarBase::computeScalarOffDiagJacobianScalar(), KernelScalarBase::computeScalarResidual(), TagMatrixAux::computeValue(), TagVectorAux::computeValue(), ScalarTagVectorAux::computeValue(), ScalarTagMatrixAux::computeValue(), and ReferenceResidualProblem::initialSetup().

192 {
193  mooseAssert(factor.size() == _count, "Inconsistent scaling factor size");
194  for (const auto i : make_range(_count))
195  _scaling_factor[i] = factor[i];
196 }
std::vector< Real > _scaling_factor
scaling factor for this variable
const unsigned int _count
Number of variables in the array.
IntRange< T > make_range(T beg, T end)

◆ scalingFactor() [2/2]

Real MooseVariableBase::scalingFactor ( ) const
inlineinherited

Get the scaling factor for this variable.

Definition at line 95 of file MooseVariableBase.h.

Referenced by MooseVariableBase::MooseVariableBase().

95 { return _scaling_factor[0]; }
std::vector< Real > _scaling_factor
scaling factor for this variable

◆ secondPhi()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiSecond & MooseVariableFE< OutputType >::secondPhi ( ) const
finaloverridevirtual

Return the rank-2 tensor of second derivatives of the variable's elemental shape functions.

Implements MooseVariableField< OutputType >.

Definition at line 715 of file MooseVariableFE.C.

716 {
717  return _element_data->secondPhi();
718 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondPhiFace()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiSecond & MooseVariableFE< OutputType >::secondPhiFace ( ) const
finaloverridevirtual

Return the rank-2 tensor of second derivatives of the variable's shape functions on an element face.

Implements MooseVariableField< OutputType >.

Definition at line 736 of file MooseVariableFE.C.

737 {
738  return _element_data->secondPhiFace();
739 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondPhiFaceNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiSecond & MooseVariableFE< OutputType >::secondPhiFaceNeighbor ( ) const
finaloverridevirtual

Return the rank-2 tensor of second derivatives of the variable's shape functions on a neighboring element face.

Implements MooseVariableField< OutputType >.

Definition at line 778 of file MooseVariableFE.C.

779 {
780  return _neighbor_data->secondPhiFace();
781 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ secondPhiNeighbor()

template<typename OutputType >
const MooseVariableFE< OutputType >::FieldVariablePhiSecond & MooseVariableFE< OutputType >::secondPhiNeighbor ( ) const
finaloverridevirtual

Return the rank-2 tensor of second derivatives of the variable's shape functions on a neighboring element.

Implements MooseVariableField< OutputType >.

Definition at line 757 of file MooseVariableFE.C.

758 {
759  return _neighbor_data->secondPhi();
760 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ secondSln()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSln ( ) const
inline

element seconds

Definition at line 312 of file MooseVariableFE.h.

312 { return _element_data->secondSln(Moose::Current); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondSlnNeighbor()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnNeighbor ( ) const
inline

neighbor solution seconds

Definition at line 438 of file MooseVariableFE.h.

439  {
440  return _neighbor_data->secondSln(Moose::Current);
441  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ secondSlnOld()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnOld ( ) const
inline

Definition at line 313 of file MooseVariableFE.h.

313 { return _element_data->secondSln(Moose::Old); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondSlnOlder()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnOlder ( ) const
inline

Definition at line 314 of file MooseVariableFE.h.

315  {
316  return _element_data->secondSln(Moose::Older);
317  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondSlnOlderNeighbor()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnOlderNeighbor ( ) const
inline

Definition at line 446 of file MooseVariableFE.h.

447  {
448  return _neighbor_data->secondSln(Moose::Older);
449  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ secondSlnOldNeighbor()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnOldNeighbor ( ) const
inline

Definition at line 442 of file MooseVariableFE.h.

443  {
444  return _neighbor_data->secondSln(Moose::Old);
445  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ secondSlnPreviousNL()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnPreviousNL ( ) const
inline

Definition at line 318 of file MooseVariableFE.h.

319  {
320  return _element_data->secondSln(Moose::PreviousNL);
321  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ secondSlnPreviousNLNeighbor()

template<typename OutputType>
const FieldVariableSecond& MooseVariableFE< OutputType >::secondSlnPreviousNLNeighbor ( ) const
inline

Definition at line 450 of file MooseVariableFE.h.

451  {
452  return _neighbor_data->secondSln(Moose::PreviousNL);
453  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ setActiveTags()

template<typename OutputType >
void MooseVariableFE< OutputType >::setActiveTags ( const std::set< TagID > &  vtags)
overridevirtual

Set the active vector tags.

Parameters
vtagsAdditional vector tags that this variable will need to query at dof indices for, in addition to our own required solution tags

Reimplemented from MooseVariableBase.

Definition at line 856 of file MooseVariableFE.h.

857 {
858  _element_data->setActiveTags(vtags);
859  _neighbor_data->setActiveTags(vtags);
860  _lower_data->setActiveTags(vtags);
861 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ setCacheClearanceSchedule()

void Moose::FunctorBase< Moose::ADType< OutputType >::type >::setCacheClearanceSchedule ( const std::set< ExecFlagType > &  clearance_schedule)
inherited

Set how often to clear the functor evaluation cache.

Definition at line 709 of file MooseFunctor.h.

710 {
711  _clearance_schedule = clearance_schedule;
712 }
std::set< ExecFlagType > _clearance_schedule
How often to clear the material property cache.
Definition: MooseFunctor.h:512

◆ setDofValue()

template<typename OutputType >
void MooseVariableFE< OutputType >::setDofValue ( const OutputData value,
unsigned int  index 
)
overridevirtual

Degree of freedom value setters.

Implements MooseVariableField< OutputType >.

Definition at line 686 of file MooseVariableFE.C.

687 {
688  _element_data->setDofValue(value, index);
689 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ setDofValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::setDofValues ( const DenseVector< OutputData > &  values)
overridevirtual

Set local DOF values and evaluate the values on quadrature points.

Implements MooseVariableField< OutputType >.

Definition at line 693 of file MooseVariableFE.C.

694 {
695  _element_data->setDofValues(values);
696 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ setLowerDofValues()

template<typename OutputType >
void MooseVariableFE< OutputType >::setLowerDofValues ( const DenseVector< OutputData > &  values)
overridevirtual

Set local DOF values for a lower dimensional element and evaluate the values on quadrature points.

Implements MooseVariableField< OutputType >.

Definition at line 700 of file MooseVariableFE.C.

701 {
702  _lower_data->setDofValues(values);
703 }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ setNodalValue()

template<typename OutputType>
void MooseVariableFE< OutputType >::setNodalValue ( const OutputType &  value,
unsigned int  idx = 0 
)
overridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 679 of file MooseVariableFE.C.

Referenced by ElementIntegralIndicator::computeIndicator(), and Marker::computeMarker().

680 {
681  _element_data->setNodalValue(value, idx);
682 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ sln()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::sln ( ) const
inlineoverridevirtual

element solutions

Implements MooseVariableField< OutputType >.

Definition at line 284 of file MooseVariableFE.h.

Referenced by MultiAppVariableValueSamplePostprocessorTransfer::execute(), and FindValueOnLine::getValueAtPoint().

284 { return _element_data->sln(Moose::Current); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ slnLower()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnLower ( ) const
inline

Definition at line 493 of file MooseVariableFE.h.

493 { return _lower_data->sln(Moose::Current); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ slnLowerOld()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnLowerOld ( ) const
inline

Definition at line 494 of file MooseVariableFE.h.

494 { return _lower_data->sln(Moose::Old); }
std::unique_ptr< MooseVariableData< OutputType > > _lower_data
Holder for all the data associated with the lower dimeensional element.

◆ slnNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnNeighbor ( ) const
inlineoverridevirtual

neighbor solutions

Implements MooseVariableField< OutputType >.

Definition at line 398 of file MooseVariableFE.h.

399  {
400  return _neighbor_data->sln(Moose::Current);
401  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ slnOld()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnOld ( ) const
inlineoverridevirtual
Returns
the old elemental solution, e.g. that of the previous timestep

Implements MooseVariableField< OutputType >.

Definition at line 285 of file MooseVariableFE.h.

285 { return _element_data->sln(Moose::Old); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ slnOlder()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnOlder ( ) const
inlineoverridevirtual
Returns
the older elemental solution, e.g. that of two timesteps ago

Implements MooseVariableField< OutputType >.

Definition at line 286 of file MooseVariableFE.h.

286 { return _element_data->sln(Moose::Older); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ slnOlderNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnOlderNeighbor ( ) const
inline

Definition at line 406 of file MooseVariableFE.h.

406 { return _neighbor_data->sln(Moose::Older); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ slnOldNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnOldNeighbor ( ) const
inlineoverridevirtual
Returns
the old neighbor solution, e.g. that of the previous timestep

Implements MooseVariableField< OutputType >.

Definition at line 402 of file MooseVariableFE.h.

403  {
404  return _neighbor_data->sln(Moose::Old);
405  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ slnPreviousNL()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnPreviousNL ( ) const
inline

Definition at line 287 of file MooseVariableFE.h.

287 { return _element_data->sln(Moose::PreviousNL); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ slnPreviousNLNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::slnPreviousNLNeighbor ( ) const
inline

Definition at line 407 of file MooseVariableFE.h.

408  {
409  return _neighbor_data->sln(Moose::PreviousNL);
410  }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ subdomainSetup()

void SetupInterface::subdomainSetup ( )
virtualinherited

Gets called when the subdomain changes (i.e.

in a Jacobian or residual loop) and before this object is asked to do its job

Reimplemented in MaterialBase, Material, NodalUserObject, GeneralUserObject, Constraint, and ThreadedGeneralUserObject.

Definition at line 60 of file SetupInterface.C.

61 {
62 }

◆ supportsElemSideQpArg()

template<typename OutputType>
bool MooseVariableFE< OutputType >::supportsElemSideQpArg ( ) const
inlinefinaloverridevirtual

Whether this functor supports evaluation with ElemSideQpArg.

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 711 of file MooseVariableFE.h.

711 { return true; }

◆ supportsFaceArg()

template<typename OutputType>
bool MooseVariableFE< OutputType >::supportsFaceArg ( ) const
inlinefinaloverridevirtual

Whether this functor supports evaluation with FaceArg.

Implements Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Definition at line 710 of file MooseVariableFE.h.

710 { return true; }

◆ sys() [1/2]

SystemBase& MooseVariableBase::sys ( )
inlineinherited

Get the system this variable is part of.

Definition at line 59 of file MooseVariableBase.h.

Referenced by ADDGKernel::ADDGKernel(), FEProblemBase::addInitialCondition(), LinearFVFluxKernel::addMatrixContribution(), LinearFVElementalKernel::addMatrixContribution(), LinearFVElementalKernel::addRightHandSideContribution(), LinearFVFluxKernel::addRightHandSideContribution(), ADIntegratedBCTempl< T >::ADIntegratedBCTempl(), MultiAppConservativeTransfer::adjustTransferredSolution(), MultiAppConservativeTransfer::adjustTransferredSolutionNearestPoint(), ADKernelTempl< T >::ADKernelTempl(), ArrayDGKernel::ArrayDGKernel(), ArrayIntegratedBC::ArrayIntegratedBC(), ArrayKernel::ArrayKernel(), MultiAppGeneralFieldNearestLocationTransfer::buildKDTrees(), MultiAppGeneralFieldShapeEvaluationTransfer::buildMeshFunctions(), MooseMesh::cacheFaceInfoVariableOwnership(), FVBoundaryScalarLagrangeMultiplierConstraint::computeJacobian(), FVFluxBC::computeJacobian(), FVFluxKernel::computeJacobian(), FVInterfaceKernel::computeJacobian(), FVOrthogonalBoundaryDiffusion::computeQpResidual(), FVBoundaryScalarLagrangeMultiplierConstraint::computeResidual(), FVFluxBC::computeResidual(), FVFluxKernel::computeResidual(), FVInterfaceKernel::computeResidual(), DGKernel::DGKernel(), MultiAppPostprocessorToAuxScalarTransfer::execute(), MultiAppScalarToAuxScalarTransfer::execute(), MultiAppVariableValueSampleTransfer::execute(), MultiAppVariableValueSamplePostprocessorTransfer::execute(), MultiAppNearestNodeTransfer::execute(), MultiAppProjectionTransfer::execute(), MultiAppGeometricInterpolationTransfer::execute(), MultiAppUserObjectTransfer::execute(), MultiAppGeometricInterpolationTransfer::fillSourceInterpolationPoints(), LinearFVFluxKernel::hasFaceSide(), LinearFVBoundaryCondition::hasFaceSide(), FVBoundaryCondition::hasFaceSide(), MultiAppGeneralFieldNearestLocationTransfer::initialSetup(), IntegratedBC::IntegratedBC(), InterfaceKernelTempl< T >::InterfaceKernelTempl(), MultiAppGeometricInterpolationTransfer::interpolateTargetPoints(), Kernel::Kernel(), MooseVariableInterface< Real >::MooseVariableInterface(), NodalBC::NodalBC(), NodalKernel::NodalKernel(), TableOutput::outputScalarVariables(), Nemesis::outputScalarVariables(), Exodus::outputScalarVariables(), FEProblemBase::projectInitialConditionOnCustomRange(), MultiAppProjectionTransfer::projectSolution(), FEProblemBase::projectSolution(), MooseVariableScalar::reinit(), LinearFVFluxKernel::setCurrentFaceInfo(), FVInterfaceKernel::setupData(), MultiAppDofCopyTransfer::transfer(), MultiAppDofCopyTransfer::transferDofObject(), MultiAppShapeEvaluationTransfer::transferVariable(), FVFluxBC::uOnGhost(), and FVFluxBC::uOnUSub().

59 { return _sys; }
SystemBase & _sys
System this variable is part of.

◆ sys() [2/2]

const SystemBase& MooseVariableBase::sys ( ) const
inlineinherited

Get the system this variable is part of.

Definition at line 64 of file MooseVariableBase.h.

64 { return _sys; }
SystemBase & _sys
System this variable is part of.

◆ timestepSetup()

template<typename OutputType >
void MooseVariableField< OutputType >::timestepSetup ( )
overridevirtualinherited

Reimplemented from Moose::FunctorBase< Moose::ADType< OutputType >::type >.

Reimplemented in MooseVariableFV< OutputType >, MooseVariableFV< ComputeValueType >, MooseVariableFV< T >, MooseVariableFV< RealEigenVector >, MooseVariableFV< RealVectorValue >, and MooseVariableFV< Real >.

Definition at line 52 of file MooseVariableField.C.

Referenced by MooseVariableFV< Real >::timestepSetup().

53 {
56 }
Base class template for functor objects.
Definition: MooseFunctor.h:137
virtual void timestepSetup()
Gets called at the beginning of the timestep before this object is asked to do its job...
virtual void timestepSetup() override

◆ totalVarDofs()

unsigned int MooseVariableBase::totalVarDofs ( )
inlineinherited

Definition at line 80 of file MooseVariableBase.h.

80 { return allDofIndices().size(); }
const std::vector< dof_id_type > & allDofIndices() const
Get all global dofindices for the variable.

◆ type()

const std::string& MooseBase::type ( ) const
inlineinherited

Get the type of this class.

Returns
the name of the type of this class

Definition at line 51 of file MooseBase.h.

Referenced by CreateProblemDefaultAction::act(), SetupDebugAction::act(), MaterialDerivativeTestAction::act(), MaterialOutputAction::act(), FEProblemBase::addAuxArrayVariable(), FEProblemBase::addAuxScalarVariable(), FEProblemBase::addAuxVariable(), FEProblemBase::addDistribution(), MooseApp::addExecutor(), MooseApp::addExecutorParams(), FEProblemBase::addFunction(), FEProblemBase::addMeshDivision(), MooseApp::addMeshGenerator(), MeshGenerator::addMeshSubgenerator(), FEProblemBase::addObject(), FEProblemBase::addPredictor(), CreateDisplacedProblemAction::addProxyRelationshipManagers(), FEProblemBase::addReporter(), FEProblemBase::addSampler(), FEProblemBase::addTimeIntegrator(), MooseServer::addValuesToList(), DisplacedProblem::addVectorTag(), SubProblem::addVectorTag(), FEProblemBase::advanceMultiApps(), MooseApp::appendMeshGenerator(), PhysicsBase::assertParamDefined(), AuxKernelTempl< Real >::AuxKernelTempl(), FEProblemBase::backupMultiApps(), BoundaryPreservedMarker::BoundaryPreservedMarker(), DistributedRectilinearMeshGenerator::buildCube(), MooseMesh::buildHRefinementAndCoarseningMaps(), MooseMesh::buildPRefinementAndCoarseningMaps(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), PhysicsBase::checkRequiredTasks(), ADDGKernel::computeElemNeighJacobian(), DGKernel::computeElemNeighJacobian(), ElemElemConstraint::computeElemNeighJacobian(), ArrayDGKernel::computeElemNeighJacobian(), ADDGKernel::computeElemNeighResidual(), DGKernel::computeElemNeighResidual(), ElemElemConstraint::computeElemNeighResidual(), ArrayDGKernel::computeElemNeighResidual(), LowerDIntegratedBC::computeLowerDJacobian(), ArrayLowerDIntegratedBC::computeLowerDJacobian(), DGLowerDKernel::computeLowerDJacobian(), ArrayDGLowerDKernel::computeLowerDJacobian(), LowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDOffDiagJacobian(), ArrayHFEMDirichletBC::computeLowerDQpJacobian(), ArrayHFEMDiffusion::computeLowerDQpJacobian(), HFEMDirichletBC::computeLowerDQpJacobian(), HFEMDiffusion::computeLowerDQpJacobian(), ArrayHFEMDirichletBC::computeLowerDQpOffDiagJacobian(), HFEMDirichletBC::computeLowerDQpOffDiagJacobian(), ArrayLowerDIntegratedBC::computeLowerDQpOffDiagJacobian(), ArrayDGLowerDKernel::computeLowerDQpOffDiagJacobian(), FEProblemBase::computeMultiAppsDT(), ADDGKernel::computeOffDiagElemNeighJacobian(), DGKernel::computeOffDiagElemNeighJacobian(), ArrayDGKernel::computeOffDiagElemNeighJacobian(), DGLowerDKernel::computeOffDiagLowerDJacobian(), ArrayDGLowerDKernel::computeOffDiagLowerDJacobian(), DGConvection::computeQpJacobian(), ScalarKernel::computeQpJacobian(), InterfaceDiffusion::computeQpJacobian(), ArrayDGDiffusion::computeQpJacobian(), InterfaceReaction::computeQpJacobian(), CoupledTiedValueConstraint::computeQpJacobian(), TiedValueConstraint::computeQpJacobian(), DGDiffusion::computeQpJacobian(), LinearNodalConstraint::computeQpJacobian(), EqualValueBoundaryConstraint::computeQpJacobian(), EqualValueEmbeddedConstraint::computeQpJacobian(), CoupledTiedValueConstraint::computeQpOffDiagJacobian(), HFEMTestJump::computeQpOffDiagJacobian(), HFEMTrialJump::computeQpOffDiagJacobian(), EqualValueEmbeddedConstraint::computeQpOffDiagJacobian(), ArrayDGKernel::computeQpOffDiagJacobian(), ArrayHFEMDiffusion::computeQpResidual(), DGConvection::computeQpResidual(), HFEMDiffusion::computeQpResidual(), ScalarKernel::computeQpResidual(), InterfaceDiffusion::computeQpResidual(), InterfaceReaction::computeQpResidual(), ADDGAdvection::computeQpResidual(), ArrayDGDiffusion::computeQpResidual(), CoupledTiedValueConstraint::computeQpResidual(), TiedValueConstraint::computeQpResidual(), LinearNodalConstraint::computeQpResidual(), ADDGDiffusion::computeQpResidual(), DGDiffusion::computeQpResidual(), HFEMTestJump::computeQpResidual(), HFEMTrialJump::computeQpResidual(), EqualValueBoundaryConstraint::computeQpResidual(), EqualValueEmbeddedConstraint::computeQpResidual(), FEProblemBase::computeSystems(), FEProblemBase::computeUserObjectByName(), FEProblemBase::computeUserObjects(), FEProblemBase::computeUserObjectsInternal(), DisplacedProblem::createQRules(), FEProblemBase::createQRules(), MooseApp::createRecoverablePerfGraph(), DumpObjectsProblem::deduceNecessaryParameters(), DumpObjectsProblem::dumpObjectHelper(), FEProblemBase::duplicateVariableCheck(), ElementGroupCentroidPositions::ElementGroupCentroidPositions(), MooseBase::errorPrefix(), AB2PredictorCorrector::estimateTimeError(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), FEProblemBase::execTransfers(), WebServerControl::execute(), ActionWarehouse::executeActionsWithAction(), FEProblemBase::finishMultiAppStep(), FVScalarLagrangeMultiplierInterface::FVScalarLagrangeMultiplierInterface(), LowerDBlockFromSidesetGenerator::generate(), SubdomainPerElementGenerator::generate(), PatternedMeshGenerator::generate(), MeshGenerator::generateInternal(), MultiAppTransfer::getAppInfo(), TransfiniteMeshGenerator::getEdge(), ElementGenerator::getElemType(), MooseServer::getInputLookupDefinitionNodes(), FEProblemBase::getMaterial(), FEProblemBase::getMaterialData(), MaterialOutputAction::getParams(), ReporterData::getReporterInfo(), Transient::getTimeIntegratorName(), FEProblemBase::getTransfers(), DisplacedProblem::getVectorTags(), SubProblem::getVectorTags(), CommonOutputAction::hasConsole(), FEProblemBase::hasMultiApps(), AdvancedOutput::hasOutput(), FEProblemBase::incrementMultiAppTStep(), AdvancedOutput::initAvailableLists(), FunctorPositions::initialize(), FunctorTimes::initialize(), MultiAppConservativeTransfer::initialSetup(), LinearFVDiffusion::initialSetup(), LinearFVAdvection::initialSetup(), ArrayDGDiffusion::initQpResidual(), AdvancedOutput::initShowHideLists(), RelationshipManager::isType(), FEProblemBase::logAdd(), MaterialFunctorConverterTempl< T >::MaterialFunctorConverterTempl(), MooseObject::MooseObject(), DisplacedProblem::numVectorTags(), SubProblem::numVectorTags(), Console::output(), AdvancedOutput::output(), ConsoleUtils::outputExecutionInformation(), OversampleOutput::outputStep(), Output::outputStep(), FEProblemBase::outputStep(), MooseServer::parseDocumentForDiagnostics(), ProjectedStatefulMaterialStorageAction::processProperty(), MooseApp::recursivelyCreateExecutors(), SolutionInvalidInterface::registerInvalidSolutionInternal(), FEProblemBase::restoreMultiApps(), MeshRepairGenerator::separateSubdomainsByElementType(), FEProblemBase::setCoupling(), MooseApp::setupOptions(), WebServerControl::startServer(), MooseBase::typeAndName(), ScalarKernelBase::uOld(), AuxScalarKernel::uOld(), DisplacedProblem::updateGeomSearch(), FEProblemBase::updateGeomSearch(), UserObjectInterface::userObjectType(), and AdvancedOutput::wantOutput().

51 { return _type; }
const std::string _type
The type of this class.
Definition: MooseBase.h:87

◆ typeAndName()

std::string MooseBase::typeAndName ( ) const
inherited

Get the class's combined type and name; useful in error handling.

Returns
The type and name of this class in the form '<type()> "<name()>"'.

Definition at line 27 of file MooseBase.C.

Referenced by MaterialPropertyStorage::addProperty(), MeshGeneratorSystem::dataDrivenError(), ReporterContext< std::vector< T > >::finalize(), and ReporterData::getReporterInfo().

28 {
29  return type() + std::string(" \"") + name() + std::string("\"");
30 }
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51

◆ uDot()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDot ( ) const
inline

element dots

Definition at line 390 of file MooseVariableFE.h.

390 { return _element_data->uDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ uDotDot()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotDot ( ) const
inline

Definition at line 391 of file MooseVariableFE.h.

391 { return _element_data->uDotDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ uDotDotNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotDotNeighbor ( ) const
inline

Definition at line 485 of file MooseVariableFE.h.

485 { return _neighbor_data->uDotDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ uDotDotOld()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotDotOld ( ) const
inline

Definition at line 393 of file MooseVariableFE.h.

393 { return _element_data->uDotDotOld(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ uDotDotOldNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotDotOldNeighbor ( ) const
inline

Definition at line 487 of file MooseVariableFE.h.

487 { return _neighbor_data->uDotDotOld(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ uDotNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotNeighbor ( ) const
inline

neighbor dots

Definition at line 484 of file MooseVariableFE.h.

484 { return _neighbor_data->uDot(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ uDotOld()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotOld ( ) const
inline

Definition at line 392 of file MooseVariableFE.h.

392 { return _element_data->uDotOld(); }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ uDotOldNeighbor()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::uDotOldNeighbor ( ) const
inline

Definition at line 486 of file MooseVariableFE.h.

486 { return _neighbor_data->uDotOld(); }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ uniqueName()

MooseObjectName MooseBaseParameterInterface::uniqueName ( ) const
inlineinherited

The unique name for accessing input parameters of this object in the InputParameterWarehouse.

Definition at line 67 of file MooseBaseParameterInterface.h.

Referenced by MooseBaseParameterInterface::connectControllableParams(), and Action::uniqueActionName().

68  {
69  return MooseObjectName(_pars.get<std::string>("_unique_name"));
70  }
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
A class for storing the names of MooseObject by tag and object name.

◆ uniqueParameterName()

MooseObjectParameterName MooseBaseParameterInterface::uniqueParameterName ( const std::string &  parameter_name) const
inlineinherited

The unique parameter name of a valid parameter of this object for accessing parameter controls.

Definition at line 52 of file MooseBaseParameterInterface.h.

53  {
55  _pars.get<std::string>("_moose_base"), _moose_base.name(), parameter_name);
56  }
const MooseBase & _moose_base
The MooseBase object that inherits this class.
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
Combine two vector parameters into a single vector of pairs.
virtual const std::string & name() const
Get the name of the class.
Definition: MooseBase.h:57
const InputParameters & _pars
Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.
A class for storing an input parameter name.

◆ useDual()

bool MooseVariableBase::useDual ( ) const
inlineinherited

Get dual mortar option.

Definition at line 74 of file MooseVariableBase.h.

Referenced by MortarConstraintBase::MortarConstraintBase().

74 { return _use_dual; }
bool _use_dual
If dual mortar approach is used.

◆ usesGradPhi()

template<typename OutputType>
bool MooseVariableFE< OutputType >::usesGradPhi ( ) const
inline

Whether or not this variable is actually using the shape function gradient.

Currently hardcoded to true because we always compute the value.

Definition at line 119 of file MooseVariableFE.h.

119 { return true; }

◆ usesGradPhiNeighbor()

template<typename OutputType>
bool MooseVariableField< OutputType >::usesGradPhiNeighbor ( ) const
inlineinherited

Whether or not this variable is actually using the shape function gradient.

Currently hardcoded to true because we always compute the value.

Definition at line 329 of file MooseVariableField.h.

Referenced by Assembly::copyNeighborShapes().

329 { return true; }

◆ usesPhi()

template<typename OutputType>
bool MooseVariableFE< OutputType >::usesPhi ( ) const
inline

Whether or not this variable is actually using the shape function value.

Currently hardcoded to true because we always compute the value.

Definition at line 113 of file MooseVariableFE.h.

113 { return true; }

◆ usesPhiNeighbor()

template<typename OutputType>
bool MooseVariableField< OutputType >::usesPhiNeighbor ( ) const
inlineinherited

Whether or not this variable is actually using the shape function value.

Currently hardcoded to true because we always compute the value.

Definition at line 322 of file MooseVariableField.h.

Referenced by Assembly::copyNeighborShapes().

322 { return true; }

◆ usesSecondPhi()

template<typename OutputType >
bool MooseVariableFE< OutputType >::usesSecondPhi ( ) const

Whether or not this variable is computing any second derivatives.

Definition at line 799 of file MooseVariableFE.C.

Referenced by MooseVariableFE< Real >::computingSecond().

800 {
801  return _element_data->usesSecondPhi();
802 }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ usesSecondPhiNeighbor()

template<typename OutputType >
bool MooseVariableFE< OutputType >::usesSecondPhiNeighbor ( ) const
finaloverridevirtual

Whether or not this variable is actually using the shape function second derivative on a neighbor.

Implements MooseVariableField< OutputType >.

Definition at line 806 of file MooseVariableFE.C.

807 {
808  return _neighbor_data->usesSecondPhi();
809 }
std::unique_ptr< MooseVariableData< OutputType > > _neighbor_data
Holder for all the data associated with the neighbor element.

◆ validParams()

template<typename OutputType>
static InputParameters MooseVariableFE< OutputType >::validParams ( )
static

◆ vectorTagDofValue()

template<typename OutputType>
const DoFValue& MooseVariableFE< OutputType >::vectorTagDofValue ( TagID  tag) const
inlineoverridevirtual

Implements MooseVariableField< OutputType >.

Definition at line 274 of file MooseVariableFE.h.

275  {
276  return _element_data->vectorTagDofValue(tag);
277  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ vectorTagGradient()

template<typename OutputType>
const FieldVariableGradient& MooseVariableFE< OutputType >::vectorTagGradient ( TagID  tag) const
inline

Definition at line 270 of file MooseVariableFE.h.

271  {
272  return _element_data->vectorTagGradient(tag);
273  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

◆ vectorTagValue()

template<typename OutputType>
const FieldVariableValue& MooseVariableFE< OutputType >::vectorTagValue ( TagID  tag) const
inlineoverridevirtual

tag values getters

Implements MooseVariableField< OutputType >.

Definition at line 266 of file MooseVariableFE.h.

267  {
268  return _element_data->vectorTagValue(tag);
269  }
std::unique_ptr< MooseVariableData< OutputType > > _element_data
Holder for all the data associated with the "main" element.

Member Data Documentation

◆ _action_factory

ActionFactory& MooseBaseParameterInterface::_action_factory
protectedinherited

◆ _ad_real_dummy

template<typename OutputType>
ADReal MooseVariableField< OutputType >::_ad_real_dummy = 0
mutableprotectedinherited

A dummy ADReal variable.

Definition at line 394 of file MooseVariableField.h.

◆ _app

MooseApp& MooseBase::_app
protectedinherited

The MOOSE application this is associated with.

Definition at line 84 of file MooseBase.h.

◆ _assembly

Assembly& MooseVariableBase::_assembly
protectedinherited

◆ _blk_material_data

const MaterialData* BlockRestrictable::_blk_material_data
protectedinherited

Pointer to the MaterialData class for this object.

Definition at line 207 of file BlockRestrictable.h.

Referenced by BlockRestrictable::hasBlockMaterialProperty(), and BlockRestrictable::initializeBlockRestrictable().

◆ _console

const ConsoleStream ConsoleStreamInterface::_console
inherited

An instance of helper class to write streams to the Console objects.

Definition at line 31 of file ConsoleStreamInterface.h.

Referenced by IterationAdaptiveDT::acceptStep(), MeshOnlyAction::act(), SetupDebugAction::act(), MaterialOutputAction::act(), Adaptivity::adaptMesh(), FEProblemBase::adaptMesh(), PerfGraph::addToExecutionList(), SimplePredictor::apply(), SystemBase::applyScalingFactors(), MultiApp::backup(), FEProblemBase::backupMultiApps(), CoarsenedPiecewiseLinear::buildCoarsenedGrid(), MeshDiagnosticsGenerator::checkElementOverlap(), MeshDiagnosticsGenerator::checkElementTypes(), MeshDiagnosticsGenerator::checkElementVolumes(), FEProblemBase::checkExceptionAndStopSolve(), SolverSystem::checkInvalidSolution(), MeshDiagnosticsGenerator::checkLocalJacobians(), MeshDiagnosticsGenerator::checkNonConformalMesh(), MeshDiagnosticsGenerator::checkNonConformalMeshFromAdaptivity(), MeshDiagnosticsGenerator::checkNonPlanarSides(), FEProblemBase::checkProblemIntegrity(), ReferenceResidualProblem::checkRelativeConvergence(), MeshDiagnosticsGenerator::checkSidesetsOrientation(), IterationAdaptiveDT::computeAdaptiveDT(), Transient::computeConstrainedDT(), FixedPointSolve::computeCustomConvergencePostprocessor(), NonlinearSystemBase::computeDamping(), IterationAdaptiveDT::computeDT(), IterationAdaptiveDT::computeFailedDT(), IterationAdaptiveDT::computeInitialDT(), IterationAdaptiveDT::computeInterpolationDT(), FEProblemBase::computeLinearSystemTags(), NonlinearSystemBase::computeScaling(), Problem::console(), IterationAdaptiveDT::constrainStep(), TimeStepper::constrainStep(), MultiApp::createApp(), FEProblemBase::execMultiApps(), FEProblemBase::execMultiAppTransfers(), MessageFromInput::execute(), Steady::execute(), Eigenvalue::execute(), ActionWarehouse::executeActionsWithAction(), ActionWarehouse::executeAllActions(), ElementQualityChecker::finalize(), FEProblemBase::finishMultiAppStep(), MeshRepairGenerator::fixOverlappingNodes(), CoarsenBlockGenerator::generate(), MeshGenerator::generateInternal(), VariableCondensationPreconditioner::getDofToCondense(), InversePowerMethod::init(), NonlinearEigen::init(), FEProblemBase::initialAdaptMesh(), EigenExecutionerBase::inversePowerIteration(), FEProblemBase::joinAndFinalize(), Transient::keepGoing(), IterationAdaptiveDT::limitDTByFunction(), IterationAdaptiveDT::limitDTToPostprocessorValue(), FEProblemBase::logAdd(), EigenExecutionerBase::makeBXConsistent(), Console::meshChanged(), MooseBaseErrorInterface::mooseDeprecated(), MooseBaseErrorInterface::mooseInfo(), MooseBaseErrorInterface::mooseWarning(), MooseBaseErrorInterface::mooseWarningNonPrefixed(), ReferenceResidualProblem::nonlinearConvergenceSetup(), ReporterDebugOutput::output(), PerfGraphOutput::output(), MaterialPropertyDebugOutput::output(), DOFMapOutput::output(), VariableResidualNormsDebugOutput::output(), Console::output(), ControlOutput::outputActiveObjects(), ControlOutput::outputChangedControls(), ControlOutput::outputControls(), Console::outputInput(), Console::outputPostprocessors(), PseudoTimestep::outputPseudoTimestep(), Console::outputReporters(), Console::outputScalarVariables(), Console::outputSystemInformation(), FEProblemBase::possiblyRebuildGeomSearchPatches(), EigenExecutionerBase::postExecute(), AB2PredictorCorrector::postSolve(), ActionWarehouse::printActionDependencySets(), SolutionInvalidity::printDebug(), EigenExecutionerBase::printEigenvalue(), SecantSolve::printFixedPointConvergenceHistory(), SteffensenSolve::printFixedPointConvergenceHistory(), PicardSolve::printFixedPointConvergenceHistory(), FixedPointSolve::printFixedPointConvergenceReason(), PerfGraphLivePrint::printLiveMessage(), MaterialPropertyDebugOutput::printMaterialMap(), PerfGraphLivePrint::printStats(), AutomaticMortarGeneration::projectPrimaryNodesSinglePair(), AutomaticMortarGeneration::projectSecondaryNodesSinglePair(), CoarsenBlockGenerator::recursiveCoarsen(), SolutionTimeAdaptiveDT::rejectStep(), MultiApp::restore(), FEProblemBase::restoreMultiApps(), NonlinearSystemBase::setInitialSolution(), Checkpoint::shouldOutput(), SubProblem::showFunctorRequestors(), SubProblem::showFunctors(), FullSolveMultiApp::showStatusMessage(), FEProblemSolve::solve(), FixedPointSolve::solve(), NonlinearSystem::solve(), EigenProblem::solve(), LStableDirk2::solve(), LStableDirk3::solve(), ImplicitMidpoint::solve(), ExplicitTVDRK2::solve(), LStableDirk4::solve(), AStableDirk4::solve(), ExplicitRK2::solve(), TransientMultiApp::solveStep(), FixedPointSolve::solveStep(), PerfGraphLivePrint::start(), AB2PredictorCorrector::step(), NonlinearEigen::takeStep(), Transient::takeStep(), Console::writeTimestepInformation(), Console::writeVariableNorms(), and FEProblemBase::~FEProblemBase().

◆ _count

const unsigned int MooseVariableBase::_count
protectedinherited

◆ _current_elem_qp_functor_dot

template<typename OutputType>
std::vector<DotType> MooseVariableFE< OutputType >::_current_elem_qp_functor_dot
mutableprivate

The values of the time derivative for the _current_elem_qp_functor_elem.

Definition at line 808 of file MooseVariableFE.h.

◆ _current_elem_qp_functor_elem

template<typename OutputType>
const Elem* MooseVariableFE< OutputType >::_current_elem_qp_functor_elem = nullptr
mutableprivate

Keep track of the current elem-qp functor element in order to enable local caching (e.g.

if we call evaluate on the same element, but just with a different quadrature point, we can return previously computed results indexed at the different qp

Definition at line 799 of file MooseVariableFE.h.

◆ _current_elem_qp_functor_grad_dot

template<typename OutputType>
std::vector<GradientType> MooseVariableFE< OutputType >::_current_elem_qp_functor_grad_dot
mutableprivate

The values of the gradient of the time derivative for the _current_elem_qp_functor_elem.

Definition at line 811 of file MooseVariableFE.h.

◆ _current_elem_qp_functor_gradient

template<typename OutputType>
std::vector<GradientType> MooseVariableFE< OutputType >::_current_elem_qp_functor_gradient
mutableprivate

The values of the gradient for the _current_elem_qp_functor_elem.

Definition at line 805 of file MooseVariableFE.h.

◆ _current_elem_qp_functor_sln

template<typename OutputType>
std::vector<ValueType> MooseVariableFE< OutputType >::_current_elem_qp_functor_sln
mutableprivate

The values of the solution for the _current_elem_qp_functor_elem.

Definition at line 802 of file MooseVariableFE.h.

◆ _current_elem_side_qp_functor_dot

template<typename OutputType>
std::vector<DotType> MooseVariableFE< OutputType >::_current_elem_side_qp_functor_dot
mutableprivate

The values of the time derivative for the _current_elem_side_qp_functor_elem_side.

Definition at line 826 of file MooseVariableFE.h.

◆ _current_elem_side_qp_functor_elem_side

template<typename OutputType>
std::pair<const Elem *, unsigned int> MooseVariableFE< OutputType >::_current_elem_side_qp_functor_elem_side
mutableprivate
Initial value:

Keep track of the current elem-side-qp functor element and side in order to enable local caching (e.g.

if we call evaluate with the same element and side, but just with a different quadrature point, we can return previously computed results indexed at the different qp

Definition at line 816 of file MooseVariableFE.h.

◆ _current_elem_side_qp_functor_grad_dot

template<typename OutputType>
std::vector<GradientType> MooseVariableFE< OutputType >::_current_elem_side_qp_functor_grad_dot
mutableprivate

The values of the gradient of the time derivative for the _current_elem_side_qp_functor_elem_side.

Definition at line 830 of file MooseVariableFE.h.

◆ _current_elem_side_qp_functor_gradient

template<typename OutputType>
std::vector<GradientType> MooseVariableFE< OutputType >::_current_elem_side_qp_functor_gradient
mutableprivate

The values of the gradient for the _current_elem_side_qp_functor_elem_side.

Definition at line 823 of file MooseVariableFE.h.

◆ _current_elem_side_qp_functor_sln

template<typename OutputType>
std::vector<ValueType> MooseVariableFE< OutputType >::_current_elem_side_qp_functor_sln
mutableprivate

The values of the solution for the _current_elem_side_qp_functor_elem_side.

Definition at line 820 of file MooseVariableFE.h.

◆ _current_execute_flag

const ExecFlagType& SetupInterface::_current_execute_flag
protectedinherited

Reference to FEProblemBase.

Definition at line 78 of file SetupInterface.h.

Referenced by PseudoTimestep::execute().

◆ _dof_indices

std::vector<dof_id_type> MooseVariableBase::_dof_indices
protectedinherited

◆ _dof_map

const DofMap& MooseVariableBase::_dof_map
protectedinherited

◆ _element_data

template<typename OutputType>
std::unique_ptr<MooseVariableData<OutputType> > MooseVariableFE< OutputType >::_element_data
protected

Holder for all the data associated with the "main" element.

Definition at line 717 of file MooseVariableFE.h.

Referenced by MooseVariableFE< Real >::adGradPhi(), MooseVariableFE< Real >::adGradPhiFace(), MooseVariableFE< Real >::adGradSln(), MooseVariableFE< Real >::adGradSlnDot(), MooseVariableFE< Real >::adSecondSln(), MooseVariableFE< Real >::adSln(), MooseVariableFE< Real >::adUDot(), MooseVariableFE< Real >::adUDotDot(), MooseVariableFE< Real >::arrayGradPhi(), MooseVariableFE< Real >::arrayGradPhiFace(), MooseVariableFE< Real >::curlSln(), MooseVariableFE< Real >::curlSlnOld(), MooseVariableFE< Real >::curlSlnOlder(), MooseVariableFE< Real >::currentElem(), MooseVariableFE< Real >::currentSide(), MooseVariableFE< Real >::divSln(), MooseVariableFE< Real >::divSlnOld(), MooseVariableFE< Real >::divSlnOlder(), MooseVariableFE< Real >::dofIndices(), MooseVariableFE< Real >::duDotDotDu(), MooseVariableFE< Real >::duDotDu(), MooseVariableFE< Real >::getContinuity(), MooseVariableFE< Real >::gradPhi(), MooseVariableFE< Real >::gradPhiFace(), MooseVariableFE< Real >::gradSln(), MooseVariableFE< Real >::gradSlnDot(), MooseVariableFE< Real >::gradSlnDotDot(), MooseVariableFE< Real >::gradSlnOld(), MooseVariableFE< Real >::gradSlnOlder(), MooseVariableFE< Real >::gradSlnPreviousNL(), MooseVariableFE< Real >::hasDoFsOnNodes(), MooseVariableFE< Real >::increment(), MooseVariableFE< Real >::isNodal(), MooseVariableFE< Real >::matrixTagValue(), MooseVariableFE< Real >::MooseVariableFE(), MooseVariableFE< Real >::nodalDofIndex(), MooseVariableFE< Real >::nodalValueArray(), MooseVariableFE< Real >::nodalValueOldArray(), MooseVariableFE< Real >::nodalValueOlderArray(), MooseVariableFE< Real >::node(), MooseVariableFE< Real >::numberOfDofs(), MooseVariableFE< Real >::phi(), MooseVariableFE< Real >::phiFace(), MooseVariableFE< Real >::phiFaceSize(), MooseVariableFE< Real >::phiSize(), MooseVariableFE< Real >::secondSln(), MooseVariableFE< Real >::secondSlnOld(), MooseVariableFE< Real >::secondSlnOlder(), MooseVariableFE< Real >::secondSlnPreviousNL(), MooseVariableFE< Real >::sln(), MooseVariableFE< Real >::slnOld(), MooseVariableFE< Real >::slnOlder(), MooseVariableFE< Real >::slnPreviousNL(), MooseVariableFE< Real >::uDot(), MooseVariableFE< Real >::uDotDot(), MooseVariableFE< Real >::uDotDotOld(), MooseVariableFE< Real >::uDotOld(), MooseVariableFE< Real >::vectorTagDofValue(), MooseVariableFE< Real >::vectorTagGradient(), and MooseVariableFE< Real >::vectorTagValue().

◆ _enabled

const bool& MooseObject::_enabled
protectedinherited

Reference to the "enable" InputParameters, used by Controls for toggling on/off MooseObjects.

Definition at line 61 of file MooseObject.h.

Referenced by MooseObject::enabled().

◆ _execute_enum

const ExecFlagEnum& SetupInterface::_execute_enum
protectedinherited

◆ _factory

Factory& MooseBaseParameterInterface::_factory
protectedinherited

◆ _fe_type

FEType MooseVariableBase::_fe_type
protectedinherited

◆ _index

unsigned int MooseVariableBase::_index
protectedinherited

variable number within MOOSE

Definition at line 201 of file MooseVariableBase.h.

◆ _is_array

const bool MooseVariableBase::_is_array
protectedinherited

Whether this is an array variable.

Definition at line 243 of file MooseVariableBase.h.

Referenced by MooseVariableBase::isArray(), and MooseVariableBase::MooseVariableBase().

◆ _is_eigen

bool MooseVariableBase::_is_eigen
protectedinherited

Whether or not this variable operates on eigen kernels.

Definition at line 204 of file MooseVariableBase.h.

Referenced by MooseVariableBase::eigen().

◆ _is_lower_d

bool MooseVariableBase::_is_lower_d
protectedinherited

Whether this variable lives on lower dimensional blocks.

Definition at line 246 of file MooseVariableBase.h.

Referenced by MooseVariableBase::isLowerD(), and MooseVariableBase::MooseVariableBase().

◆ _lower_data

template<typename OutputType>
std::unique_ptr<MooseVariableData<OutputType> > MooseVariableFE< OutputType >::_lower_data
protected

◆ _mci_feproblem

FEProblemBase& MeshChangedInterface::_mci_feproblem
protectedinherited

Reference to FEProblemBase instance.

Definition at line 38 of file MeshChangedInterface.h.

Referenced by MeshChangedInterface::MeshChangedInterface().

◆ _mesh

MooseMesh& MooseVariableBase::_mesh
protectedinherited

◆ _name

const std::string MooseBase::_name
protectedinherited

The name of this class.

Definition at line 90 of file MooseBase.h.

Referenced by AddBCAction::act(), AddDamperAction::act(), AddInterfaceKernelAction::act(), AddDGKernelAction::act(), AddFunctorMaterialAction::act(), AddKernelAction::act(), AddFVInitialConditionAction::act(), AddIndicatorAction::act(), PartitionerAction::act(), AddMarkerAction::act(), AddFVInterfaceKernelAction::act(), AddPostprocessorAction::act(), ReadExecutorParamsAction::act(), AddConstraintAction::act(), AddTransferAction::act(), AddVectorPostprocessorAction::act(), AddMeshGeneratorAction::act(), AddInitialConditionAction::act(), AddMultiAppAction::act(), AddMaterialAction::act(), AddNodalKernelAction::act(), AddUserObjectAction::act(), AddScalarKernelAction::act(), AddDiracKernelAction::act(), AddReporterAction::act(), AddFieldSplitAction::act(), AddTimesAction::act(), AddPositionsAction::act(), AddFVBCAction::act(), AddFVKernelAction::act(), AddFunctionAction::act(), AddMeshDivisionAction::act(), AddTimeStepperAction::act(), AddDistributionAction::act(), SetupPreconditionerAction::act(), SetupTimeIntegratorAction::act(), AddLinearFVBCAction::act(), AddLinearFVKernelAction::act(), AddSamplerAction::act(), AddOutputAction::act(), AddPeriodicBCAction::act(), AddControlAction::act(), ADPiecewiseLinearInterpolationMaterial::ADPiecewiseLinearInterpolationMaterial(), PiecewiseTabularBase::buildFromFile(), PiecewiseTabularBase::buildFromXY(), PiecewiseLinearBase::buildInterpolation(), CombinerGenerator::CombinerGenerator(), Executor::Executor(), ExtraIDIntegralReporter::ExtraIDIntegralReporter(), QuadraturePointMultiApp::fillPositions(), CentroidMultiApp::fillPositions(), MultiApp::fillPositions(), FunctionDT::FunctionDT(), FillBetweenPointVectorsGenerator::generate(), FillBetweenSidesetsGenerator::generate(), FillBetweenCurvesGenerator::generate(), NearestPointBase< LayeredSideDiffusiveFluxAverage, SideIntegralVariableUserObject >::name(), ParsedFunctorMaterialTempl< is_ad >::ParsedFunctorMaterialTempl(), PiecewiseBilinear::PiecewiseBilinear(), PiecewiseLinearInterpolationMaterial::PiecewiseLinearInterpolationMaterial(), PiecewiseBase::setData(), and Split::setup().

◆ _neighbor_data

template<typename OutputType>
std::unique_ptr<MooseVariableData<OutputType> > MooseVariableFE< OutputType >::_neighbor_data
protected

Holder for all the data associated with the neighbor element.

Definition at line 720 of file MooseVariableFE.h.

Referenced by MooseVariableFE< Real >::adGradPhiFaceNeighbor(), MooseVariableFE< Real >::adGradSlnNeighbor(), MooseVariableFE< Real >::adGradSlnNeighborDot(), MooseVariableFE< Real >::adSecondSlnNeighbor(), MooseVariableFE< Real >::adSlnNeighbor(), MooseVariableFE< Real >::adUDotDotNeighbor(), MooseVariableFE< Real >::adUDotNeighbor(), MooseVariableFE< Real >::arrayGradPhiFaceNeighbor(), MooseVariableFE< Real >::arrayGradPhiNeighbor(), MooseVariableFE< Real >::curlSlnNeighbor(), MooseVariableFE< Real >::curlSlnOlderNeighbor(), MooseVariableFE< Real >::curlSlnOldNeighbor(), MooseVariableFE< Real >::divSlnNeighbor(), MooseVariableFE< Real >::divSlnOlderNeighbor(), MooseVariableFE< Real >::divSlnOldNeighbor(), MooseVariableFE< Real >::dofIndicesNeighbor(), MooseVariableFE< Real >::duDotDotDuNeighbor(), MooseVariableFE< Real >::duDotDuNeighbor(), MooseVariableFE< Real >::gradPhiFaceNeighbor(), MooseVariableFE< Real >::gradPhiNeighbor(), MooseVariableFE< Real >::gradSlnNeighbor(), MooseVariableFE< Real >::gradSlnNeighborDot(), MooseVariableFE< Real >::gradSlnNeighborDotDot(), MooseVariableFE< Real >::gradSlnOlderNeighbor(), MooseVariableFE< Real >::gradSlnOldNeighbor(), MooseVariableFE< Real >::gradSlnPreviousNLNeighbor(), MooseVariableFE< Real >::MooseVariableFE(), MooseVariableFE< Real >::neighbor(), MooseVariableFE< Real >::nodalDofIndexNeighbor(), MooseVariableFE< Real >::nodeNeighbor(), MooseVariableFE< Real >::numberOfDofsNeighbor(), MooseVariableFE< Real >::phiFaceNeighbor(), MooseVariableFE< Real >::phiFaceNeighborSize(), MooseVariableFE< Real >::phiNeighbor(), MooseVariableFE< Real >::phiNeighborSize(), MooseVariableFE< Real >::secondSlnNeighbor(), MooseVariableFE< Real >::secondSlnOlderNeighbor(), MooseVariableFE< Real >::secondSlnOldNeighbor(), MooseVariableFE< Real >::secondSlnPreviousNLNeighbor(), MooseVariableFE< Real >::slnNeighbor(), MooseVariableFE< Real >::slnOlderNeighbor(), MooseVariableFE< Real >::slnOldNeighbor(), MooseVariableFE< Real >::slnPreviousNLNeighbor(), MooseVariableFE< Real >::uDotDotNeighbor(), MooseVariableFE< Real >::uDotDotOldNeighbor(), MooseVariableFE< Real >::uDotNeighbor(), and MooseVariableFE< Real >::uDotOldNeighbor().

◆ _pars

const InputParameters& MooseBaseParameterInterface::_pars
protectedinherited

Parameters of this object, references the InputParameters stored in the InputParametersWarehouse.

Definition at line 162 of file MooseBaseParameterInterface.h.

Referenced by AddFVICAction::act(), AddICAction::act(), CreateProblemAction::act(), CreateProblemDefaultAction::act(), SetupMeshAction::act(), ComposeTimeStepperAction::act(), SetupDebugAction::act(), AddAuxKernelAction::act(), AddVariableAction::act(), AddPeriodicBCAction::act(), CommonOutputAction::act(), FunctorMaterial::addFunctorPropertyByBlocks(), FVFluxKernel::adjustRMGhostLayers(), BreakMeshByBlockGeneratorBase::BreakMeshByBlockGeneratorBase(), PiecewiseTabularBase::buildFromFile(), PNGOutput::calculateRescalingValues(), MooseBaseParameterInterface::connectControllableParams(), Console::Console(), AddVariableAction::createInitialConditionAction(), MaterialBase::declareADProperty(), MaterialBase::declareProperty(), FEProblemSolve::FEProblemSolve(), FunctionMaterialBase< is_ad >::FunctionMaterialBase(), FVAdvection::FVAdvection(), FVAnisotropicDiffusion::FVAnisotropicDiffusion(), FVDiffusion::FVDiffusion(), FileMeshGenerator::generate(), MaterialBase::getGenericZeroMaterialProperty(), MeshGenerator::getMeshGeneratorNameFromParam(), MeshGenerator::getMeshGeneratorNamesFromParam(), MooseBaseParameterInterface::getParam(), MooseBaseParameterInterface::getRenamedParam(), MeshGenerator::hasGenerateData(), AddVariableAction::init(), AdvancedOutput::initExecutionTypes(), Console::initialSetup(), MooseBaseParameterInterface::isParamSetByUser(), MooseBaseParameterInterface::isParamValid(), MultiApp::keepSolutionDuringRestore(), MooseBaseParameterInterface::MooseBaseParameterInterface(), MooseBaseParameterInterface::paramErrorMsg(), GlobalParamsAction::parameters(), MooseBaseParameterInterface::parameters(), MooseMesh::prepare(), Eigenvalue::prepareSolverOptions(), MooseMesh::setCoordSystem(), MooseMesh::setPartitionerHelper(), SetupMeshAction::setupMesh(), Transient::setupTimeIntegrator(), MooseBaseParameterInterface::uniqueName(), and MooseBaseParameterInterface::uniqueParameterName().

◆ _scaling_factor

std::vector<Real> MooseVariableBase::_scaling_factor
protectedinherited

scaling factor for this variable

Definition at line 234 of file MooseVariableBase.h.

Referenced by MooseVariableBase::arrayScalingFactor(), MooseVariableBase::initialSetup(), and MooseVariableBase::scalingFactor().

◆ _subproblem

SubProblem& MooseVariableBase::_subproblem
protectedinherited

◆ _sys

SystemBase& MooseVariableBase::_sys
protectedinherited

◆ _tid

THREAD_ID MooseVariableBase::_tid
protectedinherited

◆ _time_integrator

template<typename OutputType>
const TimeIntegrator* const MooseVariableField< OutputType >::_time_integrator
protectedinherited

the time integrator used for computing time derivatives

Definition at line 391 of file MooseVariableField.h.

◆ _type

const std::string MooseBase::_type
protectedinherited

◆ _use_dual

bool MooseVariableBase::_use_dual
protectedinherited

If dual mortar approach is used.

Definition at line 240 of file MooseVariableBase.h.

Referenced by MooseVariableBase::useDual().

◆ _var_kind

Moose::VarKindType MooseVariableBase::_var_kind
protectedinherited

Variable type (see MooseTypes.h)

Definition at line 207 of file MooseVariableBase.h.

Referenced by MooseVariableBase::initialSetup(), and MooseVariableBase::kind().

◆ _var_name

std::string MooseVariableBase::_var_name
protectedinherited

◆ _var_num

unsigned int MooseVariableBase::_var_num
protectedinherited

◆ _variable

const Variable& MooseVariableBase::_variable
protectedinherited

libMesh variable object for this variable

Definition at line 213 of file MooseVariableBase.h.

◆ usingMooseVariableFieldMembers

template<typename OutputType>
MooseVariableFE< OutputType >::usingMooseVariableFieldMembers
protected

Definition at line 714 of file MooseVariableFE.h.


The documentation for this class was generated from the following files: