https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
MooseVariableData< OutputType > Class Template Reference

#include <MooseVariableData.h>

Inheritance diagram for MooseVariableData< OutputType >:
[legend]

Public Types

typedef MooseArray< OutputSecondFieldVariableSecond
 
typedef MooseArray< OutputType > FieldVariableCurl
 
typedef MooseArray< OutputDivergenceFieldVariableDivergence
 
typedef Moose::ShapeType< OutputType >::type OutputShape
 
typedef libMesh::TensorTools::IncrementRank< OutputShape >::type OutputShapeGradient
 
typedef libMesh::TensorTools::IncrementRank< OutputShapeGradient >::type OutputShapeSecond
 
typedef libMesh::TensorTools::DecrementRank< OutputShape >::type OutputShapeDivergence
 
typedef MooseArray< std::vector< OutputShape > > FieldVariablePhiValue
 
typedef MooseArray< std::vector< OutputShapeGradient > > FieldVariablePhiGradient
 
typedef MooseArray< std::vector< OutputShapeSecond > > FieldVariablePhiSecond
 
typedef MooseArray< std::vector< OutputShape > > FieldVariablePhiCurl
 
typedef MooseArray< std::vector< OutputShapeDivergence > > FieldVariablePhiDivergence
 
typedef MooseArray< std::vector< OutputShape > > FieldVariableTestValue
 
typedef MooseArray< std::vector< OutputShapeGradient > > FieldVariableTestGradient
 
typedef MooseArray< std::vector< OutputShapeSecond > > FieldVariableTestSecond
 
typedef MooseArray< std::vector< OutputShape > > FieldVariableTestCurl
 
typedef MooseArray< std::vector< OutputShapeDivergence > > FieldVariableTestDivergence
 
typedef libMesh::TensorTools::IncrementRank< OutputType >::type OutputGradient
 
typedef libMesh::TensorTools::IncrementRank< OutputGradient >::type OutputSecond
 
typedef libMesh::TensorTools::DecrementRank< OutputType >::type OutputDivergence
 
typedef MooseArray< OutputType > FieldVariableValue
 
typedef MooseArray< OutputGradientFieldVariableGradient
 
typedef Moose::DOFType< OutputType >::type DofValue
 
typedef Moose::ADType< DofValue >::type ADDofValue
 
typedef MooseArray< DofValueDofValues
 
typedef MooseArray< ADDofValueADDofValues
 

Public Member Functions

 MooseVariableData (const MooseVariableFE< OutputType > &var, SystemBase &sys, THREAD_ID tid, Moose::ElementType element_type, const QBase *const &qrule_in, const QBase *const &qrule_face_in, const Node *const &node, const Elem *const &elem)
 
bool needsAD () const
 Returns whether this data structure needs automatic differentiation calculations.
 
void setGeometry (Moose::GeometryType gm_type)
 Set the geometry type before calculating variables values.
 
void computeValues ()
 compute the variable values
 
void computeConstantMonomialValues ()
 compute the values for const monomial variables
 
template<bool constant_monomial>
void computeAD (const unsigned int num_dofs, const unsigned int nqp)
 compute AD things
 
void computeNodalValues ()
 compute nodal things
 
const FieldVariablePhiValuephi () const
 phi getter
 
const FieldVariablePhiValuephiFace () const
 phi_face getter
 
const FieldVariablePhiGradientgradPhi () const
 grad_phi getter
 
const MappedArrayVariablePhiGradientarrayGradPhi () const
 mapped_grad_phi getter
 
const FieldVariablePhiGradientgradPhiFace () const
 grad_phi_face getter
 
const MappedArrayVariablePhiGradientarrayGradPhiFace () const
 mapped_grad_phi_face getter
 
const FieldVariablePhiSecondsecondPhi () const
 second_phi getter
 
const FieldVariablePhiSecondsecondPhiFace () const
 second_phi_face getter
 
const FieldVariablePhiCurlcurlPhi () const
 curl_phi getter
 
const FieldVariablePhiCurlcurlPhiFace () const
 curl_phi_face getter
 
const FieldVariablePhiDivergencedivPhi () const
 divergence_phi getter
 
const FieldVariablePhiDivergencedivPhiFace () const
 divergence_phi_face getter
 
const ADTemplateVariablePhiGradient< OutputShape > & adGradPhi () const
 ad_grad_phi getter
 
const ADTemplateVariablePhiGradient< OutputShape > & adGradPhiFace () const
 ad_grad_phi_face getter
 
std::size_t phiSize () const
 Return phi size.
 
std::size_t phiFaceSize () const
 Return phiFace size.
 
bool usesSecondPhi () const
 Whether or not this variable is computing any second derivatives.
 
bool computingCurl () const
 Whether or not this variable is computing the curl.
 
bool computingDiv () const
 Whether or not this variable is computing the divergence.
 
bool isNodal () const override
 
bool hasDoFsOnNodes () const override
 Whether this data is associated with a variable that has DoFs on nodes.
 
libMesh::FEContinuity getContinuity () const override
 Return the variable continuity.
 
const Node *const & node () const
 
const dof_id_type & nodalDofIndex () const
 
bool isNodalDefined () const
 
const Elem *const & currentElem () const
 The current element.
 
const unsigned intcurrentSide () const
 The current side.
 
void prepareIC ()
 prepare the initial condition
 
const FieldVariableGradientgradSlnDot () const
 Local time derivative of solution gradient getter.
 
const FieldVariableGradientgradSlnDotDot () const
 Local second time derivative of solution gradient getter.
 
const FieldVariableSecondsecondSln (Moose::SolutionState state) const
 Local solution second spatial derivative getter.
 
const FieldVariableCurlcurlSln (Moose::SolutionState state) const
 Local solution curl getter.
 
const FieldVariableDivergencedivSln (Moose::SolutionState state) const
 Local solution divergence getter.
 
const ADTemplateVariableValue< OutputType > & adSln () const
 
const ADTemplateVariableGradient< OutputType > & adGradSln () const
 
const ADTemplateVariableGradient< OutputType > & adGradSlnDot () const
 
const ADTemplateVariableSecond< OutputType > & adSecondSln () const
 
const ADTemplateVariableValue< OutputType > & adUDot () const
 
const ADTemplateVariableValue< OutputType > & adUDotDot () const
 
const FieldVariableValueuDot () const
 
const FieldVariableValueuDotDot () const
 
const FieldVariableValueuDotOld () const
 
const FieldVariableValueuDotDotOld () const
 
const VariableValueduDotDu () const
 
const VariableValueduDotDotDu () const
 
const ADTemplateVariableCurl< OutputType > & adCurlSln () 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 Moose::ADType< OutputType >::type & adNodalValue () const
 
void setDofValues (const DenseVector< DofValue > &values)
 Set local DOF values and evaluate the values on quadrature points.
 
void insertNodalValue (libMesh::NumericVector< libMesh::Number > &residual, const DofValue &v)
 Write a nodal value to the passed-in solution vector.
 
DofValue getNodalValue (const Node &node, Moose::SolutionState state) const
 
DofValue getElementalValue (const Elem *elem, Moose::SolutionState state, unsigned int idx=0) const
 
void getDofIndices (const Elem *elem, std::vector< dof_id_type > &dof_indices) const
 
const std::vector< dof_id_type > & dofIndices () const
 
unsigned int numberOfDofs () const
 
void clearDofIndices ()
 
void prepare ()
 Get the dof indices corresponding to the current element.
 
void reinitNode ()
 Prepare degrees of freedom for the current node.
 
void reinitAux ()
 Prepare dof indices and solution values for elemental auxiliary variables.
 
void reinitNodes (const std::vector< dof_id_type > &nodes)
 Set _dof_indices to the degrees of freedom existing on the passed-in nodes.
 
void addSolution (libMesh::NumericVector< libMesh::Number > &sol, const DenseVector< libMesh::Number > &v) const
 Add passed in local DOF values to a solution vector.
 
const DofValuesdofValuesDot () const
 
const DofValuesdofValuesDotOld () const
 
const DofValuesdofValuesDotDot () const
 
const DofValuesdofValuesDotDotOld () const
 
const MooseArray< libMesh::Number > & dofValuesDuDotDu () const
 
const MooseArray< libMesh::Number > & dofValuesDuDotDotDu () const
 
const ADDofValuesadDofValues () const
 Return the AD dof values.
 
const ADDofValuesadDofValuesDot () const
 Return the AD time derivative values of degrees of freedom.
 
const FieldVariableValueincrement () const
 Increment getter.
 
void computeIncrementAtQps (const libMesh::NumericVector< libMesh::Number > &increment_vec)
 Compute and store incremental change in solution at QPs based on increment_vec.
 
void computeIncrementAtNode (const libMesh::NumericVector< libMesh::Number > &increment_vec)
 Compute and store incremental change at the current node based on increment_vec.
 
void insertNodalValue (NumericVector< Number > &residual, const RealEigenVector &v)
 
RealEigenVector getNodalValue (const Node &node, Moose::SolutionState state) const
 
RealEigenVector getElementalValue (const Elem *elem, const Moose::SolutionState state, const unsigned int idx) const
 
void computeIncrementAtQps (const NumericVector< Number > &increment_vec)
 
void computeIncrementAtNode (const NumericVector< Number > &increment_vec)
 
const FieldVariableValuesln (Moose::SolutionState state) const
 Local solution getter.
 
const FieldVariableGradientgradSln (Moose::SolutionState state) const
 Local solution gradient getter.
 
unsigned int oldestSolutionStateRequested () const
 The oldest solution state that is requested for this variable (0 = current, 1 = old, 2 = older, etc).
 
void setNodalValue (const OutputType &value, unsigned int idx=0)
 Set nodal value.
 
void setNodalValue (const RealVectorValue &value, unsigned int idx)
 
void insert (libMesh::NumericVector< libMesh::Number > &residual)
 Set the current local DOF values to the input vector.
 
void insert (NumericVector< Number > &residual)
 
void add (libMesh::NumericVector< libMesh::Number > &residual)
 Add the current local DOF values to the input vector.
 
void add (NumericVector< Number > &residual)
 
const DofValuesdofValues () const
 
const DofValuesdofValuesOld () const
 
const DofValuesdofValuesOlder () const
 
const DofValuesdofValuesPreviousNL () const
 
const OutputType & nodalValue (Moose::SolutionState state) const
 
const MooseArray< OutputType > & nodalValueArray (Moose::SolutionState state) const
 
const FieldVariableValuevectorTagValue (TagID tag) const
 
const FieldVariableGradientvectorTagGradient (TagID tag) const
 
const FieldVariableValuematrixTagValue (TagID tag) const
 
const DofValuesnodalVectorTagValue (TagID tag) const
 
const DofValuesnodalMatrixTagValue (TagID tag) const
 
const DofValuesvectorTagDofValue (TagID tag) const
 
const DofValuesvectorTagDofValue (Moose::SolutionState state) const
 
void setActiveTags (const std::set< TagID > &vtags)
 Set the active vector tags.
 
void prepareAux ()
 Clear aux state.
 
void sizeMatrixTagData ()
 size matrix tag data
 
void setDofValue (const DofValue &value, unsigned int index)
 dof value setters
 

Protected Member Functions

virtual const MooseVariableField< OutputType > & var () const
 
void insertSolutionTag (TagID tag_id)
 insert a solution tag into our tag containers
 
void needSolutionState (unsigned int state)
 Request that we have at least state number of older solution states/vectors.
 
void fetchDofValues ()
 Helper methods for assigning dof values from their corresponding solution values.
 
void fetchDofValues ()
 
void fetchDofValues ()
 
void zeroSizeDofValues ()
 
void getArrayDofValues (const libMesh::NumericVector< libMesh::Number > &sol, unsigned int n, MooseArray< RealEigenVector > &dof_values) const
 
void assignNodalValue ()
 
void assignNodalValue ()
 
void assignNodalValue ()
 
template<typename ReturnType , typename Functor >
const ReturnType & stateToTagHelper (Moose::SolutionState state, Functor functor)
 Helper method that converts a SolutionState argument into a corresponding tag ID, potentially requesting necessary additional solution states and assigning tag id data members, and then calls the provided functor with the tag ID.
 
void resizeVectorTagData (TagID tag)
 resize the vector tag need flags and data containers to accomodate this tag index
 

Protected Attributes

SystemBase_sys
 The MOOSE system which ultimately holds the vectors and matrices relevant to this variable data.
 
const SubProblem_subproblem
 The subproblem which we can query for information related to tagged vectors and matrices.
 
const THREAD_ID _tid
 The thread ID that this object is on.
 
const libMesh::DofMap_dof_map
 The degree of freedom map from libMesh.
 
unsigned int _count
 Number of components of the associated variable.
 
bool _has_dof_values
 Whether we currently have degree of freedom values stored in our local containers (corresponding to the current element)
 
unsigned int _max_state
 The maximum number of older solution states our variable needs.
 
TagID _solution_tag
 The vector tag ID corresponding to the solution vector.
 
TagID _old_solution_tag
 The vector tag ID corresponding to the old solution vector.
 
TagID _older_solution_tag
 The vector tag ID corresponding to the older solution vector.
 
TagID _previous_nl_solution_tag
 The vector tag ID corresponding to the previous nonlinear iteration's solution vector.
 
std::vector< dof_id_type > _dof_indices
 The dof indices for the current element.
 
std::vector< bool > _need_vector_tag_dof_u
 
std::vector< bool > _need_matrix_tag_dof_u
 
std::vector< DofValues_vector_tags_dof_u
 
std::vector< DofValues_matrix_tags_dof_u
 
std::vector< FieldVariableValue_vector_tag_u
 
std::vector< bool > _need_vector_tag_u
 
std::vector< FieldVariableGradient_vector_tag_grad
 
std::vector< bool > _need_vector_tag_grad
 
std::vector< FieldVariableValue_matrix_tag_u
 
std::vector< bool > _need_matrix_tag_u
 
OutputType _nodal_value
 Nodal values.
 
OutputType _nodal_value_old
 
OutputType _nodal_value_older
 
OutputType _nodal_value_previous_nl
 
MooseArray< OutputType > _nodal_value_array
 Nodal values as MooseArrays for use with AuxKernels.
 
MooseArray< OutputType > _nodal_value_old_array
 
MooseArray< OutputType > _nodal_value_older_array
 
bool _need_u_dot
 u dot flags
 
bool _need_u_dotdot
 
bool _need_u_dot_old
 
bool _need_u_dotdot_old
 
bool _need_du_dot_du
 
bool _need_du_dotdot_du
 
bool _need_grad_dot
 gradient dot flags
 
bool _need_grad_dotdot
 
bool _need_dof_values_dot
 local solution flags
 
bool _need_dof_values_dotdot
 
bool _need_dof_values_dot_old
 
bool _need_dof_values_dotdot_old
 
bool _need_dof_du_dot_du
 
bool _need_dof_du_dotdot_du
 
DofValues _dof_values_dot
 time derivative of the solution values
 
DofValues _dof_values_dotdot
 second time derivative of the solution values
 
DofValues _dof_values_dot_old
 the previous time step's solution value time derivative
 
DofValues _dof_values_dotdot_old
 the previous time step's solution value second time derivative
 
MooseArray< libMesh::Number_dof_du_dot_du
 derivatives of the solution value time derivative with respect to the degrees of freedom
 
MooseArray< libMesh::Number_dof_du_dotdot_du
 derivatives of the solution value second time derivative with respect to the degrees of freedom
 
OutputType _nodal_value_dot
 nodal values of u_dot
 
OutputType _nodal_value_dotdot
 nodal values of u_dotdot
 
OutputType _nodal_value_dot_old
 nodal values of u_dot_old
 
OutputType _nodal_value_dotdot_old
 nodal values of u_dotdot_old
 
std::set< TagID_required_vector_tags
 The set of vector tags (residual + solution) we need to evaluate.
 
std::set< TagID_solution_tags
 The set of solution tags we need to evaluate.
 

Private Member Functions

void fetchADDofValues ()
 Helper method for assigning the ad_dof* arrays.
 
void assignADNodalValue ()
 Helper method for assigning nodal values from their corresponding solution values (dof values as they're referred to here in this class).
 
template<bool constant_monomial>
void computeValuesInternal ()
 Internal method for computeValues() and computeConstantMonomialValues()
 
template<bool constant_monomial, typename DestinationType , typename ShapeType , typename DofValuesType >
void fill (DestinationType &dest, const ShapeType &phi, const DofValuesType &dof_values, unsigned int nqp, std::size_t num_shapes)
 
void fetchADDofValues ()
 
void assignADNodalValue ()
 

Private Attributes

const MooseVariableFE< OutputType > & _var
 A const reference to the owning MooseVariableFE object.
 
const libMesh::FEType_fe_type
 
const unsigned int _var_num
 
const Assembly_assembly
 
Moose::ElementType _element_type
 The element type this object is storing data for. This is either Element, Neighbor, or Lower.
 
bool _is_nodal
 if variable is nodal
 
dof_id_type _nodal_dof_index
 The dof index for the current node.
 
libMesh::FEContinuity _continuity
 Continuity type of the variable.
 
FieldVariableValue _increment
 Increment in the variable used in dampers.
 
Moose::ADType< OutputType >::type _ad_nodal_value
 AD nodal value.
 
ADReal _ad_zero
 A zero AD variable.
 
bool _need_second = false
 SolutionState second_u flags.
 
bool _need_second_old = false
 
bool _need_second_older = false
 
bool _need_second_previous_nl = false
 
bool _need_curl = false
 curl flags
 
bool _need_curl_old = false
 
bool _need_curl_older = false
 
bool _need_div = false
 divergence flags
 
bool _need_div_old = false
 
bool _need_div_older = false
 
bool _need_ad = false
 AD flags.
 
bool _need_ad_u = false
 
bool _need_ad_grad_u = false
 
bool _need_ad_grad_u_dot = false
 
bool _need_ad_second_u = false
 
bool _need_ad_curl_u = false
 
bool _need_ad_div_u = false
 
bool _need_ad_u_dot = false
 
bool _need_ad_u_dotdot = false
 
bool _has_dof_indices
 
FieldVariableGradient _grad_u_dot
 grad_u dots
 
FieldVariableGradient _grad_u_dotdot
 
FieldVariableSecond _second_u
 second_u
 
FieldVariableSecond _second_u_old
 
FieldVariableSecond _second_u_older
 
FieldVariableSecond _second_u_previous_nl
 
FieldVariableCurl _curl_u
 curl_u
 
FieldVariableCurl _curl_u_old
 
FieldVariableCurl _curl_u_older
 
FieldVariableDivergence _div_u
 divergence_u
 
FieldVariableDivergence _div_u_old
 
FieldVariableDivergence _div_u_older
 
ADTemplateVariableValue< OutputType > _ad_u
 AD u.
 
ADTemplateVariableGradient< OutputType > _ad_grad_u
 
ADTemplateVariableSecond< OutputType > _ad_second_u
 
ADDofValues _ad_dof_values
 
ADDofValues _ad_dofs_dot
 
MooseArray< ADRealEigenVector > _ad_dofs_dot_eigen
 
ADDofValues _ad_dofs_dotdot
 
MooseArray< ADRealEigenVector > _ad_dofs_dotdot_eigen
 
ADTemplateVariableValue< OutputType > _ad_u_dot
 
ADTemplateVariableValue< OutputType > _ad_u_dotdot
 
ADTemplateVariableGradient< OutputType > _ad_grad_u_dot
 
ADTemplateVariableCurl< OutputType > _ad_curl_u
 
FieldVariableValue _u_dot
 u_dot (time derivative)
 
FieldVariableValue _u_dotdot
 u_dotdot (second time derivative)
 
FieldVariableValue _u_dot_old
 u_dot_old (time derivative)
 
FieldVariableValue _u_dotdot_old
 u_dotdot_old (second time derivative)
 
VariableValue _du_dot_du
 derivative of u_dot wrt u
 
VariableValue _du_dotdot_du
 derivative of u_dotdot wrt u
 
const QBase *const & _qrule
 The current qrule.
 
const QBase *const & _qrule_face
 
const FieldVariablePhiValue_phi
 
const FieldVariablePhiGradient_grad_phi
 
const FieldVariablePhiSecond_second_phi
 
const FieldVariablePhiCurl_curl_phi
 
const FieldVariablePhiDivergence_div_phi
 
MappedArrayVariablePhiGradient _mapped_grad_phi
 
MappedArrayVariablePhiGradient _mapped_grad_phi_face
 
MappedArrayVariablePhiGradient _mapped_grad_phi_neighbor
 
MappedArrayVariablePhiGradient _mapped_grad_phi_face_neighbor
 
const FieldVariablePhiValue_phi_face
 
const FieldVariablePhiGradient_grad_phi_face
 
const FieldVariablePhiSecond_second_phi_face
 
const FieldVariablePhiCurl_curl_phi_face
 
const FieldVariablePhiDivergence_div_phi_face
 
const ADTemplateVariablePhiGradient< OutputShape > * _ad_grad_phi
 
const ADTemplateVariablePhiGradient< OutputShape > * _ad_grad_phi_face
 
const QBase_current_qrule
 
const FieldVariablePhiValue_current_phi
 
const FieldVariablePhiGradient_current_grad_phi
 
const FieldVariablePhiSecond_current_second_phi
 
const FieldVariablePhiCurl_current_curl_phi
 
const FieldVariablePhiDivergence_current_div_phi
 
const ADTemplateVariablePhiGradient< OutputShape > * _current_ad_grad_phi
 
const bool _use_dual
 
std::function< const typename OutputTools< OutputType >::VariablePhiValue &(const Assembly &, libMesh::FEType)> _phi_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiValue &(const Assembly &, libMesh::FEType)> _phi_face_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiGradient &(const Assembly &, libMesh::FEType)> _grad_phi_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiGradient &(const Assembly &, libMesh::FEType)> _grad_phi_face_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiSecond &(const Assembly &, libMesh::FEType)> _second_phi_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiSecond &(const Assembly &, libMesh::FEType)> _second_phi_face_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiCurl &(const Assembly &, libMesh::FEType)> _curl_phi_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiCurl &(const Assembly &, libMesh::FEType)> _curl_phi_face_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> _div_phi_assembly_method
 
std::function< const typename OutputTools< OutputShape >::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> _div_phi_face_assembly_method
 
std::function< const ADTemplateVariablePhiGradient< OutputShape > &(const Assembly &, libMesh::FEType)> _ad_grad_phi_assembly_method
 
std::function< const ADTemplateVariablePhiGradient< OutputShape > &(const Assembly &, libMesh::FEType)> _ad_grad_phi_face_assembly_method
 
const TimeIntegrator_time_integrator
 Pointer to time integrator.
 
const Node *const & _node
 The current node.
 
const Elem *const & _elem
 The current elem.
 
const bool _displaced
 Whether this variable is being calculated on a displaced system.
 
const unsigned int_current_side
 The current element side.
 
ADReal _ad_real_dummy = 0
 A dummy ADReal variable.
 

Detailed Description

template<typename OutputType>
class MooseVariableData< OutputType >

Definition at line 48 of file MooseVariableData.h.

Member Typedef Documentation

◆ ADDofValue

template<typename OutputType >
typedef Moose::ADType<DofValue>::type MooseVariableDataBase< OutputType >::ADDofValue
inherited

Definition at line 47 of file MooseVariableDataBase.h.

◆ ADDofValues

template<typename OutputType >
typedef MooseArray<ADDofValue> MooseVariableDataBase< OutputType >::ADDofValues
inherited

Definition at line 49 of file MooseVariableDataBase.h.

◆ DofValue

template<typename OutputType >
typedef Moose::DOFType<OutputType>::type MooseVariableDataBase< OutputType >::DofValue
inherited

Definition at line 46 of file MooseVariableDataBase.h.

◆ DofValues

template<typename OutputType >
typedef MooseArray<DofValue> MooseVariableDataBase< OutputType >::DofValues
inherited

Definition at line 48 of file MooseVariableDataBase.h.

◆ FieldVariableCurl

template<typename OutputType >
typedef MooseArray<OutputType> MooseVariableData< OutputType >::FieldVariableCurl

Definition at line 60 of file MooseVariableData.h.

◆ FieldVariableDivergence

template<typename OutputType >
typedef MooseArray<OutputDivergence> MooseVariableData< OutputType >::FieldVariableDivergence

Definition at line 61 of file MooseVariableData.h.

◆ FieldVariableGradient

template<typename OutputType >
typedef MooseArray<OutputGradient> MooseVariableDataBase< OutputType >::FieldVariableGradient
inherited

Definition at line 43 of file MooseVariableDataBase.h.

◆ FieldVariablePhiCurl

template<typename OutputType >
typedef MooseArray<std::vector<OutputShape> > MooseVariableData< OutputType >::FieldVariablePhiCurl

Definition at line 75 of file MooseVariableData.h.

◆ FieldVariablePhiDivergence

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeDivergence> > MooseVariableData< OutputType >::FieldVariablePhiDivergence

Definition at line 76 of file MooseVariableData.h.

◆ FieldVariablePhiGradient

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeGradient> > MooseVariableData< OutputType >::FieldVariablePhiGradient

Definition at line 73 of file MooseVariableData.h.

◆ FieldVariablePhiSecond

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeSecond> > MooseVariableData< OutputType >::FieldVariablePhiSecond

Definition at line 74 of file MooseVariableData.h.

◆ FieldVariablePhiValue

template<typename OutputType >
typedef MooseArray<std::vector<OutputShape> > MooseVariableData< OutputType >::FieldVariablePhiValue

Definition at line 72 of file MooseVariableData.h.

◆ FieldVariableSecond

template<typename OutputType >
typedef MooseArray<OutputSecond> MooseVariableData< OutputType >::FieldVariableSecond

Definition at line 59 of file MooseVariableData.h.

◆ FieldVariableTestCurl

template<typename OutputType >
typedef MooseArray<std::vector<OutputShape> > MooseVariableData< OutputType >::FieldVariableTestCurl

Definition at line 83 of file MooseVariableData.h.

◆ FieldVariableTestDivergence

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeDivergence> > MooseVariableData< OutputType >::FieldVariableTestDivergence

Definition at line 84 of file MooseVariableData.h.

◆ FieldVariableTestGradient

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeGradient> > MooseVariableData< OutputType >::FieldVariableTestGradient

Definition at line 81 of file MooseVariableData.h.

◆ FieldVariableTestSecond

template<typename OutputType >
typedef MooseArray<std::vector<OutputShapeSecond> > MooseVariableData< OutputType >::FieldVariableTestSecond

Definition at line 82 of file MooseVariableData.h.

◆ FieldVariableTestValue

template<typename OutputType >
typedef MooseArray<std::vector<OutputShape> > MooseVariableData< OutputType >::FieldVariableTestValue

Definition at line 80 of file MooseVariableData.h.

◆ FieldVariableValue

template<typename OutputType >
typedef MooseArray<OutputType> MooseVariableDataBase< OutputType >::FieldVariableValue
inherited

Definition at line 42 of file MooseVariableDataBase.h.

◆ OutputDivergence

template<typename OutputType >
typedef libMesh::TensorTools::DecrementRank<OutputType>::type MooseVariableDataBase< OutputType >::OutputDivergence
inherited

Definition at line 39 of file MooseVariableDataBase.h.

◆ OutputGradient

template<typename OutputType >
typedef libMesh::TensorTools::IncrementRank<OutputType>::type MooseVariableDataBase< OutputType >::OutputGradient
inherited

Definition at line 37 of file MooseVariableDataBase.h.

◆ OutputSecond

template<typename OutputType >
typedef libMesh::TensorTools::IncrementRank<OutputGradient>::type MooseVariableDataBase< OutputType >::OutputSecond
inherited

Definition at line 38 of file MooseVariableDataBase.h.

◆ OutputShape

template<typename OutputType >
typedef Moose::ShapeType<OutputType>::type MooseVariableData< OutputType >::OutputShape

Definition at line 64 of file MooseVariableData.h.

◆ OutputShapeDivergence

template<typename OutputType >
typedef libMesh::TensorTools::DecrementRank<OutputShape>::type MooseVariableData< OutputType >::OutputShapeDivergence

Definition at line 69 of file MooseVariableData.h.

◆ OutputShapeGradient

template<typename OutputType >
typedef libMesh::TensorTools::IncrementRank<OutputShape>::type MooseVariableData< OutputType >::OutputShapeGradient

Definition at line 67 of file MooseVariableData.h.

◆ OutputShapeSecond

template<typename OutputType >
typedef libMesh::TensorTools::IncrementRank<OutputShapeGradient>::type MooseVariableData< OutputType >::OutputShapeSecond

Definition at line 68 of file MooseVariableData.h.

Constructor & Destructor Documentation

◆ MooseVariableData()

template<typename OutputType >
MooseVariableData< OutputType >::MooseVariableData ( const MooseVariableFE< OutputType > &  var,
SystemBase sys,
THREAD_ID  tid,
Moose::ElementType  element_type,
const QBase *const &  qrule_in,
const QBase *const &  qrule_face_in,
const Node *const &  node,
const Elem *const &  elem 
)

Definition at line 26 of file MooseVariableData.C.

36 _var(var),
37 _fe_type(var.feType()),
38 _var_num(var.number()),
40 _element_type(element_type),
41 _ad_zero(0),
42 _has_dof_indices(false),
43 _qrule(qrule_in),
44 _qrule_face(qrule_face_in),
45 _use_dual(var.useDual()),
54 _time_integrator(nullptr),
55 _node(node),
56 _elem(elem),
57 _displaced(dynamic_cast<const DisplacedSystem *>(&_sys) ? true : false),
59{
60 _continuity = FEInterface::get_continuity(_fe_type);
61
63
65
66 // Initialize AD zero with zero derivatives
67 const auto old_do = ADReal::do_derivatives;
68 ADReal::do_derivatives = true;
69 _ad_zero = 0.;
70 ADReal::do_derivatives = old_do;
71
72 switch (_element_type)
73 {
75 {
76 _phi_assembly_method = &Assembly::fePhi<OutputShape>;
77 _phi_face_assembly_method = &Assembly::fePhiFace<OutputShape>;
78 _grad_phi_assembly_method = &Assembly::feGradPhi<OutputShape>;
79 _grad_phi_face_assembly_method = &Assembly::feGradPhiFace<OutputShape>;
80 _second_phi_assembly_method = &Assembly::feSecondPhi<OutputShape>;
81 _second_phi_face_assembly_method = &Assembly::feSecondPhiFace<OutputShape>;
82 _curl_phi_assembly_method = &Assembly::feCurlPhi<OutputShape>;
83 _curl_phi_face_assembly_method = &Assembly::feCurlPhiFace<OutputShape>;
84 _div_phi_assembly_method = &Assembly::feDivPhi<OutputShape>;
85 _div_phi_face_assembly_method = &Assembly::feDivPhiFace<OutputShape>;
86 _ad_grad_phi_assembly_method = &Assembly::feADGradPhi<OutputShape>;
87 _ad_grad_phi_face_assembly_method = &Assembly::feADGradPhiFace<OutputShape>;
88
91 break;
92 }
94 {
95 _phi_assembly_method = &Assembly::fePhiNeighbor<OutputShape>;
96 _phi_face_assembly_method = &Assembly::fePhiFaceNeighbor<OutputShape>;
97 _grad_phi_assembly_method = &Assembly::feGradPhiNeighbor<OutputShape>;
98 _grad_phi_face_assembly_method = &Assembly::feGradPhiFaceNeighbor<OutputShape>;
99 _second_phi_assembly_method = &Assembly::feSecondPhiNeighbor<OutputShape>;
100 _second_phi_face_assembly_method = &Assembly::feSecondPhiFaceNeighbor<OutputShape>;
101 _curl_phi_assembly_method = &Assembly::feCurlPhiNeighbor<OutputShape>;
102 _curl_phi_face_assembly_method = &Assembly::feCurlPhiFaceNeighbor<OutputShape>;
103 _div_phi_assembly_method = &Assembly::feDivPhiNeighbor<OutputShape>;
104 _div_phi_face_assembly_method = &Assembly::feDivPhiFaceNeighbor<OutputShape>;
105
106 _ad_grad_phi = nullptr;
107 _ad_grad_phi_face = nullptr;
108 break;
109 }
111 {
112 if (_use_dual)
113 {
114 _phi_assembly_method = &Assembly::feDualPhiLower<OutputType>;
115 _phi_face_assembly_method = &Assembly::feDualPhiLower<OutputType>; // Place holder
116 _grad_phi_assembly_method = &Assembly::feGradDualPhiLower<OutputType>;
117 _grad_phi_face_assembly_method = &Assembly::feGradDualPhiLower<OutputType>; // Place holder
118 }
119 else
120 {
121 _phi_assembly_method = &Assembly::fePhiLower<OutputType>;
122 _phi_face_assembly_method = &Assembly::fePhiLower<OutputType>; // Place holder
123 _grad_phi_assembly_method = &Assembly::feGradPhiLower<OutputType>;
124 _grad_phi_face_assembly_method = &Assembly::feGradPhiLower<OutputType>; // Place holder
125 }
126
127 _ad_grad_phi = nullptr;
128 _ad_grad_phi_face = nullptr;
129 break;
130 }
131 }
136}
SystemBase & _sys
The MOOSE system which ultimately holds the vectors and matrices relevant to this variable data.
virtual const MooseVariableField< OutputType > & var() const
const THREAD_ID _tid
The thread ID that this object is on.
const SubProblem & _subproblem
The subproblem which we can query for information related to tagged vectors and matrices.
std::function< const typename OutputTools< OutputShape >::VariablePhiSecond &(const Assembly &, libMesh::FEType)> _second_phi_assembly_method
const libMesh::FEType & _fe_type
std::function< const typename OutputTools< OutputShape >::VariablePhiSecond &(const Assembly &, libMesh::FEType)> _second_phi_face_assembly_method
std::function< const typename OutputTools< OutputShape >::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> _div_phi_face_assembly_method
std::function< const typename OutputTools< OutputShape >::VariablePhiCurl &(const Assembly &, libMesh::FEType)> _curl_phi_face_assembly_method
const FieldVariablePhiGradient * _grad_phi_face
const QBase *const & _qrule
The current qrule.
std::function< const ADTemplateVariablePhiGradient< OutputShape > &(const Assembly &, libMesh::FEType)> _ad_grad_phi_assembly_method
bool _is_nodal
if variable is nodal
const MooseVariableFE< OutputType > & _var
A const reference to the owning MooseVariableFE object.
const FieldVariablePhiValue * _phi
std::function< const typename OutputTools< OutputShape >::VariablePhiGradient &(const Assembly &, libMesh::FEType)> _grad_phi_assembly_method
const FieldVariablePhiValue * _phi_face
ADReal _ad_zero
A zero AD variable.
const unsigned int _var_num
const FieldVariablePhiGradient * _grad_phi
const ADTemplateVariablePhiGradient< OutputShape > * _ad_grad_phi
std::function< const typename OutputTools< OutputShape >::VariablePhiCurl &(const Assembly &, libMesh::FEType)> _curl_phi_assembly_method
const ADTemplateVariablePhiGradient< OutputShape > * _ad_grad_phi_face
const QBase *const & _qrule_face
std::function< const typename OutputTools< OutputShape >::VariablePhiGradient &(const Assembly &, libMesh::FEType)> _grad_phi_face_assembly_method
std::function< const ADTemplateVariablePhiGradient< OutputShape > &(const Assembly &, libMesh::FEType)> _ad_grad_phi_face_assembly_method
const Elem *const & _elem
The current elem.
const bool _displaced
Whether this variable is being calculated on a displaced system.
const Node *const & _node
The current node.
std::function< const typename OutputTools< OutputShape >::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> _div_phi_assembly_method
const TimeIntegrator * _time_integrator
Pointer to time integrator.
const unsigned int & _current_side
The current element side.
const Assembly & _assembly
Moose::ElementType _element_type
The element type this object is storing data for. This is either Element, Neighbor,...
libMesh::FEContinuity _continuity
Continuity type of the variable.
const Node *const & node() const
std::function< const typename OutputTools< OutputShape >::VariablePhiValue &(const Assembly &, libMesh::FEType)> _phi_face_assembly_method
std::function< const typename OutputTools< OutputType >::VariablePhiValue &(const Assembly &, libMesh::FEType)> _phi_assembly_method
virtual Assembly & assembly(const THREAD_ID tid, const unsigned int sys_num)=0
unsigned int number() const
Gets the number of this system.
const TimeIntegrator * queryTimeIntegrator(const unsigned int var_num) const
Retrieve the time integrator that integrates the given variable's equation.
@ VAR_SOLVER
Definition MooseTypes.h:770

Member Function Documentation

◆ adCurlSln()

template<typename OutputType >
const ADTemplateVariableCurl< OutputType > & MooseVariableData< OutputType >::adCurlSln ( ) const
inline

Definition at line 355 of file MooseVariableData.h.

356 {
357 _need_ad = _need_ad_curl_u = true;
358 curlPhi();
359 curlPhiFace();
360 return _ad_curl_u;
361 }
const FieldVariablePhiCurl & curlPhi() const
curl_phi getter
ADTemplateVariableCurl< OutputType > _ad_curl_u
const FieldVariablePhiCurl & curlPhiFace() const
curl_phi_face getter

◆ add() [1/2]

template<typename OutputType >
void MooseVariableDataBase< OutputType >::add ( libMesh::NumericVector< libMesh::Number > &  residual)
inherited

Add the current local DOF values to the input vector.

Definition at line 441 of file MooseVariableDataBase.C.

442{
443 if (_has_dof_values)
444 {
445 const auto & dof_values = _vector_tags_dof_u[_solution_tag];
446 residual.add_vector(&dof_values[0], _dof_indices);
447 }
448}
std::vector< dof_id_type > _dof_indices
The dof indices for the current element.
std::vector< DofValues > _vector_tags_dof_u
TagID _solution_tag
The vector tag ID corresponding to the solution vector.
bool _has_dof_values
Whether we currently have degree of freedom values stored in our local containers (corresponding to t...
virtual void add_vector(const T *v, const std::vector< numeric_index_type > &dof_indices)

◆ add() [2/2]

void MooseVariableDataBase< RealEigenVector >::add ( NumericVector< Number > &  residual)
inherited

Definition at line 452 of file MooseVariableDataBase.C.

453{
454 if (_has_dof_values)
455 {
456 const auto & dof_values = _vector_tags_dof_u[_solution_tag];
457 mooseAssert(_dof_indices.size() % _count == 0,
458 "Dof indices should be cleanly divisible by the variable count");
459 const auto n_shapes = _dof_indices.size() / _count;
460 for (const auto indx : index_range(_dof_indices))
461 {
462 const auto i = indx % n_shapes;
463 const auto j = indx / n_shapes;
464 residual.add(_dof_indices[indx], dof_values[i](j));
465 }
466 }
467}
unsigned int _count
Number of components of the associated variable.
virtual void add(const numeric_index_type i, const T value)=0
auto index_range(const T &sizable)

◆ adDofValues()

template<typename OutputType >
const MooseVariableData< OutputType >::ADDofValues & MooseVariableData< OutputType >::adDofValues ( ) const

Return the AD dof values.

Definition at line 771 of file MooseVariableData.h.

772{
773 _need_ad = true;
774 return _ad_dof_values;
775}

◆ adDofValuesDot()

template<typename OutputType >
const MooseVariableData< OutputType >::ADDofValues & MooseVariableData< OutputType >::adDofValuesDot ( ) const

Return the AD time derivative values of degrees of freedom.

Definition at line 779 of file MooseVariableData.h.

780{
781 _need_ad = _need_ad_u_dot = true;
782 if (!_time_integrator)
783 // See explanation in adUDot() body
784 _need_u_dot = true;
785 return _ad_dofs_dot;
786}

◆ addSolution()

template<typename OutputType >
void MooseVariableData< OutputType >::addSolution ( libMesh::NumericVector< libMesh::Number > &  sol,
const DenseVector< libMesh::Number > &  v 
) const

Add passed in local DOF values to a solution vector.

Definition at line 1073 of file MooseVariableData.C.

1075{
1076 sol.add_vector(v, _dof_indices);
1077}

◆ adGradPhi()

template<typename OutputType >
const ADTemplateVariablePhiGradient< typename MooseVariableData< OutputType >::OutputShape > & MooseVariableData< OutputType >::adGradPhi ( ) const

ad_grad_phi getter

Definition at line 830 of file MooseVariableData.h.

831{
833 mooseError("Unsupported element type: ", Moose::stringify(_element_type));
834 mooseAssert(_ad_grad_phi, "this should be non-null");
835 return *_ad_grad_phi;
836}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
std::string stringify(const T &t)
conversion to string
Definition Conversion.h:64

◆ adGradPhiFace()

template<typename OutputType >
const ADTemplateVariablePhiGradient< typename MooseVariableData< OutputType >::OutputShape > & MooseVariableData< OutputType >::adGradPhiFace ( ) const

ad_grad_phi_face getter

Definition at line 840 of file MooseVariableData.h.

841{
843 mooseError("Unsupported element type: ", Moose::stringify(_element_type));
844 mooseAssert(_ad_grad_phi_face, "this should be non-null");
845 return *_ad_grad_phi_face;
846}

◆ adGradSln()

template<typename OutputType >
const ADTemplateVariableGradient< OutputType > & MooseVariableData< OutputType >::adGradSln ( ) const
inline

Definition at line 303 of file MooseVariableData.h.

304 {
305 _need_ad = _need_ad_grad_u = true;
306 return _ad_grad_u;
307 }
ADTemplateVariableGradient< OutputType > _ad_grad_u

◆ adGradSlnDot()

template<typename OutputType >
const ADTemplateVariableGradient< OutputType > & MooseVariableData< OutputType >::adGradSlnDot ( ) const
inline

Definition at line 309 of file MooseVariableData.h.

310 {
312
313 if (!_time_integrator)
314 // If we don't have a time integrator (this will be the case for variables that are a part of
315 // the AuxiliarySystem) then we have no way to calculate _ad_grad_u_dot and we are just going
316 // to copy the values from _grad_u_dot. Of course in order to be able to do that we need to
317 // calculate _grad_u_dot
318 _need_grad_dot = true;
319
320 return _ad_grad_u_dot;
321 }
bool _need_grad_dot
gradient dot flags
ADTemplateVariableGradient< OutputType > _ad_grad_u_dot

◆ adNodalValue()

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

Definition at line 790 of file MooseVariableData.h.

791{
792 _need_ad = true;
793 return _ad_nodal_value;
794}
Moose::ADType< OutputType >::type _ad_nodal_value
AD nodal value.

◆ adSecondSln()

template<typename OutputType >
const ADTemplateVariableSecond< OutputType > & MooseVariableData< OutputType >::adSecondSln ( ) const
inline

Definition at line 323 of file MooseVariableData.h.

324 {
326 secondPhi();
328 return _ad_second_u;
329 }
ADTemplateVariableSecond< OutputType > _ad_second_u
const FieldVariablePhiSecond & secondPhi() const
second_phi getter
const FieldVariablePhiSecond & secondPhiFace() const
second_phi_face getter

◆ adSln()

template<typename OutputType >
const ADTemplateVariableValue< OutputType > & MooseVariableData< OutputType >::adSln ( ) const
inline

Definition at line 297 of file MooseVariableData.h.

298 {
299 _need_ad = _need_ad_u = true;
300 return _ad_u;
301 }
ADTemplateVariableValue< OutputType > _ad_u
AD u.

◆ adUDot()

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

Definition at line 798 of file MooseVariableData.h.

799{
800 _need_ad = _need_ad_u_dot = true;
801
802 if (!_time_integrator)
803 // If we don't have a time integrator (this will be the case for variables that are a part of
804 // the AuxiliarySystem) then we have no way to calculate _ad_u_dot and we are just going to
805 // copy the values from _u_dot. Of course in order to be able to do that we need to calculate
806 // _u_dot
807 _need_u_dot = true;
808
809 return _ad_u_dot;
810}
ADTemplateVariableValue< OutputType > _ad_u_dot

◆ adUDotDot()

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

Definition at line 814 of file MooseVariableData.h.

815{
817
818 if (!_time_integrator)
819 // If we don't have a time integrator (this will be the case for variables that are a part
820 // of the AuxiliarySystem) then we have no way to calculate _ad_u_dotdot and we are just
821 // going to copy the values from _u_dotdot. Of course in order to be able to do that we need
822 // to calculate _u_dotdot
823 _need_u_dotdot = true;
824
825 return _ad_u_dotdot;
826}
ADTemplateVariableValue< OutputType > _ad_u_dotdot

◆ arrayGradPhi()

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

mapped_grad_phi getter

Definition at line 155 of file MooseVariableData.h.

156 {
157 mooseAssert(var().fieldType() == Moose::VarFieldType::VAR_FIELD_ARRAY, "Not an array variable");
158 return _mapped_grad_phi;
159 }
MappedArrayVariablePhiGradient _mapped_grad_phi
@ VAR_FIELD_ARRAY
Definition MooseTypes.h:780

◆ arrayGradPhiFace()

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

mapped_grad_phi_face getter

Definition at line 169 of file MooseVariableData.h.

170 {
171 mooseAssert(var().fieldType() == Moose::VarFieldType::VAR_FIELD_ARRAY, "Not an array variable");
173 }
MappedArrayVariablePhiGradient _mapped_grad_phi_face

◆ assignADNodalValue() [1/2]

template<typename OutputType >
void MooseVariableData< OutputType >::assignADNodalValue ( )
private

Helper method for assigning nodal values from their corresponding solution values (dof values as they're referred to here in this class).

This method is only truly meaningful for nodal basis families

Definition at line 1355 of file MooseVariableData.C.

1356{
1357 mooseAssert(_ad_dof_values.size(), "The AD dof values container must have size greater than 0");
1359}
unsigned int size() const
The number of elements that can currently be stored in the array.
Definition MooseArray.h:259

◆ assignADNodalValue() [2/2]

void MooseVariableData< RealVectorValue >::assignADNodalValue ( )
private

Definition at line 1363 of file MooseVariableData.C.

1364{
1365 const auto num_dofs = _dof_indices.size();
1366 mooseAssert(_ad_dof_values.size() == num_dofs,
1367 "Our dof values container size should match the dof indices container size");
1368 for (const auto i : make_range(num_dofs))
1370}
IntRange< T > make_range(T beg, T end)

◆ assignNodalValue() [1/3]

template<typename OutputType >
void MooseVariableDataBase< OutputType >::assignNodalValue ( )
protectedinherited

Definition at line 736 of file MooseVariableDataBase.C.

737{
738 bool is_transient = _subproblem.isTransient();
740
741 auto & dof_values = _vector_tags_dof_u[_solution_tag];
742 _nodal_value = dof_values[0];
744
745 if (is_transient)
746 {
748 {
751 }
753 {
756 }
765 }
768}
OutputType _nodal_value_dotdot
nodal values of u_dotdot
OutputType _nodal_value_dot_old
nodal values of u_dot_old
bool _need_dof_values_dot
local solution flags
TagID _previous_nl_solution_tag
The vector tag ID corresponding to the previous nonlinear iteration's solution vector.
DofValues _dof_values_dotdot
second time derivative of the solution values
TagID _old_solution_tag
The vector tag ID corresponding to the old solution vector.
unsigned int oldestSolutionStateRequested() const
The oldest solution state that is requested for this variable (0 = current, 1 = old,...
OutputType _nodal_value_dotdot_old
nodal values of u_dotdot_old
TagID _older_solution_tag
The vector tag ID corresponding to the older solution vector.
DofValues _dof_values_dot_old
the previous time step's solution value time derivative
DofValues _dof_values_dot
time derivative of the solution values
MooseArray< OutputType > _nodal_value_old_array
DofValues _dof_values_dotdot_old
the previous time step's solution value second time derivative
MooseArray< OutputType > _nodal_value_array
Nodal values as MooseArrays for use with AuxKernels.
OutputType _nodal_value
Nodal values.
OutputType _nodal_value_dot
nodal values of u_dot
MooseArray< OutputType > _nodal_value_older_array
virtual bool isTransient() const =0
const TagID INVALID_TAG_ID
Definition MooseTypes.C:23
libmesh_assert(ctx)

◆ assignNodalValue() [2/3]

void MooseVariableDataBase< RealVectorValue >::assignNodalValue ( )
protectedinherited

◆ assignNodalValue() [3/3]

void MooseVariableDataBase< RealVectorValue >::assignNodalValue ( )
protectedinherited

Definition at line 772 of file MooseVariableDataBase.C.

773{
774 bool is_transient = _subproblem.isTransient();
775
776 auto n = _dof_indices.size();
778
779 auto & dof_values = _vector_tags_dof_u[_solution_tag];
780 for (decltype(n) i = 0; i < n; ++i)
781 _nodal_value(i) = dof_values[i];
783
784 if (is_transient)
785 {
787 {
788 auto & dof_values_old = _vector_tags_dof_u[_old_solution_tag];
789 for (decltype(n) i = 0; i < n; ++i)
790 _nodal_value_old(i) = dof_values_old[i];
792 }
794 {
795 auto & dof_values_older = _vector_tags_dof_u[_older_solution_tag];
796 for (decltype(n) i = 0; i < n; ++i)
797 _nodal_value_older(i) = dof_values_older[i];
799 }
801 for (decltype(n) i = 0; i < n; ++i)
804 for (decltype(n) i = 0; i < n; ++i)
807 for (decltype(n) i = 0; i < n; ++i)
810 for (decltype(n) i = 0; i < n; ++i)
812 }
814 {
815 auto & dof_values_previous_nl = _vector_tags_dof_u[_previous_nl_solution_tag];
816 for (decltype(n) i = 0; i < n; ++i)
817 _nodal_value_previous_nl(i) = dof_values_previous_nl[i];
818 }
819}

◆ clearDofIndices()

template<typename OutputType >
void MooseVariableData< OutputType >::clearDofIndices ( )
inline

Definition at line 399 of file MooseVariableData.h.

399{ _dof_indices.clear(); }

◆ computeAD()

template<typename OutputType >
template<bool constant_monomial>
void MooseVariableData< OutputType >::computeAD ( const unsigned int  num_dofs,
const unsigned int  nqp 
)

compute AD things

Definition at line 788 of file MooseVariableData.C.

789{
791 const auto n_test = num_dofs / _count;
792
793 // Values
794 if (_need_ad_u)
795 fill<constant_monomial>(_ad_u, *_current_phi, _ad_dof_values, nqp, n_test);
796 // Grad
797 if (_need_ad_grad_u)
798 {
799 // The latter check here is for handling the fact that we have not yet implemented
800 // calculation of ad_grad_phi for neighbor and neighbor-face, so if we are in that
801 // situation we need to default to using the non-ad grad_phi
803 fill<constant_monomial>(_ad_grad_u, *_current_ad_grad_phi, _ad_dof_values, nqp, n_test);
804 else
805 fill<constant_monomial>(_ad_grad_u, *_current_grad_phi, _ad_dof_values, nqp, n_test);
806 }
807 // Second
808 if constexpr (std::is_same_v<OutputType, Real>)
810 fill<constant_monomial>(_ad_second_u, *_current_second_phi, _ad_dof_values, nqp, n_test);
811 // Curl
812 if (_need_ad_curl_u)
813 fill<constant_monomial>(_ad_curl_u, *_current_curl_phi, _ad_dof_values, nqp, n_test);
814
815 const bool is_transient = _subproblem.isTransient();
816 if (is_transient)
817 {
818 if (_need_ad_u_dot)
819 {
821 fill<constant_monomial>(_ad_u_dot, *_current_phi, _ad_dofs_dot, nqp, n_test);
822 // We are too early in the setup to have a time integrator, so we are not really using the
823 // AD-derivatives. We set the AD value of the derivatives to the nonAD value
824 else
825 {
826 _ad_u_dot.resize(nqp);
827 for (const auto qp : make_range(nqp))
828 _ad_u_dot[qp] = _u_dot[qp];
829 }
830 }
831
833 {
835 fill<constant_monomial>(_ad_u_dotdot, *_current_phi, _ad_dofs_dotdot, nqp, n_test);
836 else
837 {
838 _ad_u_dotdot.resize(nqp);
839 for (const auto qp : make_range(nqp))
840 _ad_u_dotdot[qp] = _u_dotdot[qp];
841 }
842 }
843
845 {
847 {
848 // The latter check here is for handling the fact that we have not yet implemented
849 // calculation of ad_grad_phi for neighbor and neighbor-face, so if we are in that
850 // situation we need to default to using the non-ad grad_phi
852 fill<constant_monomial>(_ad_grad_u_dot, *_current_ad_grad_phi, _ad_dofs_dot, nqp, n_test);
853 else
854 fill<constant_monomial>(_ad_grad_u_dot, *_current_grad_phi, _ad_dofs_dot, nqp, n_test);
855 }
856 else
857 {
858 _ad_grad_u_dot.resize(nqp);
859 for (const auto qp : make_range(nqp))
860 _ad_grad_u_dot[qp] = _grad_u_dot[qp];
861 }
862 }
863 }
864}
FieldVariableGradient _grad_u_dot
grad_u dots
const FieldVariablePhiGradient * _current_grad_phi
FieldVariableValue _u_dot
u_dot (time derivative)
const ADTemplateVariablePhiGradient< OutputShape > * _current_ad_grad_phi
FieldVariableValue _u_dotdot
u_dotdot (second time derivative)
const FieldVariablePhiSecond * _current_second_phi
void fetchADDofValues()
Helper method for assigning the ad_dof* arrays.
const FieldVariablePhiCurl * _current_curl_phi
ADDofValues _ad_dofs_dotdot
const FieldVariablePhiValue * _current_phi

◆ computeConstantMonomialValues()

template<typename OutputType >
void MooseVariableData< OutputType >::computeConstantMonomialValues ( )

compute the values for const monomial variables

Definition at line 689 of file MooseVariableData.C.

690{
691 if (_dof_indices.size() == 0)
692 return;
693
694 // Monomial optimizations are not appropriate after p-refinement
695 if (_elem->p_level())
697 else
698 computeValuesInternal</* constant_monomial = */ true>();
699}
void computeValuesInternal()
Internal method for computeValues() and computeConstantMonomialValues()
void computeValues()
compute the variable values

◆ computeIncrementAtNode() [1/2]

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

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

Definition at line 1207 of file MooseVariableData.C.

1208{
1209 if (!isNodal())
1210 mooseError("computeIncrementAtNode can only be called for nodal variables");
1211
1212 _increment.resize(1);
1213
1214 // Compute the increment for the current DOF
1215 _increment[0] = increment_vec(_dof_indices[0]);
1216}
void resize(unsigned int size)
Change the number of elements the array can store.
Definition MooseArray.h:216
bool isNodal() const override
FieldVariableValue _increment
Increment in the variable used in dampers.

◆ computeIncrementAtNode() [2/2]

void MooseVariableData< RealEigenVector >::computeIncrementAtNode ( const NumericVector< Number > &  increment_vec)

Definition at line 1220 of file MooseVariableData.C.

1222{
1223 if (!isNodal())
1224 mooseError("computeIncrementAtNode can only be called for nodal variables");
1225
1226 _increment.resize(1);
1227
1228 // Compute the increment for the current DOF
1229 if (isNodal())
1230 for (unsigned int j = 0; j < _count; j++)
1231 _increment[0](j) = increment_vec(_dof_indices[0] + j);
1232 else
1233 {
1234 unsigned int n = 0;
1235 const auto n_dof_indices = _dof_indices.size();
1236 for (const auto j : make_range(_count))
1237 {
1238 _increment[0](j) = increment_vec(_dof_indices[0] + n);
1239 n += n_dof_indices;
1240 }
1241 }
1242}

◆ computeIncrementAtQps() [1/2]

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

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

Definition at line 1156 of file MooseVariableData.C.

1157{
1158 unsigned int nqp = _qrule->n_points();
1159
1160 _increment.resize(nqp);
1161 // Compute the increment at each quadrature point
1162 unsigned int num_dofs = _dof_indices.size();
1163 for (const auto qp : make_range(nqp))
1164 {
1165 _increment[qp] = 0.;
1166 for (const auto i : make_range(num_dofs))
1167 _increment[qp] += (*_phi)[i][qp] * increment_vec(_dof_indices[i]);
1168 }
1169}
unsigned int n_points() const

◆ computeIncrementAtQps() [2/2]

void MooseVariableData< RealEigenVector >::computeIncrementAtQps ( const NumericVector< Number > &  increment_vec)

Definition at line 1173 of file MooseVariableData.C.

1175{
1176 unsigned int nqp = _qrule->n_points();
1177
1178 _increment.resize(nqp);
1179 // Compute the increment at each quadrature point
1180 unsigned int num_dofs = _dof_indices.size();
1181 if (isNodal())
1182 {
1183 for (const auto qp : make_range(nqp))
1184 {
1185 for (const auto i : make_range(num_dofs))
1186 for (const auto j : make_range(_count))
1187 _increment[qp](j) += (*_phi)[i][qp] * increment_vec(_dof_indices[i] + j);
1188 }
1189 }
1190 else
1191 {
1192 for (const auto qp : make_range(nqp))
1193 {
1194 unsigned int n = 0;
1195 for (const auto j : make_range(_count))
1196 for (const auto i : make_range(num_dofs))
1197 {
1198 _increment[qp](j) += (*_phi)[i][qp] * increment_vec(_dof_indices[i] + n);
1199 n += num_dofs;
1200 }
1201 }
1202 }
1203}
for(PetscInt i=0;i< nvars;++i)

◆ computeNodalValues()

template<typename OutputType >
void MooseVariableData< OutputType >::computeNodalValues ( )

compute nodal things

Definition at line 1336 of file MooseVariableData.C.

1337{
1338 if (_has_dof_indices)
1339 {
1342
1343 if (_need_ad)
1344 {
1347 }
1348 }
1349 else
1351}
void fetchDofValues()
Helper methods for assigning dof values from their corresponding solution values.
void assignADNodalValue()
Helper method for assigning nodal values from their corresponding solution values (dof values as they...

◆ computeValues()

template<typename OutputType >
void MooseVariableData< OutputType >::computeValues ( )

compute the variable values

Definition at line 682 of file MooseVariableData.C.

683{
684 computeValuesInternal</* constant_monomial = */ false>();
685}

◆ computeValuesInternal()

template<typename OutputType >
template<bool constant_monomial>
void MooseVariableData< OutputType >::computeValuesInternal ( )
private

Internal method for computeValues() and computeConstantMonomialValues()

Monomial is a template parameter so that we get compile time optimization for constant monomial vs non-constant monomial

Definition at line 528 of file MooseVariableData.C.

529{
530 const auto num_dofs = _dof_indices.size();
531 const auto num_shapes = num_dofs / _count;
532
533 if (num_dofs > 0)
535
536 const bool is_transient = _subproblem.isTransient();
537 const auto nqp = _current_qrule->n_points();
538 const auto & active_coupleable_matrix_tags =
540
541 // Map grad_phi using Eigen so that we can perform array operations easier
542 if constexpr (std::is_same_v<OutputType, RealEigenVector>)
543 {
544 if (_qrule == _current_qrule)
545 {
546 _mapped_grad_phi.resize(num_shapes);
547 for (const auto i : make_range(num_shapes))
548 {
549 _mapped_grad_phi[i].resize(nqp, Eigen::Map<RealDIMValue>(nullptr));
550 for (const auto qp : make_range(nqp))
551 // Note: this does NOT do any allocation. It is "reconstructing" the object in place
552 new (&_mapped_grad_phi[i][qp])
553 Eigen::Map<RealDIMValue>(const_cast<Real *>(&(*_current_grad_phi)[i][qp](0)));
554 }
555 }
556 else
557 {
558 _mapped_grad_phi_face.resize(num_shapes);
559 for (const auto i : make_range(num_shapes))
560 {
561 _mapped_grad_phi_face[i].resize(nqp, Eigen::Map<RealDIMValue>(nullptr));
562 for (const auto qp : make_range(nqp))
563 // Note: this does NOT do any allocation. It is "reconstructing" the object in place
564 new (&_mapped_grad_phi_face[i][qp])
565 Eigen::Map<RealDIMValue>(const_cast<Real *>(&(*_current_grad_phi)[i][qp](0)));
566 }
567 }
568 }
569
570 mooseAssert(
573 "We're requiring a second calculation but have not set a second shape function!");
574 mooseAssert(!(_need_curl || _need_curl_old) || _current_curl_phi,
575 "We're requiring a curl calculation but have not set a curl shape function!");
576 mooseAssert(!(_need_div || _need_div_old) || _current_div_phi,
577 "We're requiring a divergence calculation but have not set a div shape function!");
578
579 // Curl
580 if (_need_curl)
581 fill<constant_monomial>(
583 if (is_transient && _need_curl_old)
584 fill<constant_monomial>(
586
587 // Div
588 if (_need_div)
589 fill<constant_monomial>(
591 if (is_transient && _need_div_old)
592 fill<constant_monomial>(
594
595 // Second
596 if (_need_second)
597 fill<constant_monomial>(
600 fill<constant_monomial>(_second_u_previous_nl,
603 nqp,
604 num_shapes);
605
606 // Vector tags
607 for (auto tag : _required_vector_tags)
608 {
609 if (_need_vector_tag_u[tag] && _sys.hasVector(tag))
610 {
611 mooseAssert(_sys.getVector(tag).closed(), "Vector should be closed");
612 fill<constant_monomial>(
613 _vector_tag_u[tag], *_current_phi, _vector_tags_dof_u[tag], nqp, num_shapes);
614 }
615 if (_need_vector_tag_grad[tag] && _sys.hasVector(tag))
616 {
617 mooseAssert(_sys.getVector(tag).closed(), "Vector should be closed");
618 fill<constant_monomial>(
619 _vector_tag_grad[tag], *_current_grad_phi, _vector_tags_dof_u[tag], nqp, num_shapes);
620 }
621 }
622
623 // Matrix tags
624 for (auto tag : active_coupleable_matrix_tags)
626 fill<constant_monomial>(
627 _matrix_tag_u[tag], *_current_phi, _matrix_tags_dof_u[tag], nqp, num_shapes);
628
629 // Derivatives and old values
630 if (is_transient)
631 {
633 fill<constant_monomial>(_second_u_old,
636 nqp,
637 num_shapes);
639 fill<constant_monomial>(_second_u_older,
642 nqp,
643 num_shapes);
644 if (_need_u_dot)
645 fill<constant_monomial>(_u_dot, *_current_phi, _dof_values_dot, nqp, num_shapes);
646 if (_need_u_dotdot)
647 fill<constant_monomial>(_u_dotdot, *_current_phi, _dof_values_dotdot, nqp, num_shapes);
648 if (_need_u_dot_old)
649 fill<constant_monomial>(_u_dot_old, *_current_phi, _dof_values_dot_old, nqp, num_shapes);
651 fill<constant_monomial>(
653
654 if (_need_du_dot_du)
655 {
656 _du_dot_du.resize(nqp);
657 for (const auto i : make_range(num_shapes))
658 for (const auto qp : make_range(nqp))
659 _du_dot_du[qp] = _dof_du_dot_du[i];
660 }
662 {
664 for (const auto i : make_range(num_shapes))
665 for (const auto qp : make_range(nqp))
667 }
668
669 if (_need_grad_dot)
670 fill<constant_monomial>(_grad_u_dot, *_current_grad_phi, _dof_values_dot, nqp, num_shapes);
672 fill<constant_monomial>(
674 }
675
676 if (_need_ad)
677 computeAD<constant_monomial>(num_dofs, nqp);
678}
if(!dmm->_nl) SETERRQ(PETSC_COMM_WORLD
std::vector< FieldVariableValue > _vector_tag_u
std::vector< FieldVariableValue > _matrix_tag_u
std::vector< bool > _need_matrix_tag_u
std::vector< DofValues > _matrix_tags_dof_u
std::vector< bool > _need_vector_tag_u
MooseArray< libMesh::Number > _dof_du_dotdot_du
derivatives of the solution value second time derivative with respect to the degrees of freedom
std::vector< FieldVariableGradient > _vector_tag_grad
std::set< TagID > _required_vector_tags
The set of vector tags (residual + solution) we need to evaluate.
MooseArray< libMesh::Number > _dof_du_dot_du
derivatives of the solution value time derivative with respect to the degrees of freedom
std::vector< bool > _need_vector_tag_grad
VariableValue _du_dotdot_du
derivative of u_dotdot wrt u
bool _need_curl
curl flags
FieldVariableCurl _curl_u
curl_u
bool _need_second
SolutionState second_u flags.
FieldVariableSecond _second_u_previous_nl
FieldVariableValue _u_dot_old
u_dot_old (time derivative)
FieldVariableDivergence _div_u
divergence_u
const QBase * _current_qrule
FieldVariableDivergence _div_u_old
FieldVariableSecond _second_u
second_u
FieldVariableCurl _curl_u_old
FieldVariableSecond _second_u_old
void fill(DestinationType &dest, const ShapeType &phi, const DofValuesType &dof_values, unsigned int nqp, std::size_t num_shapes)
FieldVariableSecond _second_u_older
const FieldVariablePhiDivergence * _current_div_phi
bool _need_div
divergence flags
FieldVariableValue _u_dotdot_old
u_dotdot_old (second time derivative)
VariableValue _du_dot_du
derivative of u_dot wrt u
FieldVariableGradient _grad_u_dotdot
const std::set< TagID > & getActiveFEVariableCoupleableMatrixTags(const THREAD_ID tid) const
Definition SubProblem.C:389
bool hasVector(const std::string &tag_name) const
Check if the named vector exists in the system.
Definition SystemBase.C:923
virtual NumericVector< Number > & getVector(const std::string &name)
Get a raw NumericVector by name.
Definition SystemBase.C:932
virtual bool closed() const
Definition JsonIO.h:71
MapBase< T1, T2, std::map > Map
Definition KokkosMap.h:360
Eigen::Matrix< Real, Moose::dim, 1 > RealDIMValue
Definition MooseTypes.h:146
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

◆ computingCurl()

template<typename OutputType >
bool MooseVariableData< OutputType >::computingCurl ( ) const
inline

Whether or not this variable is computing the curl.

Definition at line 236 of file MooseVariableData.h.

236{ return _need_curl || _need_curl_old; }

◆ computingDiv()

template<typename OutputType >
bool MooseVariableData< OutputType >::computingDiv ( ) const
inline

Whether or not this variable is computing the divergence.

Definition at line 241 of file MooseVariableData.h.

241{ return _need_div || _need_div_old; }

◆ curlPhi()

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

curl_phi getter

Definition at line 376 of file MooseVariableData.C.

377{
379 return *_curl_phi;
380}
const FieldVariablePhiCurl * _curl_phi

Referenced by MooseVariableData< OutputType >::adCurlSln().

◆ curlPhiFace()

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

curl_phi_face getter

Definition at line 384 of file MooseVariableData.C.

385{
387 return *_curl_phi_face;
388}
const FieldVariablePhiCurl * _curl_phi_face

Referenced by MooseVariableData< OutputType >::adCurlSln().

◆ curlSln()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableCurl & MooseVariableData< OutputType >::curlSln ( Moose::SolutionState  state) const

Local solution curl getter.

Parameters
stateThe state of the simulation: current, old, older

Definition at line 298 of file MooseVariableData.C.

299{
300 curlPhi();
301 curlPhiFace();
302 switch (state)
303 {
304 case Moose::Current:
305 {
306 _need_curl = true;
307 return _curl_u;
308 }
309
310 case Moose::Old:
311 {
312 _need_curl_old = true;
313 return _curl_u_old;
314 }
315
316 case Moose::Older:
317 {
318 _need_curl_older = true;
319 return _curl_u_older;
320 }
321
322 default:
323 mooseError("We don't currently support curl from the previous non-linear iteration");
324 }
325}
FieldVariableCurl _curl_u_older
@ Current
Definition MooseTypes.h:263

◆ currentElem()

template<typename OutputType >
const Elem *const & MooseVariableData< OutputType >::currentElem ( ) const
inline

The current element.

Definition at line 255 of file MooseVariableData.h.

255{ return _elem; }

◆ currentSide()

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

The current side.

Definition at line 260 of file MooseVariableData.h.

260{ return _current_side; }

◆ divPhi()

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

divergence_phi getter

Definition at line 392 of file MooseVariableData.C.

393{
395 return *_div_phi;
396}
const FieldVariablePhiDivergence * _div_phi

◆ divPhiFace()

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

divergence_phi_face getter

Definition at line 400 of file MooseVariableData.C.

401{
403 return *_div_phi_face;
404}
const FieldVariablePhiDivergence * _div_phi_face

◆ divSln()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableDivergence & MooseVariableData< OutputType >::divSln ( Moose::SolutionState  state) const

Local solution divergence getter.

Parameters
stateThe state of the simulation: current, old, older

Definition at line 329 of file MooseVariableData.C.

330{
331 divPhi();
332 divPhiFace();
333 switch (state)
334 {
335 case Moose::Current:
336 {
337 _need_div = true;
338 return _div_u;
339 }
340
341 case Moose::Old:
342 {
343 _need_div_old = true;
344 return _div_u_old;
345 }
346
347 case Moose::Older:
348 {
349 _need_div_older = true;
350 return _div_u_older;
351 }
352
353 default:
354 mooseError("We don't currently support divergence from the previous non-linear iteration");
355 }
356}
const FieldVariablePhiDivergence & divPhiFace() const
divergence_phi_face getter
const FieldVariablePhiDivergence & divPhi() const
divergence_phi getter
FieldVariableDivergence _div_u_older

◆ dofIndices()

template<typename OutputType >
const std::vector< dof_id_type > & MooseVariableData< OutputType >::dofIndices ( ) const
inline

Definition at line 397 of file MooseVariableData.h.

397{ return _dof_indices; }

◆ dofValues()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::dofValues ( ) const
inherited

Definition at line 352 of file MooseVariableDataBase.C.

353{
355}
const DofValues & vectorTagDofValue(TagID tag) const

◆ dofValuesDot()

template<typename OutputType >
const MooseVariableData< OutputType >::DofValues & MooseVariableData< OutputType >::dofValuesDot ( ) const

Definition at line 1081 of file MooseVariableData.C.

1082{
1083 if (_sys.solutionUDot())
1084 {
1085 _need_dof_values_dot = true;
1086 return _dof_values_dot;
1087 }
1088 else
1089 mooseError("MooseVariableData: Time derivative of solution (`u_dot`) is not stored. Please set "
1090 "uDotRequested() to true in FEProblemBase before requesting `u_dot`.");
1091}
virtual NumericVector< Number > * solutionUDot()
Definition SystemBase.h:280

◆ dofValuesDotDot()

template<typename OutputType >
const MooseVariableData< OutputType >::DofValues & MooseVariableData< OutputType >::dofValuesDotDot ( ) const

Definition at line 1095 of file MooseVariableData.C.

1096{
1097 if (_sys.solutionUDotDot())
1098 {
1100 return _dof_values_dotdot;
1101 }
1102 else
1103 mooseError("MooseVariableData: Second time derivative of solution (`u_dotdot`) is not stored. "
1104 "Please set uDotDotRequested() to true in FEProblemBase before requesting "
1105 "`u_dotdot`.");
1106}
virtual NumericVector< Number > * solutionUDotDot()
Definition SystemBase.h:281

◆ dofValuesDotDotOld()

template<typename OutputType >
const MooseVariableData< OutputType >::DofValues & MooseVariableData< OutputType >::dofValuesDotDotOld ( ) const

Definition at line 1125 of file MooseVariableData.C.

1126{
1128 {
1131 }
1132 else
1133 mooseError("MooseVariableData: Old second time derivative of solution (`u_dotdot_old`) is not "
1134 "stored. Please set uDotDotOldRequested() to true in FEProblemBase before "
1135 "requesting `u_dotdot_old`.");
1136}
virtual NumericVector< Number > * solutionUDotDotOld()
Definition SystemBase.h:283

◆ dofValuesDotOld()

template<typename OutputType >
const MooseVariableData< OutputType >::DofValues & MooseVariableData< OutputType >::dofValuesDotOld ( ) const

Definition at line 1110 of file MooseVariableData.C.

1111{
1112 if (_sys.solutionUDotOld())
1113 {
1115 return _dof_values_dot_old;
1116 }
1117 else
1118 mooseError("MooseVariableData: Old time derivative of solution (`u_dot_old`) is not stored. "
1119 "Please set uDotOldRequested() to true in FEProblemBase before requesting "
1120 "`u_dot_old`.");
1121}
virtual NumericVector< Number > * solutionUDotOld()
Definition SystemBase.h:282

◆ dofValuesDuDotDotDu()

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

Definition at line 1148 of file MooseVariableData.C.

1149{
1151 return _dof_du_dotdot_du;
1152}

◆ dofValuesDuDotDu()

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

Definition at line 1140 of file MooseVariableData.C.

1141{
1142 _need_dof_du_dot_du = true;
1143 return _dof_du_dot_du;
1144}

◆ dofValuesOld()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::dofValuesOld ( ) const
inherited

Definition at line 359 of file MooseVariableDataBase.C.

360{
362}

◆ dofValuesOlder()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::dofValuesOlder ( ) const
inherited

Definition at line 366 of file MooseVariableDataBase.C.

367{
369}

◆ dofValuesPreviousNL()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::dofValuesPreviousNL ( ) const
inherited

Definition at line 373 of file MooseVariableDataBase.C.

374{
376}
@ PreviousNL
Definition MooseTypes.h:266

◆ duDotDotDu()

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

Definition at line 349 of file MooseVariableData.h.

350 {
351 _need_du_dotdot_du = true;
352 return _du_dotdot_du;
353 }

◆ duDotDu()

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

Definition at line 343 of file MooseVariableData.h.

344 {
345 _need_du_dot_du = true;
346 return _du_dot_du;
347 }

◆ fetchADDofValues() [1/2]

template<typename OutputType >
void MooseVariableData< OutputType >::fetchADDofValues ( )
private

Helper method for assigning the ad_dof* arrays.

Definition at line 703 of file MooseVariableData.C.

704{
705 const auto num_dofs = _dof_indices.size();
706
707 const bool do_derivatives = Moose::doDerivatives(_subproblem, _sys);
708
709 _ad_dof_values.resize(num_dofs);
710 for (const auto i : make_range(num_dofs))
712 // NOTE! You have to do this AFTER setting the value!
713 if (do_derivatives)
714 for (const auto i : make_range(num_dofs))
715 Moose::derivInsert(_ad_dof_values[i].derivatives(), _dof_indices[i], 1.);
716
717 const bool is_transient = _subproblem.isTransient();
718 if (is_transient && _need_ad_u_dot)
719 {
720 _ad_dofs_dot.resize(num_dofs);
722 _ad_dofs_dotdot.resize(num_dofs);
723
725 {
726 if (_time_integrator->dt())
727 {
728 for (const auto i : make_range(num_dofs))
730 for (const auto i : make_range(num_dofs))
731 _time_integrator->computeADTimeDerivatives(_ad_dofs_dot[i],
732 _dof_indices[i],
735 }
736 else
737 // Executing something with a time derivative at initial should not put a NaN
738 for (const auto i : make_range(num_dofs))
739 {
740 _ad_dofs_dot[i] = 0.;
742 _ad_dofs_dotdot[i] = 0;
743 }
744 }
745 // We are too early in the setup to have a time integrator, so we are not really using the
746 // AD-derivatives. We set the AD value of the derivatives to the nonAD value
747 else
748 for (const auto i : make_range(num_dofs))
749 {
753 }
754 }
755}
ADReal _ad_real_dummy
A dummy ADReal variable.
const Real & dt() const
Returns the time step size.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
bool doDerivatives(const SubProblem &subproblem, const SystemBase &sys)
Definition ADUtils.C:83
void derivInsert(SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N > > &derivs, libMesh::dof_id_type index, Real value)
Definition ADReal.h:21

◆ fetchADDofValues() [2/2]

void MooseVariableData< RealEigenVector >::fetchADDofValues ( )
private

Definition at line 759 of file MooseVariableData.C.

760{
761 const auto num_dofs = _dof_indices.size();
762
763 const bool do_derivatives = Moose::doDerivatives(_subproblem, _sys);
764 const auto n_test = num_dofs / _count;
765 mooseAssert(num_dofs == _count * n_test,
766 "Our assertions around number of dofs, test functions, and count are incorrect");
767
768 _ad_dof_values.resize(n_test);
769 // Test is outer, count is inner
770 for (const auto i : make_range(n_test))
771 {
773 for (const auto j : make_range(_count))
774 {
775 auto & dual_number = _ad_dof_values[i](j);
776 const auto global_dof_index = _dof_indices[j * n_test + i];
777 dual_number = (*_sys.currentSolution())(global_dof_index);
778 // NOTE! You have to do this AFTER setting the value!
779 if (do_derivatives)
780 Moose::derivInsert(dual_number.derivatives(), global_dof_index, 1.);
781 }
782 }
783}
virtual const NumericVector< Number > *const & currentSolution() const =0
The solution vector that is currently being operated on.

◆ fetchDofValues() [1/3]

template<typename OutputType >
void MooseVariableDataBase< OutputType >::fetchDofValues ( )
protectedinherited

Helper methods for assigning dof values from their corresponding solution values.

Definition at line 534 of file MooseVariableDataBase.C.

535{
536 bool is_transient = _subproblem.isTransient();
537
538 auto n = _dof_indices.size();
540
541 if (is_transient)
542 {
544 {
548 }
550 {
554 }
556 {
560 }
562 {
566 }
568 {
570 for (decltype(n) i = 0; i < n; ++i)
571 _dof_du_dot_du[i] = _sys.duDotDu(_var.number());
572 }
574 {
576 for (decltype(n) i = 0; i < n; ++i)
578 }
579 }
580
581 for (auto tag : _required_vector_tags)
583 if ((_subproblem.vectorTagType(tag) == Moose::VECTOR_TAG_RESIDUAL &&
584 _subproblem.safeAccessTaggedVectors()) ||
585 _subproblem.vectorTagType(tag) == Moose::VECTOR_TAG_SOLUTION)
586 {
587 // tag is defined on problem but may not be used by a system
588 // the grain tracker requires being able to read from solution vectors that we are also in
589 // the process of writing :-/
590 // Note: the extra vector tags are also still not closed when a TagVectorAux uses them
591 if (_sys.hasVector(tag) /* && _sys.getVector(tag).closed()*/)
592 {
593 auto & vec = _sys.getVector(tag);
594 _vector_tags_dof_u[tag].resize(n);
595 vec.get(_dof_indices, &_vector_tags_dof_u[tag][0]);
596 }
597 }
598
600 {
601 auto & active_coupleable_matrix_tags =
603
604 for (auto tag : active_coupleable_matrix_tags)
605 {
607 if (_sys.hasMatrix(tag) && _sys.matrixTagActive(tag))
608 {
609 mooseAssert(_sys.getMatrix(tag).closed(),
610 "Matrix with tag '" + std::to_string(tag) + "' should be closed");
611 auto & mat = _sys.getMatrix(tag);
612 _matrix_tags_dof_u[tag].resize(n);
613 for (unsigned i = 0; i < n; i++)
614 _matrix_tags_dof_u[tag][i] = mat(_dof_indices[i], _dof_indices[i]);
615 }
616 }
617 }
618}
const MooseVariableField< OutputType > & _var
A const reference to the owning MooseVariableField object.
std::vector< bool > _need_matrix_tag_dof_u
std::vector< bool > _need_vector_tag_dof_u
virtual bool safeAccessTaggedMatrices() const
Is it safe to access the tagged matrices.
Definition SubProblem.h:739
virtual libMesh::SparseMatrix< Number > & getMatrix(TagID tag)
Get a raw SparseMatrix.
virtual bool matrixTagActive(TagID tag) const
If or not a matrix tag is active.
virtual const Number & duDotDu(unsigned int var_num=0) const
virtual bool hasMatrix(TagID tag) const
Check if the tagged matrix exists in the system.
Definition SystemBase.h:379
virtual Number & duDotDotDu()
Definition SystemBase.h:276
virtual void get(const std::vector< numeric_index_type > &index, T *values) const
virtual bool closed() const=0
@ VECTOR_TAG_SOLUTION
@ VECTOR_TAG_RESIDUAL

◆ fetchDofValues() [2/3]

void MooseVariableDataBase< RealEigenVector >::fetchDofValues ( )
protectedinherited

◆ fetchDofValues() [3/3]

void MooseVariableDataBase< RealEigenVector >::fetchDofValues ( )
protectedinherited

Definition at line 637 of file MooseVariableDataBase.C.

638{
639 bool is_transient = _subproblem.isTransient();
640
641 auto n = _dof_indices.size() / _count;
643
644 if (is_transient)
645 {
647 {
650 }
652 {
655 }
657 {
660 }
662 {
665 }
666 }
667
668 for (auto tag : _required_vector_tags)
669 if ((_subproblem.vectorTagType(tag) == Moose::VECTOR_TAG_RESIDUAL &&
670 _subproblem.safeAccessTaggedVectors()) ||
671 _subproblem.vectorTagType(tag) == Moose::VECTOR_TAG_SOLUTION)
672 // tag is defined on problem but may not be used by a system
673 if (_sys.hasVector(tag))
674 {
675 mooseAssert(_sys.getVector(tag).closed(),
676 "Vector with tag '" + std::to_string(tag) + "' should be closed");
678 }
679
681 {
682 auto & active_coupleable_matrix_tags =
684 for (auto tag : active_coupleable_matrix_tags)
685 {
686 _matrix_tags_dof_u[tag].resize(n);
688 if (_sys.hasMatrix(tag) && _sys.matrixTagActive(tag))
689 {
690 mooseAssert(_sys.getMatrix(tag).closed(),
691 "Matrix with tag '" + std::to_string(tag) + "' should be closed");
692 auto & mat = _sys.getMatrix(tag);
693 for (unsigned i = 0; i < n; i++)
694 for (unsigned j = 0; j < _count; j++)
695 _matrix_tags_dof_u[tag][i](j) = mat(_dof_indices[i] + j, _dof_indices[i] + j);
696 }
697 }
698 }
699
701 {
703 for (decltype(n) i = 0; i < n; ++i)
704 _dof_du_dot_du[i] = _sys.duDotDu(_var.number());
705 }
707 {
709 for (decltype(n) i = 0; i < n; ++i)
711 }
712}
void getArrayDofValues(const libMesh::NumericVector< libMesh::Number > &sol, unsigned int n, MooseArray< RealEigenVector > &dof_values) const

◆ fill()

template<typename OutputType >
template<bool constant_monomial, typename DestinationType , typename ShapeType , typename DofValuesType >
void MooseVariableData< OutputType >::fill ( DestinationType &  dest,
const ShapeType phi,
const DofValuesType &  dof_values,
unsigned int  nqp,
std::size_t  num_shapes 
)
private

Definition at line 412 of file MooseVariableData.C.

417{
418 if constexpr (constant_monomial)
419 libmesh_ignore(num_shapes);
420
421 // Deduce OutputType
422 constexpr bool is_real = std::is_same_v<OutputType, Real>;
423 constexpr bool is_real_vector = std::is_same_v<OutputType, RealVectorValue>;
424 constexpr bool is_eigen = std::is_same_v<OutputType, RealEigenVector>;
425 static_assert(is_real || is_real_vector || is_eigen, "Unsupported type");
426
427 // this is only used in the RealEigenVector case to get this->_count
428 if constexpr (!is_eigen)
429 libmesh_ignore(this);
430
431 // Deduce type of value within dest MooseArray
432 using dest_array_type = typename std::remove_reference_t<decltype(dest)>::value_type;
433 constexpr bool is_value =
434 std::is_same_v<dest_array_type, OutputType> ||
435 std::is_same_v<dest_array_type, typename Moose::ADType<OutputType>::type>;
436 constexpr bool is_gradient =
437 std::is_same_v<dest_array_type, OutputGradient> ||
438 std::is_same_v<dest_array_type, typename Moose::ADType<OutputGradient>::type>;
439 constexpr bool is_second =
440 std::is_same_v<dest_array_type, OutputSecond> ||
441 std::is_same_v<dest_array_type, typename Moose::ADType<OutputSecond>::type>;
442 constexpr bool is_divergence =
443 std::is_same_v<dest_array_type, OutputDivergence> ||
444 std::is_same_v<dest_array_type, typename Moose::ADType<OutputDivergence>::type>;
445 static_assert(is_value || is_gradient || is_second || is_divergence,
446 "Unsupported destination array type");
447
448 // Sets a value to zero at a quadrature point
449 const auto set_zero = [this, &dest](const auto qp)
450 {
451 if constexpr (!is_eigen)
452 libmesh_ignore(this);
453
454 if constexpr (is_real || is_real_vector)
455 dest[qp] = 0;
456 else if constexpr (is_eigen)
457 {
458 if constexpr (is_value)
459 dest[qp].setZero(this->_count);
460 else if constexpr (is_gradient)
461 dest[qp].setZero(this->_count, LIBMESH_DIM);
462 else if constexpr (is_second)
463 dest[qp].setZero(this->_count, LIBMESH_DIM * LIBMESH_DIM);
464 else
465 static_assert(Moose::always_false<OutputType, dest_array_type>, "Unsupported type");
466 }
467 else
468 static_assert(Moose::always_false<OutputType, dest_array_type>, "Unsupported type");
469 };
470
471 // Accumulates a value
472 const auto accumulate = [&dest, &phi, &dof_values](const auto i, const auto qp)
473 {
474 if constexpr (is_real || is_real_vector || (is_eigen && is_value))
475 {
476 if constexpr (is_value || is_divergence)
477 dest[qp] += phi[i][qp] * dof_values[i];
478 else if constexpr (is_gradient || is_second)
479 dest[qp].add_scaled(phi[i][qp], dof_values[i]);
480 else
481 static_assert(Moose::always_false<OutputType, dest_array_type>, "Unsupported type");
482 }
483 else if constexpr (is_eigen)
484 {
485 if constexpr (is_gradient)
486 {
487 for (const auto d : make_range(Moose::dim))
488 dest[qp].col(d) += phi[i][qp](d) * dof_values[i];
489 }
490 else if constexpr (is_second)
491 {
492 for (unsigned int d = 0, d1 = 0; d1 < LIBMESH_DIM; ++d1)
493 for (const auto d2 : make_range(Moose::dim))
494 dest[qp].col(d++) += phi[i][qp](d1, d2) * dof_values[i];
495 }
496 else
497 static_assert(Moose::always_false<OutputType, dest_array_type>, "Unsupported type");
498 }
499 else
500 static_assert(Moose::always_false<OutputType, dest_array_type>, "Unsupported type");
501 };
502
503 dest.resize(nqp);
504
505 // Monomial case, accumulate dest[0] and set dest[>0] to dest[0]
506 if constexpr (constant_monomial)
507 {
508 mooseAssert(num_shapes == 1, "Should have only one shape function for a constant monomial");
509 set_zero(0);
510 accumulate(0, 0);
511 for (unsigned int qp = 1; qp < nqp; ++qp)
512 dest[qp] = dest[0];
513 }
514 // Non constant monomial case
515 else
516 {
517 for (const auto qp : make_range(nqp))
518 set_zero(qp);
519 for (const auto i : make_range(num_shapes))
520 for (const auto qp : make_range(nqp))
521 accumulate(i, qp);
522 }
523}
unsigned int dim
const FieldVariablePhiValue & phi() const
phi getter
void libmesh_ignore(const Args &...)

◆ getArrayDofValues()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::getArrayDofValues ( const libMesh::NumericVector< libMesh::Number > &  sol,
unsigned int  n,
MooseArray< RealEigenVector > &  dof_values 
) const
protectedinherited

Definition at line 622 of file MooseVariableDataBase.C.

625{
626 dof_values.resize(nshapes);
627 for (const auto i : make_range(nshapes))
628 {
629 dof_values[i].resize(_count);
630 for (const auto j : make_range(_count))
631 dof_values[i](j) = sol(_dof_indices[j * nshapes + i]);
632 }
633}

◆ getContinuity()

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

Return the variable continuity.

Implements MooseVariableDataBase< OutputType >.

Definition at line 247 of file MooseVariableData.h.

247{ return _continuity; };

◆ getDofIndices()

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

Definition at line 1062 of file MooseVariableData.C.

1064{
1065 if constexpr (std::is_same<OutputType, RealEigenVector>::value)
1066 _dof_map.array_dof_indices(elem, dof_indices, _var_num);
1067 else
1068 _dof_map.dof_indices(elem, dof_indices, _var_num);
1069}
const libMesh::DofMap & _dof_map
The degree of freedom map from libMesh.
void dof_indices(const Elem *const elem, std::vector< dof_id_type > &di) const
void array_dof_indices(const Elem *const elem, std::vector< dof_id_type > &di, const unsigned int vn, int p_level=-12345) const

◆ getElementalValue() [1/2]

RealEigenVector MooseVariableData< RealEigenVector >::getElementalValue ( const Elem *  elem,
const Moose::SolutionState  state,
const unsigned int  idx 
) const

Definition at line 1019 of file MooseVariableData.C.

1022{
1024 "getElementalValue has a really bad API name. It is retrieving a value from the solution "
1025 "vector for a particular dof index. Generally speaking it has absolutely no equivalence to "
1026 "an 'elemental' value, which most people would consider to be something like an element "
1027 "average value");
1028
1029 static thread_local std::vector<dof_id_type> dof_indices;
1030 _dof_map.array_dof_indices(elem, dof_indices, _var_num);
1031 mooseAssert(dof_indices.size() % _count == 0,
1032 "The number of array dof indices should divide cleanly by the variable count");
1033 const auto num_shapes = dof_indices.size() / _count;
1034
1036
1037 switch (state)
1038 {
1039 case Moose::Current:
1040 for (unsigned int i = 0; i < _count; ++i)
1041 v(i) = (*_sys.currentSolution())(dof_indices[i * num_shapes + idx]);
1042 break;
1043
1044 case Moose::Old:
1045 for (unsigned int i = 0; i < _count; ++i)
1046 v(i) = _sys.solutionOld()(dof_indices[i * num_shapes + idx]);
1047 break;
1048
1049 case Moose::Older:
1050 for (unsigned int i = 0; i < _count; ++i)
1051 v(i) = _sys.solutionOlder()(dof_indices[i * num_shapes + idx]);
1052 break;
1053
1054 default:
1055 mooseError("PreviousNL not currently supported for getElementalValue");
1056 }
1057 return v;
1058}
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition MooseError.h:363
NumericVector< Number > & solutionOld()
Definition SystemBase.h:204
NumericVector< Number > & solutionOlder()
Definition SystemBase.h:205
unsigned int idx(const ElemType type, const unsigned int nx, const unsigned int i, const unsigned int j)
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
Definition MooseTypes.h:147

◆ getElementalValue() [2/2]

template<typename OutputType >
MooseVariableData< OutputType >::DofValue MooseVariableData< OutputType >::getElementalValue ( const Elem *  elem,
Moose::SolutionState  state,
unsigned int  idx = 0 
) const

Definition at line 994 of file MooseVariableData.C.

997{
998 static thread_local std::vector<dof_id_type> dof_indices;
999 _dof_map.dof_indices(elem, dof_indices, _var_num);
1000
1001 switch (state)
1002 {
1003 case Moose::Current:
1004 return (*_sys.currentSolution())(dof_indices[idx]);
1005
1006 case Moose::Old:
1007 return _sys.solutionOld()(dof_indices[idx]);
1008
1009 case Moose::Older:
1010 return _sys.solutionOlder()(dof_indices[idx]);
1011
1012 default:
1013 mooseError("PreviousNL not currently supported for getElementalValue");
1014 }
1015}

◆ getNodalValue() [1/2]

template<typename OutputType >
MooseVariableData< OutputType >::DofValue MooseVariableData< OutputType >::getNodalValue ( const Node &  node,
Moose::SolutionState  state 
) const

Definition at line 923 of file MooseVariableData.C.

924{
925 mooseAssert(_subproblem.mesh().isSemiLocal(const_cast<Node *>(&node)), "Node is not Semilocal");
926
927 // Make sure that the node has DOFs
928 /* Note, this is a reproduction of an assert within libMesh::Node::dof_number, this is done to
929 * produce a better error (see misc/check_error.node_value_off_block) */
930 mooseAssert(node.n_dofs(_sys.number(), _var_num) > 0,
931 "Node " << node.id() << " does not contain any dofs for the "
932 << _sys.system().variable_name(_var_num) << " variable");
933
934 dof_id_type dof = node.dof_number(_sys.number(), _var_num, 0);
935
936 switch (state)
937 {
938 case Moose::Current:
939 return (*_sys.currentSolution())(dof);
940
941 case Moose::Old:
942 return _sys.solutionOld()(dof);
943
944 case Moose::Older:
945 return _sys.solutionOlder()(dof);
946
947 default:
948 mooseError("PreviousNL not currently supported for getNodalValue");
949 }
950}
bool isSemiLocal(Node *const node) const
Returns true if the node is semi-local.
Definition MooseMesh.C:1001
virtual MooseMesh & mesh()=0
virtual libMesh::System & system()=0
Get the reference to the libMesh system.
const std::string & variable_name(const unsigned int i) const
uint8_t dof_id_type

◆ getNodalValue() [2/2]

RealEigenVector MooseVariableData< RealEigenVector >::getNodalValue ( const Node &  node,
Moose::SolutionState  state 
) const

Definition at line 954 of file MooseVariableData.C.

956{
957 mooseAssert(_subproblem.mesh().isSemiLocal(const_cast<Node *>(&node)), "Node is not Semilocal");
958
959 // Make sure that the node has DOFs
960 /* Note, this is a reproduction of an assert within libMesh::Node::dof_number, this is done to
961 * produce a better error (see misc/check_error.node_value_off_block) */
962 mooseAssert(node.n_dofs(_sys.number(), _var_num) > 0,
963 "Node " << node.id() << " does not contain any dofs for the "
964 << _sys.system().variable_name(_var_num) << " variable");
965
966 dof_id_type dof = node.dof_number(_sys.number(), _var_num, 0);
967
969 switch (state)
970 {
971 case Moose::Current:
972 for (unsigned int i = 0; i < _count; ++i)
973 v(i) = (*_sys.currentSolution())(dof++);
974 break;
975
976 case Moose::Old:
977 for (unsigned int i = 0; i < _count; ++i)
978 v(i) = _sys.solutionOld()(dof++);
979 break;
980
981 case Moose::Older:
982 for (unsigned int i = 0; i < _count; ++i)
983 v(i) = _sys.solutionOlder()(dof++);
984 break;
985
986 default:
987 mooseError("PreviousNL not currently supported for getNodalValue");
988 }
989 return v;
990}

◆ gradPhi()

template<typename OutputType >
const FieldVariablePhiGradient & MooseVariableData< OutputType >::gradPhi ( ) const
inline

grad_phi getter

Definition at line 150 of file MooseVariableData.h.

150{ return *_grad_phi; }

◆ gradPhiFace()

template<typename OutputType >
const FieldVariablePhiGradient & MooseVariableData< OutputType >::gradPhiFace ( ) const
inline

grad_phi_face getter

Definition at line 164 of file MooseVariableData.h.

164{ return *_grad_phi_face; }

◆ gradSln()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::FieldVariableGradient & MooseVariableDataBase< OutputType >::gradSln ( Moose::SolutionState  state) const
inherited

Local solution gradient getter.

Parameters
stateThe state of the simulation: current, old, older, previous nl

Definition at line 327 of file MooseVariableDataBase.C.

328{
329 auto functor = [this](TagID tag_id) -> const FieldVariableGradient &
330 { return vectorTagGradient(tag_id); };
331
332 _var.requireQpComputations();
333
334 return const_cast<MooseVariableDataBase<OutputType> *>(this)
335 ->stateToTagHelper<FieldVariableGradient>(state, functor);
336}
unsigned int TagID
Definition MooseTypes.h:238
MooseArray< OutputGradient > FieldVariableGradient
const FieldVariableGradient & vectorTagGradient(TagID tag) const

◆ gradSlnDot()

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

Local time derivative of solution gradient getter.

Definition at line 230 of file MooseVariableData.C.

231{
232 if (_sys.solutionUDot())
233 {
234 _need_grad_dot = true;
235 return _grad_u_dot;
236 }
237 else
238 mooseError("MooseVariableFE: Time derivative of solution (`u_dot`) is not stored. Please set "
239 "uDotRequested() to true in FEProblemBase before requesting `u_dot`.");
240}

◆ gradSlnDotDot()

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

Local second time derivative of solution gradient getter.

Definition at line 244 of file MooseVariableData.C.

245{
246 if (_sys.solutionUDotDot())
247 {
248 _need_grad_dotdot = true;
249 return _grad_u_dotdot;
250 }
251 else
252 mooseError("MooseVariableFE: Second time derivative of solution (`u_dotdot`) is not stored. "
253 "Please set uDotDotRequested() to true in FEProblemBase before requesting "
254 "`u_dotdot`.");
255}

◆ hasDoFsOnNodes()

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

Whether this data is associated with a variable that has DoFs on nodes.

Implements MooseVariableDataBase< OutputType >.

Definition at line 246 of file MooseVariableData.h.

◆ increment()

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

Increment getter.

Returns
The increment

Definition at line 453 of file MooseVariableData.h.

453{ return _increment; }

◆ insert() [1/2]

template<typename OutputType >
void MooseVariableDataBase< OutputType >::insert ( libMesh::NumericVector< libMesh::Number > &  residual)
inherited

Set the current local DOF values to the input vector.

Definition at line 409 of file MooseVariableDataBase.C.

410{
411 if (_has_dof_values)
412 {
413 const auto & dof_values = _vector_tags_dof_u[_solution_tag];
414 mooseAssert(dof_values.size() == _dof_indices.size(),
415 "Degree of freedom values size and degree of freedom indices sizes must match.");
416 residual.insert(&dof_values[0], _dof_indices);
417 }
418}
virtual void insert(const T *v, const std::vector< numeric_index_type > &dof_indices)

◆ insert() [2/2]

void MooseVariableDataBase< RealEigenVector >::insert ( NumericVector< Number > &  residual)
inherited

Definition at line 422 of file MooseVariableDataBase.C.

423{
424 if (_has_dof_values)
425 {
426 const auto & dof_values = _vector_tags_dof_u[_solution_tag];
427 mooseAssert(_dof_indices.size() % _count == 0,
428 "Dof indices should be cleanly divisible by the variable count");
429 const auto n_shapes = _dof_indices.size() / _count;
430 for (const auto indx : index_range(_dof_indices))
431 {
432 const auto i = indx % n_shapes;
433 const auto j = indx / n_shapes;
434 residual.set(_dof_indices[indx], dof_values[i](j));
435 }
436 }
437}
virtual void set(const numeric_index_type i, const T value)=0

◆ insertNodalValue() [1/2]

template<typename OutputType >
void MooseVariableData< OutputType >::insertNodalValue ( libMesh::NumericVector< libMesh::Number > &  residual,
const DofValue v 
)

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

Definition at line 906 of file MooseVariableData.C.

908{
909 residual.set(_nodal_dof_index, v);
910}
dof_id_type _nodal_dof_index
The dof index for the current node.

◆ insertNodalValue() [2/2]

void MooseVariableData< RealEigenVector >::insertNodalValue ( NumericVector< Number > &  residual,
const RealEigenVector &  v 
)

Definition at line 914 of file MooseVariableData.C.

916{
917 for (const auto j : make_range(_count))
918 residual.set(_nodal_dof_index + j, v(j));
919}

◆ insertSolutionTag()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::insertSolutionTag ( TagID  tag_id)
protectedinherited

insert a solution tag into our tag containers

Definition at line 330 of file MooseVariableDataBase.h.

331{
332 _solution_tags.insert(tag_id);
333 _required_vector_tags.insert(tag_id);
334}
std::set< TagID > _solution_tags
The set of solution tags we need to evaluate.

Referenced by MooseVariableDataBase< OutputType >::MooseVariableDataBase().

◆ isNodal()

template<typename OutputType >
bool MooseVariableData< OutputType >::isNodal ( ) const
inlineoverridevirtual
Returns
Whether this data is associated with a nodal variable

Implements MooseVariableDataBase< OutputType >.

Definition at line 245 of file MooseVariableData.h.

245{ return _is_nodal; }

◆ isNodalDefined()

template<typename OutputType >
bool MooseVariableData< OutputType >::isNodalDefined ( ) const
inline

Definition at line 250 of file MooseVariableData.h.

250{ return _has_dof_indices; }

◆ matrixTagValue()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::FieldVariableValue & MooseVariableDataBase< OutputType >::matrixTagValue ( TagID  tag) const
inherited

Definition at line 230 of file MooseVariableDataBase.C.

231{
232 if (tag >= _matrix_tag_u.size())
233 {
234 _need_matrix_tag_u.resize(tag + 1, false);
235 const_cast<MooseVariableDataBase<OutputType> *>(this)->_matrix_tag_u.resize(tag + 1);
236 }
237
238 _var.requireQpComputations();
239
240 _need_matrix_tag_u[tag] = true;
241
242 if (_sys.hasMatrix(tag))
243 return _matrix_tag_u[tag];
244 else
245 mooseError("Tag ", tag, " is not associated with any matrix for variable ", _var.name());
246}

◆ needsAD()

template<typename OutputType >
bool MooseVariableData< OutputType >::needsAD ( ) const
inline

Returns whether this data structure needs automatic differentiation calculations.

Definition at line 104 of file MooseVariableData.h.

104{ return _need_ad; }

◆ needSolutionState()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::needSolutionState ( unsigned int  state)
protectedinherited

Request that we have at least state number of older solution states/vectors.

Definition at line 257 of file MooseVariableDataBase.C.

258{
259 if (state > _max_state)
260 {
261 _sys.needSolutionState(state);
262 _max_state = state;
263 }
264}
unsigned int _max_state
The maximum number of older solution states our variable needs.
virtual void needSolutionState(const unsigned int state, Moose::SolutionIterationType iteration_type=Moose::SolutionIterationType::Time, libMesh::ParallelType parallel_type=GHOSTED)
Registers that the solution state state is needed.

◆ nodalDofIndex()

template<typename OutputType >
const dof_id_type & MooseVariableData< OutputType >::nodalDofIndex ( ) const
inline

Definition at line 249 of file MooseVariableData.h.

249{ return _nodal_dof_index; }

◆ nodalMatrixTagValue()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::nodalMatrixTagValue ( TagID  tag) const
inherited

Definition at line 121 of file MooseVariableDataBase.C.

122{
123 if (isNodal())
124 {
125 if (tag >= _matrix_tags_dof_u.size())
126 {
127 _need_matrix_tag_dof_u.resize(tag + 1, false);
128 const_cast<MooseVariableDataBase<OutputType> *>(this)->_matrix_tags_dof_u.resize(tag + 1);
129 }
130
131 _need_matrix_tag_dof_u[tag] = true;
132
133 if (_sys.hasMatrix(tag))
134 return _matrix_tags_dof_u[tag];
135 else
137 "Tag ", tag, " is not associated with any matrix for nodal variable ", _var.name());
138 }
139 else
140 mooseError("Nodal values can be requested only on nodal variables, variable '",
141 _var.name(),
142 "' is not nodal.");
143}
virtual bool isNodal() const =0

◆ nodalValue()

template<typename OutputType >
const OutputType & MooseVariableDataBase< OutputType >::nodalValue ( Moose::SolutionState  state) const
inherited

Definition at line 471 of file MooseVariableDataBase.C.

472{
473 if (isNodal())
474 {
475 // Request the correct solution states and data members
476 vectorTagDofValue(state);
477 switch (state)
478 {
479 case Moose::Current:
480 return _nodal_value;
481
482 case Moose::Old:
483 return _nodal_value_old;
484
485 case Moose::Older:
486 return _nodal_value_older;
487
490
491 default:
492 // We should never get here but gcc requires that we have a default. See
493 // htpps://stackoverflow.com/questions/18680378/after-defining-case-for-all-enum-values-compiler-still-says-control-reaches-e
494 mooseError("Unknown SolutionState!");
495 }
496 }
497 else
498 mooseError("Nodal values can be requested only on nodal variables, variable '",
499 _var.name(),
500 "' is not nodal.");
501}

◆ nodalValueArray()

template<typename OutputType >
const MooseArray< OutputType > & MooseVariableDataBase< OutputType >::nodalValueArray ( Moose::SolutionState  state) const
inherited

Definition at line 505 of file MooseVariableDataBase.C.

506{
507 if (isNodal())
508 {
509 // Request the correct solution states and data members
510 vectorTagDofValue(state);
511 switch (state)
512 {
513 case Moose::Current:
514 return _nodal_value_array;
515
516 case Moose::Old:
518
519 case Moose::Older:
521
522 default:
523 mooseError("No current support for PreviousNL for nodal value array");
524 }
525 }
526 else
527 mooseError("Nodal values can be requested only on nodal variables, variable '",
528 _var.name(),
529 "' is not nodal.");
530}

◆ nodalValueDot()

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

Definition at line 1246 of file MooseVariableData.C.

1247{
1248 if (isNodal())
1249 {
1250 if (_sys.solutionUDot())
1251 {
1252 _need_dof_values_dot = true;
1253 return _nodal_value_dot;
1254 }
1255 else
1256 mooseError(
1257 "MooseVariableData: Time derivative of solution (`u_dot`) is not stored. Please set "
1258 "uDotRequested() to true in FEProblemBase before requesting `u_dot`.");
1259 }
1260 else
1261 mooseError("Nodal values can be requested only on nodal variables, variable '",
1262 var().name(),
1263 "' is not nodal.");
1264}
std::string name(const ElemQuality q)

◆ nodalValueDotDot()

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

Definition at line 1268 of file MooseVariableData.C.

1269{
1270 if (isNodal())
1271 {
1272 if (_sys.solutionUDotDot())
1273 {
1275 return _nodal_value_dotdot;
1276 }
1277 else
1278 mooseError(
1279 "MooseVariableData: Second time derivative of solution (`u_dotdot`) is not stored. "
1280 "Please set uDotDotRequested() to true in FEProblemBase before requesting "
1281 "`u_dotdot`.");
1282 }
1283 else
1284 mooseError("Nodal values can be requested only on nodal variables, variable '",
1285 var().name(),
1286 "' is not nodal.");
1287}

◆ nodalValueDotDotOld()

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

Definition at line 1313 of file MooseVariableData.C.

1314{
1315 if (isNodal())
1316 {
1318 {
1321 }
1322 else
1323 mooseError(
1324 "MooseVariableData: Old second time derivative of solution (`u_dotdot_old`) is not "
1325 "stored. Please set uDotDotOldRequested() to true in FEProblemBase before "
1326 "requesting `u_dotdot_old`.");
1327 }
1328 else
1329 mooseError("Nodal values can be requested only on nodal variables, variable '",
1330 var().name(),
1331 "' is not nodal.");
1332}

◆ nodalValueDotOld()

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

Definition at line 1291 of file MooseVariableData.C.

1292{
1293 if (isNodal())
1294 {
1295 if (_sys.solutionUDotOld())
1296 {
1298 return _nodal_value_dot_old;
1299 }
1300 else
1301 mooseError("MooseVariableData: Old time derivative of solution (`u_dot_old`) is not stored. "
1302 "Please set uDotOldRequested() to true in FEProblemBase before requesting "
1303 "`u_dot_old`.");
1304 }
1305 else
1306 mooseError("Nodal values can be requested only on nodal variables, variable '",
1307 var().name(),
1308 "' is not nodal.");
1309}

◆ nodalValueDuDotDotDu()

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

◆ nodalValueDuDotDu()

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

◆ nodalVectorTagValue()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::nodalVectorTagValue ( TagID  tag) const
inherited

Definition at line 98 of file MooseVariableDataBase.C.

99{
100 if (isNodal())
101 {
102 if (tag >= _need_vector_tag_dof_u.size())
104
105 _need_vector_tag_dof_u[tag] = true;
106
107 if (_sys.hasVector(tag))
108 return _vector_tags_dof_u[tag];
109 else
111 "Tag ", tag, " is not associated with any vector for nodal variable ", _var.name());
112 }
113 else
114 mooseError("Nodal values can be requested only on nodal variables, variable '",
115 _var.name(),
116 "' is not nodal.");
117}
void resizeVectorTagData(TagID tag)
resize the vector tag need flags and data containers to accomodate this tag index

◆ node()

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

Definition at line 248 of file MooseVariableData.h.

248{ return _node; }

◆ numberOfDofs()

template<typename OutputType >
unsigned int MooseVariableData< OutputType >::numberOfDofs ( ) const
inline

Definition at line 398 of file MooseVariableData.h.

398{ return _dof_indices.size(); }

◆ oldestSolutionStateRequested()

template<typename OutputType >
unsigned int MooseVariableDataBase< OutputType >::oldestSolutionStateRequested ( ) const
inherited

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

Definition at line 250 of file MooseVariableDataBase.C.

251{
252 return _max_state;
253}

◆ phi()

template<typename OutputType >
const FieldVariablePhiValue & MooseVariableData< OutputType >::phi ( ) const
inline

phi getter

Definition at line 140 of file MooseVariableData.h.

140{ return *_phi; }

◆ phiFace()

template<typename OutputType >
const FieldVariablePhiValue & MooseVariableData< OutputType >::phiFace ( ) const
inline

phi_face getter

Definition at line 145 of file MooseVariableData.h.

145{ return *_phi_face; }

◆ phiFaceSize()

template<typename OutputType >
std::size_t MooseVariableData< OutputType >::phiFaceSize ( ) const
inline

Return phiFace size.

Definition at line 223 of file MooseVariableData.h.

223{ return _phi_face->size(); }

◆ phiSize()

template<typename OutputType >
std::size_t MooseVariableData< OutputType >::phiSize ( ) const
inline

Return phi size.

Definition at line 218 of file MooseVariableData.h.

218{ return _phi->size(); }

◆ prepare()

template<typename OutputType >
void MooseVariableData< OutputType >::prepare ( )

Get the dof indices corresponding to the current element.

Definition at line 1392 of file MooseVariableData.C.

1393{
1394 if constexpr (std::is_same<OutputType, RealEigenVector>::value)
1396 else
1398
1399 _has_dof_values = false;
1400
1401 // FIXME: remove this when the Richard's module is migrated to use the new NodalCoupleable
1402 // interface.
1404}

◆ prepareAux()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::prepareAux ( )
inlineinherited

Clear aux state.

Definition at line 142 of file MooseVariableDataBase.h.

142{ _has_dof_values = false; }

◆ prepareIC()

template<typename OutputType >
void MooseVariableData< OutputType >::prepareIC ( )

prepare the initial condition

Definition at line 1374 of file MooseVariableData.C.

1375{
1376 if constexpr (std::is_same<RealEigenVector, OutputType>::value)
1378 else
1380
1381 mooseAssert(_dof_indices.size() % _count == 0,
1382 "The number of dof indices should divide cleanly by the variable count");
1383 const auto num_shapes = _dof_indices.size() / _count;
1384 _vector_tags_dof_u[_solution_tag].resize(num_shapes);
1385
1386 unsigned int nqp = _qrule->n_points();
1387 _vector_tag_u[_solution_tag].resize(nqp);
1388}

◆ reinitAux()

template<typename OutputType >
void MooseVariableData< OutputType >::reinitAux ( )

Prepare dof indices and solution values for elemental auxiliary variables.

Definition at line 1429 of file MooseVariableData.C.

1430{
1431 /* FIXME: this method is only for elemental auxiliary variables, so
1432 * we may want to rename it */
1433 if (_elem)
1434 {
1435 if constexpr (std::is_same<RealEigenVector, OutputType>::value)
1437 else
1439 if (_elem->n_dofs(_sys.number(), _var_num) > 0)
1440 {
1441 // FIXME: Setting _nodal_dof_index inside of a method that apparently is only for "elemental"
1442 // aux variables seems absolutely absurd
1444
1446
1447 mooseAssert(_dof_indices.size() % _count == 0,
1448 "The number of dof indices should be cleanly divisible by the variable count");
1449 const auto num_shapes = _dof_indices.size() / _count;
1450 for (auto & dof_u : _vector_tags_dof_u)
1451 dof_u.resize(num_shapes);
1452
1453 for (auto & dof_u : _matrix_tags_dof_u)
1454 dof_u.resize(num_shapes);
1455
1456 _has_dof_indices = true;
1457 }
1458 else
1459 _has_dof_indices = false;
1460 }
1461 else
1462 _has_dof_indices = false;
1463}

◆ reinitNode()

template<typename OutputType >
void MooseVariableData< OutputType >::reinitNode ( )

Prepare degrees of freedom for the current node.

Definition at line 1408 of file MooseVariableData.C.

1409{
1410 if constexpr (std::is_same<OutputType, RealEigenVector>::value)
1412 else
1414
1415 const auto n_dofs = _dof_indices.size();
1416 if (n_dofs)
1417 {
1418 // For standard variables. _nodal_dof_index is retrieved by nodalDofIndex() which is used in
1419 // NodalBC for example
1421 _has_dof_indices = true;
1422 }
1423 else
1424 _has_dof_indices = false;
1425}

◆ reinitNodes()

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

Set _dof_indices to the degrees of freedom existing on the passed-in nodes.

Parameters
nodesThe nodes to grab the degrees of freedom for

Definition at line 1467 of file MooseVariableData.C.

1468{
1469 _dof_indices.clear();
1470 for (const auto & node_id : nodes)
1471 {
1472 auto && nd = _subproblem.mesh().getMesh().query_node_ptr(node_id);
1473 if (nd && (_subproblem.mesh().isSemiLocal(const_cast<Node *>(nd))))
1474 {
1475 if (nd->n_dofs(_sys.number(), _var_num) > 0)
1476 {
1477 if constexpr (std::is_same<RealEigenVector, OutputType>::value)
1478 {
1479 static thread_local std::vector<dof_id_type> dof_indices;
1480 _dof_map.array_dof_indices(nd, dof_indices, _var_num);
1481 for (const auto dof : dof_indices)
1482 _dof_indices.push_back(dof);
1483 }
1484 else
1485 {
1486 dof_id_type dof = nd->dof_number(_sys.number(), _var_num, 0);
1487 _dof_indices.push_back(dof);
1488 }
1489 }
1490 }
1491 }
1492
1493 if (!_dof_indices.empty())
1494 _has_dof_indices = true;
1495 else
1496 _has_dof_indices = false;
1497}
MeshBase & getMesh()
Accessor for the underlying libMesh Mesh object.
Definition MooseMesh.C:3557

◆ resizeVectorTagData()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::resizeVectorTagData ( TagID  tag)
protectedinherited

resize the vector tag need flags and data containers to accomodate this tag index

Definition at line 147 of file MooseVariableDataBase.C.

148{
149 mooseAssert(_need_vector_tag_dof_u.size() == _need_vector_tag_u.size() &&
152 _need_vector_tag_dof_u.size() == _vector_tag_u.size() &&
154 "These sizes should be in sync.");
155
156 auto check_capacity = [tag](const auto & vector_to_check)
157 {
158 if (tag + 1 > vector_to_check.capacity())
159 mooseError("New size greater than tag capacity. This will cause reallocation which will "
160 "invalidate any stored references.");
161 };
162 check_capacity(_need_vector_tag_dof_u);
163 check_capacity(_need_vector_tag_u);
164 check_capacity(_need_vector_tag_grad);
165 check_capacity(_vector_tags_dof_u);
166 check_capacity(_vector_tag_u);
167 check_capacity(_vector_tag_grad);
168
169 _need_vector_tag_dof_u.resize(tag + 1, false);
170 _need_vector_tag_u.resize(tag + 1, false);
171 _need_vector_tag_grad.resize(tag + 1, false);
172 _vector_tags_dof_u.resize(tag + 1);
173 _vector_tag_u.resize(tag + 1);
174 _vector_tag_grad.resize(tag + 1);
175}

◆ secondPhi()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariablePhiSecond & MooseVariableData< OutputType >::secondPhi ( ) const

second_phi getter

Definition at line 360 of file MooseVariableData.C.

361{
363 return *_second_phi;
364}
const FieldVariablePhiSecond * _second_phi

Referenced by MooseVariableData< OutputType >::adSecondSln().

◆ secondPhiFace()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariablePhiSecond & MooseVariableData< OutputType >::secondPhiFace ( ) const

second_phi_face getter

Definition at line 368 of file MooseVariableData.C.

369{
371 return *_second_phi_face;
372}
const FieldVariablePhiSecond * _second_phi_face

Referenced by MooseVariableData< OutputType >::adSecondSln().

◆ secondSln()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableSecond & MooseVariableData< OutputType >::secondSln ( Moose::SolutionState  state) const

Local solution second spatial derivative getter.

Parameters
stateThe state of the simulation: current, old, older, previous nl

Definition at line 259 of file MooseVariableData.C.

260{
261 secondPhi();
263 switch (state)
264 {
265 case Moose::Current:
266 {
267 _need_second = true;
268 return _second_u;
269 }
270
271 case Moose::Old:
272 {
273 _need_second_old = true;
274 return _second_u_old;
275 }
276
277 case Moose::Older:
278 {
279 _need_second_older = true;
280 return _second_u_older;
281 }
282
284 {
287 }
288
289 default:
290 // We should never get here but gcc requires that we have a default. See
291 // htpps://stackoverflow.com/questions/18680378/after-defining-case-for-all-enum-values-compiler-still-says-control-reaches-e
292 mooseError("Unknown SolutionState!");
293 }
294}

◆ setActiveTags()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::setActiveTags ( const std::set< TagID > &  vtags)
inherited

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

Definition at line 314 of file MooseVariableDataBase.h.

315{
317 for (const auto tag : vtags)
319
320 if (!_required_vector_tags.empty())
321 {
322 const auto largest_tag_id = *_required_vector_tags.rbegin();
323 if (largest_tag_id >= _need_vector_tag_dof_u.size())
324 resizeVectorTagData(largest_tag_id);
325 }
326}
void insert(libMesh::NumericVector< libMesh::Number > &residual)
Set the current local DOF values to the input vector.

◆ setDofValue()

template<typename OutputType >
void MooseVariableData< OutputType >::setDofValue ( const DofValue value,
unsigned int  index 
)

dof value setters

Definition at line 868 of file MooseVariableData.C.

869{
870 auto & dof_values = _vector_tags_dof_u[_solution_tag];
871 dof_values[index] = value;
872 _has_dof_values = true;
873
874 auto & u = _vector_tag_u[_solution_tag];
875 const auto nqps = u.size();
876 const auto ndofs = dof_values.size();
877 for (const auto qp : make_range(nqps))
878 u[qp] *= 0.;
879 for (const auto qp : make_range(nqps))
880 for (const auto i : make_range(ndofs))
881 u[qp] += (*_phi)[i][qp] * dof_values[i];
882}
Real value(unsigned n, unsigned alpha, unsigned beta, Real x)

◆ setDofValues()

template<typename OutputType >
void MooseVariableData< OutputType >::setDofValues ( const DenseVector< DofValue > &  values)

Set local DOF values and evaluate the values on quadrature points.

Definition at line 886 of file MooseVariableData.C.

887{
888 auto & dof_values = _vector_tags_dof_u[_solution_tag];
889 for (unsigned int i = 0; i < values.size(); i++)
890 dof_values[i] = values(i);
891
892 _has_dof_values = true;
893
894 auto & u = _vector_tag_u[_solution_tag];
895 const auto nqps = u.size();
896 const auto ndofs = dof_values.size();
897 for (const auto qp : make_range(nqps))
898 u[qp] *= 0.;
899 for (const auto qp : make_range(nqps))
900 for (const auto i : make_range(ndofs))
901 u[qp] += (*_phi)[i][qp] * dof_values[i];
902}
std::array< Real, 2 > values
Definition MortarUtils.C:52

◆ setGeometry()

template<typename OutputType >
void MooseVariableData< OutputType >::setGeometry ( Moose::GeometryType  gm_type)

Set the geometry type before calculating variables values.

Parameters
gm_typeThe type type of geometry; either Volume or Face

Definition at line 140 of file MooseVariableData.C.

◆ setNodalValue() [1/2]

template<typename OutputType >
void MooseVariableDataBase< OutputType >::setNodalValue ( const OutputType &  value,
unsigned int  idx = 0 
)
inherited

Set nodal value.

Definition at line 380 of file MooseVariableDataBase.C.

381{
382 auto & dof_values = _vector_tags_dof_u[_solution_tag];
383 mooseAssert(idx < dof_values.size(), "idx is out of the bounds of degree of freedom values");
384 dof_values[idx] = value; // update variable nodal value
385 _has_dof_values = true;
387
388 // Update the qp values as well
389 auto & u = _vector_tag_u[_solution_tag];
390 for (unsigned int qp = 0; qp < u.size(); qp++)
391 u[qp] = value;
392}

◆ setNodalValue() [2/2]

void MooseVariableDataBase< RealVectorValue >::setNodalValue ( const RealVectorValue &  value,
unsigned int  idx 
)
inherited

Definition at line 396 of file MooseVariableDataBase.C.

398{
399 auto & dof_values = _vector_tags_dof_u[_solution_tag];
400 for (decltype(idx) i = 0; i < dof_values.size(); ++i, ++idx)
401 dof_values[idx] = value(i);
402
403 _has_dof_values = true;
405}

◆ sizeMatrixTagData()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::sizeMatrixTagData ( )
inherited

size matrix tag data

Definition at line 85 of file MooseVariableDataBase.C.

86{
87 auto num_matrix_tags = _subproblem.numMatrixTags();
88
89 _matrix_tags_dof_u.resize(num_matrix_tags);
90 _need_matrix_tag_dof_u.resize(num_matrix_tags, false);
91
92 _need_matrix_tag_u.resize(num_matrix_tags, false);
93 _matrix_tag_u.resize(num_matrix_tags);
94}
virtual unsigned int numMatrixTags() const
The total number of tags.
Definition SubProblem.h:248

◆ sln()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::FieldVariableValue & MooseVariableDataBase< OutputType >::sln ( Moose::SolutionState  state) const
inherited

Local solution getter.

Parameters
stateThe state of the simulation: current, old, older, previous nl

Definition at line 314 of file MooseVariableDataBase.C.

315{
316 auto functor = [this](TagID tag_id) -> const FieldVariableValue &
317 { return vectorTagValue(tag_id); };
318
319 _var.requireQpComputations();
320
321 return const_cast<MooseVariableDataBase<OutputType> *>(this)
322 ->stateToTagHelper<FieldVariableValue>(state, functor);
323}
const FieldVariableValue & vectorTagValue(TagID tag) const
MooseArray< OutputType > FieldVariableValue

Referenced by MooseVariableDataFV< OutputType >::sln().

◆ stateToTagHelper()

template<typename OutputType >
template<typename ReturnType , typename Functor >
const ReturnType & MooseVariableDataBase< OutputType >::stateToTagHelper ( Moose::SolutionState  state,
Functor  functor 
)
protectedinherited

Helper method that converts a SolutionState argument into a corresponding tag ID, potentially requesting necessary additional solution states and assigning tag id data members, and then calls the provided functor with the tag ID.

Definition at line 269 of file MooseVariableDataBase.C.

271{
272 if (state > 0)
273 {
274 // We need to request all states that are between current and the requested state
275 stateToTagHelper<ReturnType>(Moose::SolutionState(static_cast<int>(state) - 1), functor);
276 needSolutionState(cast_int<unsigned int>(state));
277 }
278
279 switch (state)
280 {
281 case Moose::Current:
283
284 case Moose::Old:
285 {
288 return functor(_old_solution_tag);
289 }
290
291 case Moose::Older:
292 {
295 return functor(_older_solution_tag);
296 }
297
299 {
302 return functor(_previous_nl_solution_tag);
303 }
304
305 default:
306 // We should never get here but gcc requires that we have a default. See
307 // htpps://stackoverflow.com/questions/18680378/after-defining-case-for-all-enum-values-compiler-still-says-control-reaches-e
308 mooseError("Unknown SolutionState!");
309 }
310}
void insertSolutionTag(TagID tag_id)
insert a solution tag into our tag containers
void needSolutionState(unsigned int state)
Request that we have at least state number of older solution states/vectors.
virtual TagID getVectorTagID(const TagName &tag_name) const
Get a TagID from a TagName.
Definition SubProblem.C:202
const TagName OLDER_SOLUTION_TAG
Definition MooseTypes.C:27
const TagName PREVIOUS_NL_SOLUTION_TAG
Definition MooseTypes.C:28
SolutionState
Definition MooseTypes.h:262
const TagName OLD_SOLUTION_TAG
Definition MooseTypes.C:26
const TagName SOLUTION_TAG
Definition MooseTypes.C:25

◆ uDot()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableValue & MooseVariableData< OutputType >::uDot ( ) const

Definition at line 171 of file MooseVariableData.C.

172{
173 if (_sys.solutionUDot())
174 {
175 _need_u_dot = true;
176 return _u_dot;
177 }
178 else
179 mooseError("MooseVariableFE: Time derivative of solution (`u_dot`) is not stored. Please set "
180 "uDotRequested() to true in FEProblemBase before requesting `u_dot`.");
181}

◆ uDotDot()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableValue & MooseVariableData< OutputType >::uDotDot ( ) const

Definition at line 185 of file MooseVariableData.C.

186{
187 if (_sys.solutionUDotDot())
188 {
189 _need_u_dotdot = true;
190 return _u_dotdot;
191 }
192 else
193 mooseError("MooseVariableFE: Second time derivative of solution (`u_dotdot`) is not stored. "
194 "Please set uDotDotRequested() to true in FEProblemBase before requesting "
195 "`u_dotdot`.");
196}

◆ uDotDotOld()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableValue & MooseVariableData< OutputType >::uDotDotOld ( ) const

Definition at line 215 of file MooseVariableData.C.

216{
218 {
219 _need_u_dotdot_old = true;
220 return _u_dotdot_old;
221 }
222 else
223 mooseError("MooseVariableFE: Old second time derivative of solution (`u_dotdot_old`) is not "
224 "stored. Please set uDotDotOldRequested() to true in FEProblemBase before "
225 "requesting `u_dotdot_old`");
226}

◆ uDotOld()

template<typename OutputType >
const MooseVariableData< OutputType >::FieldVariableValue & MooseVariableData< OutputType >::uDotOld ( ) const

Definition at line 200 of file MooseVariableData.C.

201{
202 if (_sys.solutionUDotOld())
203 {
204 _need_u_dot_old = true;
205 return _u_dot_old;
206 }
207 else
208 mooseError("MooseVariableFE: Old time derivative of solution (`u_dot_old`) is not stored. "
209 "Please set uDotOldRequested() to true in FEProblemBase before requesting "
210 "`u_dot_old`.");
211}

◆ usesSecondPhi()

template<typename OutputType >
bool MooseVariableData< OutputType >::usesSecondPhi ( ) const
inline

Whether or not this variable is computing any second derivatives.

Definition at line 228 of file MooseVariableData.h.

◆ var()

template<typename OutputType >
virtual const MooseVariableField< OutputType > & MooseVariableDataBase< OutputType >::var ( ) const
inlineprotectedvirtualinherited
Returns
The variable to which the data in this class belongs to

Reimplemented in MooseVariableDataFV< OutputType >, and MooseVariableDataLinearFV< OutputType >.

Definition at line 153 of file MooseVariableDataBase.h.

153{ return _var; }

Referenced by MooseVariableData< OutputType >::arrayGradPhi(), and MooseVariableData< OutputType >::arrayGradPhiFace().

◆ vectorTagDofValue() [1/2]

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::vectorTagDofValue ( Moose::SolutionState  state) const
inherited

Definition at line 340 of file MooseVariableDataBase.C.

341{
342 auto functor = [this](TagID tag_id) -> const DofValues & { return vectorTagDofValue(tag_id); };
343
344 _var.requireQpComputations();
345
346 return const_cast<MooseVariableDataBase<OutputType> *>(this)->stateToTagHelper<DofValues>(
347 state, functor);
348}
MooseArray< DofValue > DofValues

◆ vectorTagDofValue() [2/2]

template<typename OutputType >
const MooseVariableDataBase< OutputType >::DofValues & MooseVariableDataBase< OutputType >::vectorTagDofValue ( TagID  tag) const
inherited

Definition at line 196 of file MooseVariableDataBase.C.

197{
198 if (tag >= _need_vector_tag_dof_u.size())
200
201 _var.requireQpComputations();
202
203 _need_vector_tag_dof_u[tag] = true;
204
205 if (_sys.hasVector(tag))
206 return _vector_tags_dof_u[tag];
207 else
208 mooseError("Tag ", tag, " is not associated with any vector for variable ", _var.name());
209}

◆ vectorTagGradient()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::FieldVariableGradient & MooseVariableDataBase< OutputType >::vectorTagGradient ( TagID  tag) const
inherited

Definition at line 213 of file MooseVariableDataBase.C.

214{
215 if (tag >= _need_vector_tag_grad.size())
217
218 _var.requireQpComputations();
219
220 _need_vector_tag_grad[tag] = true;
221
222 if (_sys.hasVector(tag))
223 return _vector_tag_grad[tag];
224 else
225 mooseError("Tag ", tag, " is not associated with any vector for variable ", _var.name());
226}

◆ vectorTagValue()

template<typename OutputType >
const MooseVariableDataBase< OutputType >::FieldVariableValue & MooseVariableDataBase< OutputType >::vectorTagValue ( TagID  tag) const
inherited

Definition at line 179 of file MooseVariableDataBase.C.

180{
181 if (tag >= _need_vector_tag_u.size())
183
184 _var.requireQpComputations();
185
186 _need_vector_tag_u[tag] = true;
187
188 if (_sys.hasVector(tag))
189 return _vector_tag_u[tag];
190 else
191 mooseError("Tag ", tag, " is not associated with any vector for variable ", _var.name());
192}

◆ zeroSizeDofValues()

template<typename OutputType >
void MooseVariableDataBase< OutputType >::zeroSizeDofValues ( )
protectedinherited

Definition at line 716 of file MooseVariableDataBase.C.

717{
719 {
726 }
727
728 for (auto & dof_values : _vector_tags_dof_u)
729 dof_values.resize(0);
730
731 _has_dof_values = false;
732}

Member Data Documentation

◆ _ad_curl_u

template<typename OutputType >
ADTemplateVariableCurl<OutputType> MooseVariableData< OutputType >::_ad_curl_u
private

Definition at line 588 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adCurlSln().

◆ _ad_dof_values

template<typename OutputType >
ADDofValues MooseVariableData< OutputType >::_ad_dof_values
private

Definition at line 580 of file MooseVariableData.h.

◆ _ad_dofs_dot

template<typename OutputType >
ADDofValues MooseVariableData< OutputType >::_ad_dofs_dot
private

Definition at line 581 of file MooseVariableData.h.

◆ _ad_dofs_dot_eigen

template<typename OutputType >
MooseArray<ADRealEigenVector> MooseVariableData< OutputType >::_ad_dofs_dot_eigen
private

Definition at line 582 of file MooseVariableData.h.

◆ _ad_dofs_dotdot

template<typename OutputType >
ADDofValues MooseVariableData< OutputType >::_ad_dofs_dotdot
private

Definition at line 583 of file MooseVariableData.h.

◆ _ad_dofs_dotdot_eigen

template<typename OutputType >
MooseArray<ADRealEigenVector> MooseVariableData< OutputType >::_ad_dofs_dotdot_eigen
private

Definition at line 584 of file MooseVariableData.h.

◆ _ad_grad_phi

template<typename OutputType >
const ADTemplateVariablePhiGradient<OutputShape>* MooseVariableData< OutputType >::_ad_grad_phi
private

◆ _ad_grad_phi_assembly_method

template<typename OutputType >
std::function<const ADTemplateVariablePhiGradient<OutputShape> &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_ad_grad_phi_assembly_method
private

◆ _ad_grad_phi_face

template<typename OutputType >
const ADTemplateVariablePhiGradient<OutputShape>* MooseVariableData< OutputType >::_ad_grad_phi_face
private

◆ _ad_grad_phi_face_assembly_method

template<typename OutputType >
std::function<const ADTemplateVariablePhiGradient<OutputShape> &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_ad_grad_phi_face_assembly_method
private

◆ _ad_grad_u

template<typename OutputType >
ADTemplateVariableGradient<OutputType> MooseVariableData< OutputType >::_ad_grad_u
private

Definition at line 578 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adGradSln().

◆ _ad_grad_u_dot

template<typename OutputType >
ADTemplateVariableGradient<OutputType> MooseVariableData< OutputType >::_ad_grad_u_dot
private

Definition at line 587 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adGradSlnDot().

◆ _ad_nodal_value

template<typename OutputType >
Moose::ADType<OutputType>::type MooseVariableData< OutputType >::_ad_nodal_value
private

AD nodal value.

Definition at line 522 of file MooseVariableData.h.

◆ _ad_real_dummy

template<typename OutputType >
ADReal MooseVariableData< OutputType >::_ad_real_dummy = 0
private

A dummy ADReal variable.

Definition at line 713 of file MooseVariableData.h.

◆ _ad_second_u

template<typename OutputType >
ADTemplateVariableSecond<OutputType> MooseVariableData< OutputType >::_ad_second_u
private

Definition at line 579 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adSecondSln().

◆ _ad_u

template<typename OutputType >
ADTemplateVariableValue<OutputType> MooseVariableData< OutputType >::_ad_u
private

AD u.

Definition at line 577 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adSln().

◆ _ad_u_dot

template<typename OutputType >
ADTemplateVariableValue<OutputType> MooseVariableData< OutputType >::_ad_u_dot
private

Definition at line 585 of file MooseVariableData.h.

◆ _ad_u_dotdot

template<typename OutputType >
ADTemplateVariableValue<OutputType> MooseVariableData< OutputType >::_ad_u_dotdot
private

Definition at line 586 of file MooseVariableData.h.

◆ _ad_zero

template<typename OutputType >
ADReal MooseVariableData< OutputType >::_ad_zero
private

A zero AD variable.

Definition at line 525 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::MooseVariableData().

◆ _assembly

template<typename OutputType >
const Assembly& MooseVariableData< OutputType >::_assembly
private

◆ _continuity

template<typename OutputType >
libMesh::FEContinuity MooseVariableData< OutputType >::_continuity
private

◆ _count

template<typename OutputType >
unsigned int MooseVariableDataBase< OutputType >::_count
protectedinherited

Number of components of the associated variable.

Definition at line 202 of file MooseVariableDataBase.h.

◆ _curl_phi

template<typename OutputType >
const FieldVariablePhiCurl* MooseVariableData< OutputType >::_curl_phi
mutableprivate

Definition at line 620 of file MooseVariableData.h.

◆ _curl_phi_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiCurl &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_curl_phi_assembly_method
private

◆ _curl_phi_face

template<typename OutputType >
const FieldVariablePhiCurl* MooseVariableData< OutputType >::_curl_phi_face
mutableprivate

Definition at line 633 of file MooseVariableData.h.

◆ _curl_phi_face_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiCurl &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_curl_phi_face_assembly_method
private

◆ _curl_u

template<typename OutputType >
FieldVariableCurl MooseVariableData< OutputType >::_curl_u
private

curl_u

Definition at line 567 of file MooseVariableData.h.

◆ _curl_u_old

template<typename OutputType >
FieldVariableCurl MooseVariableData< OutputType >::_curl_u_old
private

Definition at line 568 of file MooseVariableData.h.

◆ _curl_u_older

template<typename OutputType >
FieldVariableCurl MooseVariableData< OutputType >::_curl_u_older
private

Definition at line 569 of file MooseVariableData.h.

◆ _current_ad_grad_phi

template<typename OutputType >
const ADTemplateVariablePhiGradient<OutputShape>* MooseVariableData< OutputType >::_current_ad_grad_phi
private

Definition at line 645 of file MooseVariableData.h.

◆ _current_curl_phi

template<typename OutputType >
const FieldVariablePhiCurl* MooseVariableData< OutputType >::_current_curl_phi
private

Definition at line 643 of file MooseVariableData.h.

◆ _current_div_phi

template<typename OutputType >
const FieldVariablePhiDivergence* MooseVariableData< OutputType >::_current_div_phi
private

Definition at line 644 of file MooseVariableData.h.

◆ _current_grad_phi

template<typename OutputType >
const FieldVariablePhiGradient* MooseVariableData< OutputType >::_current_grad_phi
private

Definition at line 641 of file MooseVariableData.h.

◆ _current_phi

template<typename OutputType >
const FieldVariablePhiValue* MooseVariableData< OutputType >::_current_phi
private

Definition at line 640 of file MooseVariableData.h.

◆ _current_qrule

template<typename OutputType >
const QBase* MooseVariableData< OutputType >::_current_qrule
private

Definition at line 639 of file MooseVariableData.h.

◆ _current_second_phi

template<typename OutputType >
const FieldVariablePhiSecond* MooseVariableData< OutputType >::_current_second_phi
private

Definition at line 642 of file MooseVariableData.h.

◆ _current_side

template<typename OutputType >
const unsigned int& MooseVariableData< OutputType >::_current_side
private

The current element side.

Definition at line 710 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::currentSide().

◆ _displaced

template<typename OutputType >
const bool MooseVariableData< OutputType >::_displaced
private

Whether this variable is being calculated on a displaced system.

Definition at line 707 of file MooseVariableData.h.

◆ _div_phi

template<typename OutputType >
const FieldVariablePhiDivergence* MooseVariableData< OutputType >::_div_phi
mutableprivate

Definition at line 621 of file MooseVariableData.h.

◆ _div_phi_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_div_phi_assembly_method
private

◆ _div_phi_face

template<typename OutputType >
const FieldVariablePhiDivergence* MooseVariableData< OutputType >::_div_phi_face
mutableprivate

Definition at line 634 of file MooseVariableData.h.

◆ _div_phi_face_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiDivergence &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_div_phi_face_assembly_method
private

◆ _div_u

template<typename OutputType >
FieldVariableDivergence MooseVariableData< OutputType >::_div_u
private

divergence_u

Definition at line 572 of file MooseVariableData.h.

◆ _div_u_old

template<typename OutputType >
FieldVariableDivergence MooseVariableData< OutputType >::_div_u_old
private

Definition at line 573 of file MooseVariableData.h.

◆ _div_u_older

template<typename OutputType >
FieldVariableDivergence MooseVariableData< OutputType >::_div_u_older
private

Definition at line 574 of file MooseVariableData.h.

◆ _dof_du_dot_du

template<typename OutputType >
MooseArray<libMesh::Number> MooseVariableDataBase< OutputType >::_dof_du_dot_du
protectedinherited

derivatives of the solution value time derivative with respect to the degrees of freedom

Definition at line 281 of file MooseVariableDataBase.h.

◆ _dof_du_dotdot_du

template<typename OutputType >
MooseArray<libMesh::Number> MooseVariableDataBase< OutputType >::_dof_du_dotdot_du
protectedinherited

derivatives of the solution value second time derivative with respect to the degrees of freedom

Definition at line 284 of file MooseVariableDataBase.h.

◆ _dof_indices

template<typename OutputType >
std::vector<dof_id_type> MooseVariableDataBase< OutputType >::_dof_indices
protectedinherited

◆ _dof_map

template<typename OutputType >
const libMesh::DofMap& MooseVariableDataBase< OutputType >::_dof_map
protectedinherited

The degree of freedom map from libMesh.

Definition at line 199 of file MooseVariableDataBase.h.

◆ _dof_values_dot

template<typename OutputType >
DofValues MooseVariableDataBase< OutputType >::_dof_values_dot
protectedinherited

time derivative of the solution values

Definition at line 273 of file MooseVariableDataBase.h.

◆ _dof_values_dot_old

template<typename OutputType >
DofValues MooseVariableDataBase< OutputType >::_dof_values_dot_old
protectedinherited

the previous time step's solution value time derivative

Definition at line 277 of file MooseVariableDataBase.h.

◆ _dof_values_dotdot

template<typename OutputType >
DofValues MooseVariableDataBase< OutputType >::_dof_values_dotdot
protectedinherited

second time derivative of the solution values

Definition at line 275 of file MooseVariableDataBase.h.

◆ _dof_values_dotdot_old

template<typename OutputType >
DofValues MooseVariableDataBase< OutputType >::_dof_values_dotdot_old
protectedinherited

the previous time step's solution value second time derivative

Definition at line 279 of file MooseVariableDataBase.h.

◆ _du_dot_du

template<typename OutputType >
VariableValue MooseVariableData< OutputType >::_du_dot_du
private

derivative of u_dot wrt u

Definition at line 605 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::duDotDu().

◆ _du_dotdot_du

template<typename OutputType >
VariableValue MooseVariableData< OutputType >::_du_dotdot_du
private

derivative of u_dotdot wrt u

Definition at line 608 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::duDotDotDu().

◆ _elem

template<typename OutputType >
const Elem* const& MooseVariableData< OutputType >::_elem
private

The current elem.

This has to be a reference because the current elem will be constantly changing. If we initialized this to point to one elem, then in the next calculation we would be pointing to the wrong place!

Definition at line 704 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::currentElem().

◆ _element_type

template<typename OutputType >
Moose::ElementType MooseVariableData< OutputType >::_element_type
private

The element type this object is storing data for. This is either Element, Neighbor, or Lower.

Definition at line 507 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::MooseVariableData().

◆ _fe_type

template<typename OutputType >
const libMesh::FEType& MooseVariableData< OutputType >::_fe_type
private

◆ _grad_phi

template<typename OutputType >
const FieldVariablePhiGradient* MooseVariableData< OutputType >::_grad_phi
private

◆ _grad_phi_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiGradient &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_grad_phi_assembly_method
private

◆ _grad_phi_face

template<typename OutputType >
const FieldVariablePhiGradient* MooseVariableData< OutputType >::_grad_phi_face
private

◆ _grad_phi_face_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiGradient &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_grad_phi_face_assembly_method
private

◆ _grad_u_dot

template<typename OutputType >
FieldVariableGradient MooseVariableData< OutputType >::_grad_u_dot
private

grad_u dots

Definition at line 557 of file MooseVariableData.h.

◆ _grad_u_dotdot

template<typename OutputType >
FieldVariableGradient MooseVariableData< OutputType >::_grad_u_dotdot
private

Definition at line 558 of file MooseVariableData.h.

◆ _has_dof_indices

template<typename OutputType >
bool MooseVariableData< OutputType >::_has_dof_indices
private

◆ _has_dof_values

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_has_dof_values
protectedinherited

Whether we currently have degree of freedom values stored in our local containers (corresponding to the current element)

Definition at line 206 of file MooseVariableDataBase.h.

Referenced by MooseVariableDataBase< OutputType >::prepareAux().

◆ _increment

template<typename OutputType >
FieldVariableValue MooseVariableData< OutputType >::_increment
private

Increment in the variable used in dampers.

Definition at line 519 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::increment().

◆ _is_nodal

template<typename OutputType >
bool MooseVariableData< OutputType >::_is_nodal
private

◆ _mapped_grad_phi

template<typename OutputType >
MappedArrayVariablePhiGradient MooseVariableData< OutputType >::_mapped_grad_phi
private

Definition at line 624 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::arrayGradPhi().

◆ _mapped_grad_phi_face

template<typename OutputType >
MappedArrayVariablePhiGradient MooseVariableData< OutputType >::_mapped_grad_phi_face
private

◆ _mapped_grad_phi_face_neighbor

template<typename OutputType >
MappedArrayVariablePhiGradient MooseVariableData< OutputType >::_mapped_grad_phi_face_neighbor
private

Definition at line 627 of file MooseVariableData.h.

◆ _mapped_grad_phi_neighbor

template<typename OutputType >
MappedArrayVariablePhiGradient MooseVariableData< OutputType >::_mapped_grad_phi_neighbor
private

Definition at line 626 of file MooseVariableData.h.

◆ _matrix_tag_u

template<typename OutputType >
std::vector<FieldVariableValue> MooseVariableDataBase< OutputType >::_matrix_tag_u
protectedinherited

Definition at line 238 of file MooseVariableDataBase.h.

◆ _matrix_tags_dof_u

template<typename OutputType >
std::vector<DofValues> MooseVariableDataBase< OutputType >::_matrix_tags_dof_u
protectedinherited

Definition at line 232 of file MooseVariableDataBase.h.

◆ _max_state

template<typename OutputType >
unsigned int MooseVariableDataBase< OutputType >::_max_state
protectedinherited

The maximum number of older solution states our variable needs.

Definition at line 209 of file MooseVariableDataBase.h.

◆ _need_ad

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad = false
mutableprivate

◆ _need_ad_curl_u

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_curl_u = false
mutableprivate

Definition at line 549 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adCurlSln().

◆ _need_ad_div_u

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_div_u = false
mutableprivate

Definition at line 550 of file MooseVariableData.h.

◆ _need_ad_grad_u

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_grad_u = false
mutableprivate

Definition at line 546 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adGradSln().

◆ _need_ad_grad_u_dot

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_grad_u_dot = false
mutableprivate

Definition at line 547 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adGradSlnDot().

◆ _need_ad_second_u

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_second_u = false
mutableprivate

Definition at line 548 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adSecondSln().

◆ _need_ad_u

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_u = false
mutableprivate

Definition at line 545 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adSln().

◆ _need_ad_u_dot

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_u_dot = false
mutableprivate

Definition at line 551 of file MooseVariableData.h.

◆ _need_ad_u_dotdot

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_ad_u_dotdot = false
mutableprivate

Definition at line 552 of file MooseVariableData.h.

◆ _need_curl

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_curl = false
mutableprivate

curl flags

Definition at line 534 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::computingCurl().

◆ _need_curl_old

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_curl_old = false
mutableprivate

Definition at line 535 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::computingCurl().

◆ _need_curl_older

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_curl_older = false
mutableprivate

Definition at line 536 of file MooseVariableData.h.

◆ _need_div

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_div = false
mutableprivate

divergence flags

Definition at line 539 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::computingDiv().

◆ _need_div_old

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_div_old = false
mutableprivate

Definition at line 540 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::computingDiv().

◆ _need_div_older

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_div_older = false
mutableprivate

Definition at line 541 of file MooseVariableData.h.

◆ _need_dof_du_dot_du

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_du_dot_du
mutableprotectedinherited

Definition at line 269 of file MooseVariableDataBase.h.

◆ _need_dof_du_dotdot_du

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_du_dotdot_du
mutableprotectedinherited

Definition at line 270 of file MooseVariableDataBase.h.

◆ _need_dof_values_dot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_values_dot
mutableprotectedinherited

local solution flags

Definition at line 265 of file MooseVariableDataBase.h.

◆ _need_dof_values_dot_old

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_values_dot_old
mutableprotectedinherited

Definition at line 267 of file MooseVariableDataBase.h.

◆ _need_dof_values_dotdot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_values_dotdot
mutableprotectedinherited

Definition at line 266 of file MooseVariableDataBase.h.

◆ _need_dof_values_dotdot_old

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_dof_values_dotdot_old
mutableprotectedinherited

Definition at line 268 of file MooseVariableDataBase.h.

◆ _need_du_dot_du

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_du_dot_du
mutableprotectedinherited

◆ _need_du_dotdot_du

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_du_dotdot_du
mutableprotectedinherited

◆ _need_grad_dot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_grad_dot
mutableprotectedinherited

gradient dot flags

Definition at line 261 of file MooseVariableDataBase.h.

Referenced by MooseVariableData< OutputType >::adGradSlnDot().

◆ _need_grad_dotdot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_grad_dotdot
mutableprotectedinherited

Definition at line 262 of file MooseVariableDataBase.h.

◆ _need_matrix_tag_dof_u

template<typename OutputType >
std::vector<bool> MooseVariableDataBase< OutputType >::_need_matrix_tag_dof_u
mutableprotectedinherited

Definition at line 227 of file MooseVariableDataBase.h.

◆ _need_matrix_tag_u

template<typename OutputType >
std::vector<bool> MooseVariableDataBase< OutputType >::_need_matrix_tag_u
mutableprotectedinherited

Definition at line 239 of file MooseVariableDataBase.h.

◆ _need_second

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_second = false
mutableprivate

SolutionState second_u flags.

Definition at line 528 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::usesSecondPhi().

◆ _need_second_old

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_second_old = false
mutableprivate

Definition at line 529 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::usesSecondPhi().

◆ _need_second_older

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_second_older = false
mutableprivate

Definition at line 530 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::usesSecondPhi().

◆ _need_second_previous_nl

template<typename OutputType >
bool MooseVariableData< OutputType >::_need_second_previous_nl = false
mutableprivate

Definition at line 531 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::usesSecondPhi().

◆ _need_u_dot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_u_dot
mutableprotectedinherited

u dot flags

Definition at line 253 of file MooseVariableDataBase.h.

◆ _need_u_dot_old

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_u_dot_old
mutableprotectedinherited

Definition at line 255 of file MooseVariableDataBase.h.

◆ _need_u_dotdot

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_u_dotdot
mutableprotectedinherited

Definition at line 254 of file MooseVariableDataBase.h.

◆ _need_u_dotdot_old

template<typename OutputType >
bool MooseVariableDataBase< OutputType >::_need_u_dotdot_old
mutableprotectedinherited

Definition at line 256 of file MooseVariableDataBase.h.

◆ _need_vector_tag_dof_u

template<typename OutputType >
std::vector<bool> MooseVariableDataBase< OutputType >::_need_vector_tag_dof_u
mutableprotectedinherited

◆ _need_vector_tag_grad

template<typename OutputType >
std::vector<bool> MooseVariableDataBase< OutputType >::_need_vector_tag_grad
mutableprotectedinherited

◆ _need_vector_tag_u

template<typename OutputType >
std::vector<bool> MooseVariableDataBase< OutputType >::_need_vector_tag_u
mutableprotectedinherited

◆ _nodal_dof_index

template<typename OutputType >
dof_id_type MooseVariableData< OutputType >::_nodal_dof_index
private

The dof index for the current node.

Definition at line 513 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::nodalDofIndex().

◆ _nodal_value

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value
protectedinherited

Nodal values.

Definition at line 242 of file MooseVariableDataBase.h.

◆ _nodal_value_array

template<typename OutputType >
MooseArray<OutputType> MooseVariableDataBase< OutputType >::_nodal_value_array
protectedinherited

Nodal values as MooseArrays for use with AuxKernels.

Definition at line 248 of file MooseVariableDataBase.h.

Referenced by MooseVariableDataBase< OutputType >::MooseVariableDataBase().

◆ _nodal_value_dot

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_dot
protectedinherited

nodal values of u_dot

Definition at line 287 of file MooseVariableDataBase.h.

◆ _nodal_value_dot_old

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_dot_old
protectedinherited

nodal values of u_dot_old

Definition at line 291 of file MooseVariableDataBase.h.

◆ _nodal_value_dotdot

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_dotdot
protectedinherited

nodal values of u_dotdot

Definition at line 289 of file MooseVariableDataBase.h.

◆ _nodal_value_dotdot_old

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_dotdot_old
protectedinherited

nodal values of u_dotdot_old

Definition at line 293 of file MooseVariableDataBase.h.

◆ _nodal_value_old

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_old
protectedinherited

Definition at line 243 of file MooseVariableDataBase.h.

◆ _nodal_value_old_array

template<typename OutputType >
MooseArray<OutputType> MooseVariableDataBase< OutputType >::_nodal_value_old_array
protectedinherited

◆ _nodal_value_older

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_older
protectedinherited

Definition at line 244 of file MooseVariableDataBase.h.

◆ _nodal_value_older_array

template<typename OutputType >
MooseArray<OutputType> MooseVariableDataBase< OutputType >::_nodal_value_older_array
protectedinherited

◆ _nodal_value_previous_nl

template<typename OutputType >
OutputType MooseVariableDataBase< OutputType >::_nodal_value_previous_nl
protectedinherited

Definition at line 245 of file MooseVariableDataBase.h.

◆ _node

template<typename OutputType >
const Node* const& MooseVariableData< OutputType >::_node
private

The current node.

This has to be a reference because the current node will be constantly changing. If we initialized this to point to one node, then in the next calculation we would be pointing to the wrong place!

Definition at line 699 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::node().

◆ _old_solution_tag

template<typename OutputType >
TagID MooseVariableDataBase< OutputType >::_old_solution_tag
protectedinherited

The vector tag ID corresponding to the old solution vector.

Definition at line 215 of file MooseVariableDataBase.h.

◆ _older_solution_tag

template<typename OutputType >
TagID MooseVariableDataBase< OutputType >::_older_solution_tag
protectedinherited

The vector tag ID corresponding to the older solution vector.

Definition at line 218 of file MooseVariableDataBase.h.

◆ _phi

template<typename OutputType >
const FieldVariablePhiValue* MooseVariableData< OutputType >::_phi
private

◆ _phi_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputType>::VariablePhiValue &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_phi_assembly_method
private

◆ _phi_face

template<typename OutputType >
const FieldVariablePhiValue* MooseVariableData< OutputType >::_phi_face
private

◆ _phi_face_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiValue &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_phi_face_assembly_method
private

◆ _previous_nl_solution_tag

template<typename OutputType >
TagID MooseVariableDataBase< OutputType >::_previous_nl_solution_tag
protectedinherited

The vector tag ID corresponding to the previous nonlinear iteration's solution vector.

Definition at line 221 of file MooseVariableDataBase.h.

◆ _qrule

template<typename OutputType >
const QBase* const& MooseVariableData< OutputType >::_qrule
private

The current qrule.

This has to be a reference because the current qrule will be constantly changing. If we initialized this to point to one qrule, then in the next calculation we would be pointing to the wrong place!

Definition at line 613 of file MooseVariableData.h.

◆ _qrule_face

template<typename OutputType >
const QBase* const& MooseVariableData< OutputType >::_qrule_face
private

Definition at line 614 of file MooseVariableData.h.

◆ _required_vector_tags

template<typename OutputType >
std::set<TagID> MooseVariableDataBase< OutputType >::_required_vector_tags
protectedinherited

The set of vector tags (residual + solution) we need to evaluate.

Definition at line 296 of file MooseVariableDataBase.h.

◆ _second_phi

template<typename OutputType >
const FieldVariablePhiSecond* MooseVariableData< OutputType >::_second_phi
mutableprivate

Definition at line 619 of file MooseVariableData.h.

◆ _second_phi_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiSecond &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_second_phi_assembly_method
private

◆ _second_phi_face

template<typename OutputType >
const FieldVariablePhiSecond* MooseVariableData< OutputType >::_second_phi_face
mutableprivate

Definition at line 632 of file MooseVariableData.h.

◆ _second_phi_face_assembly_method

template<typename OutputType >
std::function<const typename OutputTools<OutputShape>::VariablePhiSecond &(const Assembly &, libMesh::FEType)> MooseVariableData< OutputType >::_second_phi_face_assembly_method
private

◆ _second_u

template<typename OutputType >
FieldVariableSecond MooseVariableData< OutputType >::_second_u
private

second_u

Definition at line 561 of file MooseVariableData.h.

◆ _second_u_old

template<typename OutputType >
FieldVariableSecond MooseVariableData< OutputType >::_second_u_old
private

Definition at line 562 of file MooseVariableData.h.

◆ _second_u_older

template<typename OutputType >
FieldVariableSecond MooseVariableData< OutputType >::_second_u_older
private

Definition at line 563 of file MooseVariableData.h.

◆ _second_u_previous_nl

template<typename OutputType >
FieldVariableSecond MooseVariableData< OutputType >::_second_u_previous_nl
private

Definition at line 564 of file MooseVariableData.h.

◆ _solution_tag

template<typename OutputType >
TagID MooseVariableDataBase< OutputType >::_solution_tag
protectedinherited

The vector tag ID corresponding to the solution vector.

Definition at line 212 of file MooseVariableDataBase.h.

◆ _solution_tags

template<typename OutputType >
std::set<TagID> MooseVariableDataBase< OutputType >::_solution_tags
protectedinherited

The set of solution tags we need to evaluate.

Definition at line 299 of file MooseVariableDataBase.h.

◆ _subproblem

template<typename OutputType >
const SubProblem& MooseVariableDataBase< OutputType >::_subproblem
protectedinherited

The subproblem which we can query for information related to tagged vectors and matrices.

Definition at line 193 of file MooseVariableDataBase.h.

Referenced by MooseVariableDataBase< OutputType >::MooseVariableDataBase(), and MooseVariableDataFV< OutputType >::MooseVariableDataFV().

◆ _sys

template<typename OutputType >
SystemBase& MooseVariableDataBase< OutputType >::_sys
protectedinherited

The MOOSE system which ultimately holds the vectors and matrices relevant to this variable data.

Definition at line 190 of file MooseVariableDataBase.h.

Referenced by MooseVariableData< OutputType >::MooseVariableData().

◆ _tid

template<typename OutputType >
const THREAD_ID MooseVariableDataBase< OutputType >::_tid
protectedinherited

The thread ID that this object is on.

Definition at line 196 of file MooseVariableDataBase.h.

◆ _time_integrator

template<typename OutputType >
const TimeIntegrator* MooseVariableData< OutputType >::_time_integrator
private

Pointer to time integrator.

Definition at line 694 of file MooseVariableData.h.

Referenced by MooseVariableData< OutputType >::adGradSlnDot(), and MooseVariableData< OutputType >::MooseVariableData().

◆ _u_dot

template<typename OutputType >
FieldVariableValue MooseVariableData< OutputType >::_u_dot
private

u_dot (time derivative)

Definition at line 593 of file MooseVariableData.h.

◆ _u_dot_old

template<typename OutputType >
FieldVariableValue MooseVariableData< OutputType >::_u_dot_old
private

u_dot_old (time derivative)

Definition at line 599 of file MooseVariableData.h.

◆ _u_dotdot

template<typename OutputType >
FieldVariableValue MooseVariableData< OutputType >::_u_dotdot
private

u_dotdot (second time derivative)

Definition at line 596 of file MooseVariableData.h.

◆ _u_dotdot_old

template<typename OutputType >
FieldVariableValue MooseVariableData< OutputType >::_u_dotdot_old
private

u_dotdot_old (second time derivative)

Definition at line 602 of file MooseVariableData.h.

◆ _use_dual

template<typename OutputType >
const bool MooseVariableData< OutputType >::_use_dual
private

◆ _var

template<typename OutputType >
const MooseVariableFE<OutputType>& MooseVariableData< OutputType >::_var
private

A const reference to the owning MooseVariableFE object.

Definition at line 498 of file MooseVariableData.h.

◆ _var_num

template<typename OutputType >
const unsigned int MooseVariableData< OutputType >::_var_num
private

◆ _vector_tag_grad

template<typename OutputType >
std::vector<FieldVariableGradient> MooseVariableDataBase< OutputType >::_vector_tag_grad
protectedinherited

◆ _vector_tag_u

template<typename OutputType >
std::vector<FieldVariableValue> MooseVariableDataBase< OutputType >::_vector_tag_u
protectedinherited

◆ _vector_tags_dof_u

template<typename OutputType >
std::vector<DofValues> MooseVariableDataBase< OutputType >::_vector_tags_dof_u
protectedinherited

The documentation for this class was generated from the following files: