https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
LMWeightedGapUserObject Class Reference

User object for computing weighted gaps and contact pressure for Lagrange multipler based mortar constraints. More...

#include <LMWeightedGapUserObject.h>

Inheritance diagram for LMWeightedGapUserObject:
[legend]

Public Types

typedef DataFileName DataFileParameterType
 

Public Member Functions

 LMWeightedGapUserObject (const InputParameters &parameters)
 
virtual const ADVariableValue & contactPressure () const override
 
virtual void reinit () override
 
virtual Real getNormalContactPressure (const Node *const) const override
 
virtual ADReal nodalContactPressure (const Node &node) const override
 
virtual bool usesNodalNormalDerivatives () const override
 Whether this formulation includes displacement derivatives of the secondary nodal normals.
 
virtual const VariableTestValue & tractionBasis () const override
 The traction stays on the Lagrange multiplier's own basis, which is the basis adSlnLower() uses.
 
virtual void initialize () override
 
virtual void finalize () override
 
virtual Real nodalScale (const DofObject *const dof) const override
 Node-based Lagrange-multiplier scaling factor kappa_j of Popp et al.
 
virtual bool usesNodalScaling () const override
 
virtual Real normalizeCDivisor (const DofObject *const dof, const Real covered_normalization) const override
 
virtual void execute () override
 
virtual void initialSetup () override
 
const std::unordered_map< const DofObject *, std::pair< ADReal, Real > > & dofToWeightedGap () const
 Get the degree of freedom to weighted gap information.
 
virtual Real getNormalGap (const Node *const) const
 
bool shouldRecordNodalNormalDerivatives () const
 Whether the current assembly records nodal-normal derivatives for this object's system.
 
const MooseVariable * dispVar (unsigned int component) const
 
const ADRealVectorValue & contactNormal (const Elem &lower_secondary_elem, unsigned int nodal_index) const
 Return the cached contact normal for the supplied lower-dimensional secondary element node.
 
Real physicalGap (const std::pair< ADReal, Real > &gap) const
 Compute physical gap from integration gap quantity.
 
ADReal adPhysicalGap (const std::pair< ADReal, Real > &gap) const
 
virtual Real getFrictionalContactPressure (const Node *const, const unsigned int) const
 
virtual Real getAccumulatedSlip (const Node *const, const unsigned int) const
 
virtual Real getTangentialVelocity (const Node *const, const unsigned int) const
 
virtual void threadJoin (const UserObject &) override final
 
virtual Real spatialValue (const Point &) const
 
virtual const std::vector< Point > spatialPoints () const
 
void setPrimaryThreadCopy (UserObject *primary)
 
UserObject * primaryThreadCopy ()
 
SubProblem & getSubProblem () const
 
bool shouldDuplicateInitialExecution () const
 
void gatherSum (T &value)
 
void gatherMax (T &value)
 
void gatherMin (T &value)
 
void gatherProxyValueMax (T1 &proxy, T2 &value)
 
void gatherProxyValueMin (T1 &proxy, T2 &value)
 
std::set< UserObjectName > getDependObjects () const
 
const std::set< std::string > & getRequestedItems () override
 
const std::set< std::string > & getSuppliedItems () override
 
unsigned int systemNumber () const
 
virtual bool needThreadedCopy () const
 
virtual bool enabled () const
 
std::shared_ptr< MooseObject > getSharedPtr ()
 
std::shared_ptr< const MooseObject > getSharedPtr () const
 
bool isKokkosObject () const
 
MooseApp & getMooseApp () const
 
const std::string & type () const
 
const std::string & name () const
 
std::string typeAndName () const
 
MooseObjectParameterName uniqueParameterName (const std::string &parameter_name) const
 
MooseObjectName uniqueName () const
 
const InputParameters & parameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const T & getParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const T * queryParam (const std::string &name) const
 
const T & getRenamedParam (const std::string &old_name, const std::string &new_name) const
 
T getCheckedPointerParam (const std::string &name, const std::string &error_string="") const
 
bool isParamValid (const std::string &name) const
 
bool isParamSetByUser (const std::string &name) const
 
void connectControllableParams (const std::string &parameter, const std::string &object_type, const std::string &object_name, const std::string &object_parameter) const
 
void paramError (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramWarning (const std::string &param, Args... args) const
 
void paramInfo (const std::string &param, Args... args) const
 
std::string messagePrefix (const bool hit_prefix=true) const
 
std::string errorPrefix (const std::string &) const
 
void mooseError (Args &&... args) const
 
void mooseDocumentedError (const std::string &repo_name, const unsigned int issue_num, Args &&... args) const
 
void mooseErrorNonPrefixed (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarning (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseWarningNonPrefixed (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecated (Args &&... args) const
 
void mooseDeprecatedNoTrace (Args &&... args) const
 
void mooseInfo (Args &&... args) const
 
void callMooseError (std::string msg, const bool with_prefix, const hit::Node *node=nullptr, const bool show_trace=true) const
 
std::string getDataFileName (const std::string &param) const
 
std::string getDataFileNameByName (const std::string &relative_path) const
 
std::string getDataFilePath (const std::string &relative_path) const
 
virtual void timestepSetup ()
 
virtual void jacobianSetup ()
 
virtual void residualSetup ()
 
virtual void subdomainSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnum & getExecuteOnEnum () const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const T & getUserObject (const std::string &param_name, bool is_dependency=true) const
 
const T & getUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectBase & getUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectBase & getUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
SubdomainID primarySubdomain () const
 
SubdomainID secondarySubdomain () const
 
bool onInterface (BoundaryID primary_boundary_id, BoundaryID secondary_boundary_id) const
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const MaterialProperty< T > & getMaterialPropertyByName (const MaterialPropertyName &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const ADMaterialProperty< T > & getADMaterialPropertyByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOldByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name, MaterialData &material_data)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
const MaterialProperty< T > & getMaterialPropertyOlderByName (const MaterialPropertyName &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyByName (const std::string &prop_name_in)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOldByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlderByName (const std::string &prop_name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialProperty (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOld (const std::string &name)
 
Moose::Kokkos::MaterialProperty< T, dimension > getKokkosMaterialPropertyOlder (const std::string &name)
 
std::pair< const MaterialProperty< T > *, std::set< SubdomainID > > getBlockMaterialProperty (const MaterialPropertyName &name)
 
std::pair< Moose::Kokkos::MaterialProperty< T, dimension >, std::set< SubdomainID > > getKokkosBlockMaterialProperty (const MaterialPropertyName &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialProperty ()
 
const GenericMaterialProperty< T, is_ad > & getGenericZeroMaterialPropertyByName (const std::string &prop_name)
 
const MaterialProperty< T > & getZeroMaterialProperty (Ts... args)
 
std::set< SubdomainID > getMaterialPropertyBlocks (const std::string &name)
 
std::vector< SubdomainName > getMaterialPropertyBlockNames (const std::string &name)
 
std::set< BoundaryID > getMaterialPropertyBoundaryIDs (const std::string &name)
 
std::vector< BoundaryName > getMaterialPropertyBoundaryNames (const std::string &name)
 
void checkBlockAndBoundaryCompatibility (std::shared_ptr< MaterialBase > discrete)
 
std::unordered_map< SubdomainID, std::vector< MaterialBase * > > buildRequiredMaterials (bool allow_stateful=true)
 
void statefulPropertiesAllowed (bool)
 
virtual bool getMaterialPropertyCalled () const
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const
 
virtual void resolveOptionalProperties ()
 
const GenericMaterialProperty< T, is_ad > & getPossiblyConstantGenericMaterialPropertyByName (const MaterialPropertyName &prop_name, MaterialData &material_data, const unsigned int state)
 
virtual const VariableValue & coupledNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledNeighborValues (const std::string &var_name) const
 
std::vector< const VariableValue * > coupledNeighborValuesOld (const std::string &var_name) const
 
std::vector< const VariableValue * > coupledNeighborValuesOlder (const std::string &var_name) const
 
virtual const ADVariableValue & adCoupledNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
const auto & coupledGenericNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
const auto & coupledGenericNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValue & adCoupledNeighborValueDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledNeighborValues (const std::string &var_name) const
 
virtual const ADVectorVariableValue & adCoupledVectorNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborValueDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborValueDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual std::vector< const VariableGradient * > coupledNeighborGradients (const std::string &var_name) const
 
virtual const VariableGradient & coupledNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableGradient & adCoupledNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecond & coupledNeighborSecond (const std::string &var_name, unsigned int i=0) const
 
virtual const VariableValue & coupledNeighborDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNeighborDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
const std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > & getCoupledVars () const
 
const std::vector< MooseVariableFieldBase * > & getCoupledMooseVars () const
 
const std::vector< MooseVariable * > & getCoupledStandardMooseVars () const
 
const std::vector< VectorMooseVariable * > & getCoupledVectorMooseVars () const
 
const std::vector< ArrayMooseVariable * > & getCoupledArrayMooseVars () const
 
void addFEVariableCoupleableVectorTag (TagID tag)
 
void addFEVariableCoupleableMatrixTag (TagID tag)
 
std::set< TagID > & getFEVariableCoupleableVectorTags ()
 
const std::set< TagID > & getFEVariableCoupleableVectorTags () const
 
std::set< TagID > & getFEVariableCoupleableMatrixTags ()
 
const std::set< TagID > & getFEVariableCoupleableMatrixTags () const
 
auto & getWritableCoupledVariables () const
 
bool hasWritableCoupledVariables () const
 
const ADVariableValue * getADDefaultValue (const std::string &var_name) const
 
const ADVectorVariableValue * getADDefaultVectorValue (const std::string &var_name) const
 
const ADVariableGradient & getADDefaultGradient () const
 
const ADVectorVariableGradient & getADDefaultVectorGradient () const
 
const ADVariableSecond & getADDefaultSecond () const
 
const ADVectorVariableCurl & getADDefaultCurl () const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorTagVectorGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorTagVectorDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableGradient kokkosCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradients (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValues (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableGradient kokkosCoupledVectorGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorDots (const std::string &var_name) const
 
Moose::Kokkos::VectorVariableValue kokkosCoupledVectorNodalDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradientsByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValuesByName (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradient (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledVectorTagGradients (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagNodalValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledVectorTagDofValues (const std::string &var_name, const std::string &tag_param_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradients (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValues (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOld (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableGradient kokkosADCoupledGradientsOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDofValuesOlder (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledDots (const std::string &var_name) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::ADVariableValue kokkosADCoupledNodalDots (const std::string &var_name) const
 
Moose::Kokkos::Scalar< const Real > kokkosCoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosZeroValue () const
 
Moose::Kokkos::VariableGradient kokkosZeroGradient () const
 
Moose::Kokkos::VariableValue kokkosZeroNodalValue () const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObject (const std::string &param_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
bool hasUserObjectByName (const UserObjectName &object_name) const
 
const GenericMaterialProperty< T, is_ad > & getGenericNeighborMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericNeighborMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getNeighborMaterialProperty (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getNeighborMaterialProperty (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getNeighborADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > & getNeighborADMaterialProperty (const std::string &name)
 
const MaterialProperty< T > & getNeighborMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getNeighborMaterialPropertyOld (const std::string &name)
 
const MaterialProperty< T > & getNeighborMaterialPropertyOlder (const std::string &name)
 
const MaterialProperty< T > & getNeighborMaterialPropertyOlder (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > & getGenericNeighborMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const GenericMaterialProperty< T, is_ad > & getGenericNeighborMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getNeighborMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const MaterialProperty< T > & getNeighborMaterialPropertyByName (const std::string &name, const unsigned int state=0)
 
const ADMaterialProperty< T > & getNeighborADMaterialPropertyByName (const std::string &name)
 
const ADMaterialProperty< T > & getNeighborADMaterialPropertyByName (const std::string &name)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const GenericOptionalMaterialProperty< T, is_ad > & getGenericOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalMaterialProperty< T > & getOptionalMaterialProperty (const std::string &name, const unsigned int state=0)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalADMaterialProperty< T > & getOptionalADMaterialProperty (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOld (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
const OptionalMaterialProperty< T > & getOptionalMaterialPropertyOlder (const std::string &name)
 
MaterialBase & getMaterial (const std::string &name)
 
MaterialBase & getMaterial (const std::string &name)
 
MaterialBase & getMaterialByName (const std::string &name, bool no_warn=false)
 
MaterialBase & getMaterialByName (const std::string &name, bool no_warn=false)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialProperty (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialProperty (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasADMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialProperty (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasKokkosMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialProperty (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
bool hasGenericMaterialPropertyByName (const std::string &name)
 
const Function & getFunction (const std::string &name) const
 
const Function & getFunctionByName (const FunctionName &name) const
 
bool hasFunction (const std::string &param_name) const
 
bool hasFunctionByName (const FunctionName &name) const
 
Moose::Kokkos::Function getKokkosFunction (const std::string &name) const
 
const T & getKokkosFunction (const std::string &name) const
 
Moose::Kokkos::Function getKokkosFunctionByName (const FunctionName &name) const
 
const T & getKokkosFunctionByName (const FunctionName &name) const
 
bool hasKokkosFunction (const std::string &param_name) const
 
bool hasKokkosFunctionByName (const FunctionName &name) const
 
bool isDefaultPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessor (const std::string &param_name, const unsigned int index=0) const
 
bool hasPostprocessorByName (const PostprocessorName &name) const
 
std::size_t coupledPostprocessors (const std::string &param_name) const
 
const PostprocessorName & getPostprocessorName (const std::string &param_name, const unsigned int index=0) const
 
const VectorPostprocessorValue & getVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValue & getVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValue & getScatterVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
bool hasVectorPostprocessor (const std::string &param_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool hasVectorPostprocessorByName (const VectorPostprocessorName &name) const
 
const VectorPostprocessorName & getVectorPostprocessorName (const std::string &param_name) const
 
T & getSampler (const std::string &name)
 
Sampler & getSampler (const std::string &name)
 
T & getSamplerByName (const SamplerName &name)
 
Sampler & getSamplerByName (const SamplerName &name)
 
virtual void meshChanged ()
 
virtual void meshDisplaced ()
 
PerfGraph & perfGraph ()
 
const PostprocessorValue & getPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValue & getPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValue & getPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValue & getPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValue & getPostprocessorValueOlderByName (const PostprocessorName &name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributed (const std::string &param_name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
bool isVectorPostprocessorDistributedByName (const VectorPostprocessorName &name) const
 
const Distribution & getDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const Distribution & getDistribution (const std::string &name) const
 
const T & getDistribution (const std::string &name) const
 
const Distribution & getDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
const Distribution & getDistributionByName (const DistributionName &name) const
 
const T & getDistributionByName (const std::string &name) const
 
const Parallel::Communicator & comm () const
 
processor_id_type n_processors () const
 
processor_id_type processor_id () const
 

Static Public Member Functions

static InputParameters validParams ()
 
static InputParameters newParams ()
 New parameters that this sub-class introduces.
 
static void addNodalNormalCoupling (InputParameters &params)
 Request the secondary face point-neighbor matrix coupling that nodal-normal derivatives need.
 
static void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 
static void sort (typename std::vector< T > &vector)
 
static void sortDFS (typename std::vector< T > &vector)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header, NameFunc &&name_func)
 
static void cyclicDependencyError (CyclicDependencyException< T2 > &e, const std::string &header)
 
static InputParameters triangulationParams ()
 

Public Attributes

 usingCombinedWarningSolutionWarnings
 
const ConsoleStream _console
 

Static Public Attributes

static const std::string type_param
 
static const std::string name_param
 
static const std::string unique_name_param
 
static const std::string app_param
 
static const std::string moose_base_param
 
static const std::string kokkos_object_param
 
static constexpr PropertyValue::id_type default_property_id
 
static constexpr PropertyValue::id_type zero_property_id
 
static constexpr auto SYSTEM
 
static constexpr auto NAME
 

Protected Member Functions

virtual const VariableTestValue & test () const override
 
virtual bool constrainedByOwner () const override
 
virtual void computeQpIProperties () override
 Computes properties that are functions both of _qp and _i, for example the weighted gap.
 
void initializeNodalScaling ()
 The node-based scaling steps, kept out of initialize()/finalize()/computeQpIProperties() so that a class inheriting this one through more than one path can run them without invoking the base class twice.
 
void finalizeNodalScaling ()
 
void computeQpINodalScaling ()
 
const std::vector< Real > & fullNodalIntegrals (const Elem *elem)
 Full coordinate-weighted integral int_e N_j per local node on the secondary lower-dimensional element (exact in RZ and on warped elements), cached per element: the denominator of kappa_j (Popp 2013 eq.
 
void checkInput (const MooseVariable *const var, const std::string &var_name) const
 Check user input validity for provided variable.
 
void verifyLagrange (const MooseVariable &var, const std::string &var_name) const
 Verify that the provided variables have degrees of freedom at nodes.
 
void verifyLagrange (const MooseVariable &var, const std::string &var_name, const MooseVariable &reference_var, const std::string &reference_var_name) const
 Verify nodal degrees of freedom and require that var shares reference_var's finite element type (order/family) and dual/standard basis choice (useDual()).
 
virtual void computeQpProperties ()
 Computes properties that are functions only of the current quadrature point (_qp), e.g.
 
template<typename K , typename V >
V findValue (const std::unordered_map< K, V > &map, const K &key, const V &default_value=0) const
 Find a value in a map or return a default if the key doesn't exist.
 
ADPoint nodalCoordinate (const Node &node) const
 Add displacement derivatives to the node's current coordinate.
 
bool usesFaceCoupledValues () const override
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &name) const override
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &name) const override
 
virtual void addUserObjectDependencyHelper (const UserObjectBase &uo) const override
 
void addReporterDependencyHelper (const ReporterName &reporter_name) override
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
const ReporterContextBase & getReporterContextBaseByName (const ReporterName &reporter_name) const
 
const ReporterName & getReporterName (const std::string &param_name) const
 
T & declareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< T > declareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const T & getRestartableData (const std::string &data_name) const
 
T & declareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
T & declareRecoverableData (const std::string &data_name, Args &&... args)
 
T & declareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
T & declareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
const T & getMeshProperty (const std::string &data_name, const std::string &prefix)
 
const T & getMeshProperty (const std::string &data_name)
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name, const std::string &prefix) const
 
bool hasMeshProperty (const std::string &data_name) const
 
bool hasMeshProperty (const std::string &data_name) const
 
std::string meshPropertyName (const std::string &data_name) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level) const
 
PerfID registerTimedSection (const std::string &section_name, const unsigned int level, const std::string &live_message, const bool print_dots=true) const
 
std::string timedSectionName (const std::string &section_name) const
 
bool isCoupledScalar (const std::string &var_name, unsigned int i=0) const
 
unsigned int coupledScalarComponents (const std::string &var_name) const
 
unsigned int coupledScalar (const std::string &var_name, unsigned int comp=0) const
 
libMesh::Order coupledScalarOrder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< is_ad > & coupledGenericScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericScalarValue (const std::string &var_name, const unsigned int comp) const
 
const VariableValue & coupledVectorTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
const VariableValue & coupledMatrixTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagScalarValueByName (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledVectorTagScalarValue (const std::string &var_name, const std::string &tag_param_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::VariableValue kokkosCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
Moose::Kokkos::Scalar< const Real > kokkosCoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalar * getScalarVar (const std::string &var_name, unsigned int comp) const
 
const std::set< SubdomainID > & getHigherDimSubdomainIDs () const
 
const std::set< BoundaryID > & getBoundaryIDs () const
 
const AutomaticMortarGeneration & amg () const
 
bool interpolateNormals () const
 
virtual void checkMaterialProperty (const std::string &name, const unsigned int state)
 
virtual void getKokkosMaterialPropertyHook (const std::string &, const unsigned int)
 
void markMatPropRequested (const std::string &)
 
MaterialPropertyName getMaterialPropertyName (const std::string &name) const
 
void checkExecutionStage ()
 
virtual void coupledCallback (const std::string &, bool) const
 
virtual bool isCoupled (const std::string &var_name, unsigned int i=0) const
 
virtual bool isCoupledConstant (const std::string &var_name) const
 
unsigned int coupledComponents (const std::string &var_name) const
 
VariableName coupledName (const std::string &var_name, unsigned int comp=0) const
 
std::vector< VariableName > coupledNames (const std::string &var_name) const
 
virtual unsigned int coupled (const std::string &var_name, unsigned int comp=0) const
 
std::vector< unsigned int > coupledIndices (const std::string &var_name) const
 
virtual const VariableValue & coupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValues (const std::string &var_name) const
 
std::vector< const VectorVariableValue * > coupledVectorValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< is_ad > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVectorVariableValue< false > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
const GenericVectorVariableValue< true > & coupledGenericVectorValue (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableValue< is_ad > * > coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< false > * > coupledGenericValues (const std::string &var_name) const
 
std::vector< const GenericVariableValue< true > * > coupledGenericValues (const std::string &var_name) const
 
const GenericVariableValue< is_ad > & coupledGenericDofValue (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDofValue (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< is_ad > & coupledGenericDotDot (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableValue< false > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
const GenericVariableValue< true > & coupledGenericDotDot (const std::string &var_name, unsigned int comp) const
 
virtual const VariableValue & coupledValueLower (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledValues (const std::string &var_name) const
 
const ADVariableValue & adCoupledLowerValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValue & adCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVectorVariableValue * > adCoupledVectorValues (const std::string &var_name) const
 
virtual const VariableValue & coupledVectorTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValue & coupledVectorTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue * > coupledVectorTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledVectorTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableValue & coupledVectorTagArrayValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableValue & coupledVectorTagArrayValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableValue * > coupledVectorTagArrayValues (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableValue * > coupledVectorTagArrayValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableGradient & coupledVectorTagGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableGradient & coupledVectorTagGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableGradient * > coupledVectorTagGradients (const std::string &var_names, TagID tag) const
 
std::vector< const VariableGradient * > coupledVectorTagGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const ArrayVariableGradient & coupledVectorTagArrayGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableGradient & coupledVectorTagArrayGradient (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const ArrayVariableGradient * > coupledVectorTagArrayGradients (const std::string &var_names, TagID tag) const
 
std::vector< const ArrayVariableGradient * > coupledVectorTagArrayGradients (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValue & coupledVectorTagDofValue (const std::string &var_name, TagID tag, unsigned int index=0) const
 
virtual const VariableValue & coupledVectorTagDofValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const ArrayVariableValue & coupledVectorTagArrayDofValue (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledVectorTagDofValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledVectorTagDofValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VariableValue & coupledMatrixTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValue & coupledMatrixTagValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
std::vector< const VariableValue * > coupledMatrixTagValues (const std::string &var_names, TagID tag) const
 
std::vector< const VariableValue * > coupledMatrixTagValues (const std::string &var_names, const std::string &tag_name) const
 
virtual const VectorVariableValue & coupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ArrayVariableValue * > coupledArrayValues (const std::string &var_name) const
 
MooseWritableVariable & writableVariable (const std::string &var_name, unsigned int comp=0)
 
virtual VariableValue & writableCoupledValue (const std::string &var_name, unsigned int comp=0)
 
void checkWritableVar (MooseWritableVariable *var)
 
virtual const VariableValue & coupledValueOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValuesOld (const std::string &var_name) const
 
std::vector< const VectorVariableValue * > coupledVectorValuesOld (const std::string &var_name) const
 
virtual const VariableValue & coupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValuesOlder (const std::string &var_name) const
 
virtual const VariableValue & coupledValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledGradient (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradients (const std::string &var_name) const
 
const ADVariableGradient & adCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableGradient & adCoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableGradient * > adCoupledGradients (const std::string &var_name) const
 
const GenericVariableGradient< is_ad > & coupledGenericGradient (const std::string &var_name, unsigned int comp=0) const
 
const GenericVariableGradient< false > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
const GenericVariableGradient< true > & coupledGenericGradient (const std::string &var_name, unsigned int comp) const
 
std::vector< const GenericVariableGradient< is_ad > * > coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< false > * > coupledGenericGradients (const std::string &var_name) const
 
std::vector< const GenericVariableGradient< true > * > coupledGenericGradients (const std::string &var_name) const
 
const ADVectorVariableGradient & adCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableSecond & adCoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableSecond & adCoupledVectorSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradientsOld (const std::string &var_name) const
 
virtual const VariableGradient & coupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledGradientPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradient & coupledGradientDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradient & coupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradient & coupledArrayGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurl & coupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurl & coupledCurlOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurl & coupledCurlOlder (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableCurl & adCoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergence & coupledDiv (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergence & coupledDivOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergence & coupledDivOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecond & coupledSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecond & coupledSecondOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecond & coupledSecondOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecond & coupledSecondPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledDots (const std::string &var_name) const
 
virtual const VariableValue & coupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledDots (const std::string &var_name) const
 
const ADVariableValue & adCoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValue & adCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValue & coupledVectorDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledVectorDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledVectorDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValue & coupledArrayDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValue & coupledArrayDotDu (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const Moose::ADType< T >::type & adCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
const T & coupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNodalDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNodalDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledNodalDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValue & coupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValues (const std::string &var_name) const
 
virtual const VariableValue & coupledDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOld (const std::string &var_name) const
 
virtual const VariableValue & coupledDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOlder (const std::string &var_name) const
 
virtual const ArrayVariableValue & coupledArrayDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValue & adCoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValue & adZeroValue () const
 
const ADVariableGradient & adZeroGradient () const
 
const ADVariableSecond & adZeroSecond () const
 
const GenericVariableValue< is_ad > & genericZeroValue ()
 
const GenericVariableValue< false > & genericZeroValue ()
 
const GenericVariableValue< true > & genericZeroValue ()
 
const GenericVariableGradient< is_ad > & genericZeroGradient ()
 
const GenericVariableGradient< false > & genericZeroGradient ()
 
const GenericVariableGradient< true > & genericZeroGradient ()
 
const GenericVariableSecond< is_ad > & genericZeroSecond ()
 
const GenericVariableSecond< false > & genericZeroSecond ()
 
const GenericVariableSecond< true > & genericZeroSecond ()
 
bool checkVar (const std::string &var_name, unsigned int comp=0, unsigned int comp_bound=0) const
 
const MooseVariableFieldBase * getFEVar (const std::string &var_name, unsigned int comp) const
 
const MooseVariableFieldBase * getFieldVar (const std::string &var_name, unsigned int comp) const
 
MooseVariableFieldBase * getFieldVar (const std::string &var_name, unsigned int comp)
 
std::vector< const MooseVariableFieldBase * > getFieldVars (const std::string &var_name) const
 
const T * getVarHelper (const std::string &var_name, unsigned int comp) const
 
T * getVarHelper (const std::string &var_name, unsigned int comp)
 
std::vector< const T * > getVarsHelper (const std::string &var_name) const
 
MooseVariable * getVar (const std::string &var_name, unsigned int comp)
 
const MooseVariable * getVar (const std::string &var_name, unsigned int comp) const
 
VectorMooseVariable * getVectorVar (const std::string &var_name, unsigned int comp)
 
const VectorMooseVariable * getVectorVar (const std::string &var_name, unsigned int comp) const
 
ArrayMooseVariable * getArrayVar (const std::string &var_name, unsigned int comp)
 
const ArrayMooseVariable * getArrayVar (const std::string &var_name, unsigned int comp) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
std::vector< T > coupledVectorHelper (const std::string &var_name, const Func &func) const
 
const T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, const std::size_t time_index=0)
 
const T & getReporterValue (const std::string &param_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, const std::size_t time_index=0)
 
const T & getReporterValueByName (const ReporterName &reporter_name, ReporterMode mode, const std::size_t time_index=0)
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValue (const std::string &param_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
bool hasReporterValueByName (const ReporterName &reporter_name) const
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const GenericMaterialProperty< T, is_ad > * defaultGenericMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const MaterialProperty< T > * defaultMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 
const ADMaterialProperty< T > * defaultADMaterialProperty (const std::string &name)
 

Static Protected Member Functions

static std::string meshPropertyName (const std::string &data_name, const std::string &prefix)
 
static void trimDerivative (dof_id_type remove_derivative_index, ADReal &dual_number)
 
static void trimInteriorNodeDerivatives (const std::map< unsigned int, unsigned int > &primary_ip_lowerd_map, const Variables &moose_var, DualNumbers &ad_vars, const bool is_secondary)
 

Protected Attributes

const MooseVariableFE< Real > *const _lm_var
 The Lagrange multiplier variable representing the contact pressure.
 
const bool _use_petrov_galerkin
 Whether to use Petrov-Galerkin approach.
 
const MooseVariable *const _aux_lm_var
 The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach)
 
const bool _use_nodal_scaling
 Whether to apply the Popp et al.
 
std::unordered_map< const DofObject *, Real > _dof_to_covered_fraction_sum
 Per-node numerator of kappa_j (Popp 2013 eq.
 
std::unordered_map< const DofObject *, Real > _dof_to_nodal_scale
 A map from node to its node-based scaling factor kappa_j (see nodalScale())
 
std::unordered_map< dof_id_type, std::vector< Real > > _elem_to_full_nodal_integral
 Cache of the per-node full integrals int_e N_j (see fullNodalIntegrals()), keyed by element id; cleared each evaluation since the displaced geometry changes.
 
std::unordered_map< const DofObject *, Real > _dof_to_full_normalization
 Per-node sum, over each distinct adjacent secondary element, of the full-element integral int_e N_j (see fullNodalIntegrals()); the coverage-independent divisor for normalize_c when node-based scaling is active (see normalizeCDivisor()), reduces exactly to the covered-region normalization (WeightedGapUserObject::computeQpIProperties()) at full coverage, since int_e Phi_j = int_e N_j for the dual basis by construction.
 
std::unordered_map< const DofObject *, std::unordered_set< dof_id_type > > _full_normalization_elems
 Elements already folded into _dof_to_full_normalization for a given node, to avoid double counting when multiple mortar segments cover the same element.
 
std::unique_ptr< libMesh::FEBase > _nodal_scaling_fe
 Finite element and quadrature rule used to evaluate fullNodalIntegrals()
 
std::unique_ptr< libMesh::QGauss > _nodal_scaling_qrule
 
FEProblemBase & _fe_problem
 The base finite element problem.
 
ADReal _qp_gap
 The value of the gap at the current quadrature point.
 
Real _qp_factor
 The value of the LM at the current quadrature point.
 
const bool _nodal
 Whether the dof objects are nodal; if they're not, then they're elemental.
 
const MooseVariable *const _disp_x_var
 The x displacement variable.
 
const MooseVariable *const _disp_y_var
 The y displacement variable.
 
const bool _has_disp_z
 For 2D mortar contact no displacement will be specified, so const pointers used.
 
const MooseVariable *const _disp_z_var
 The z displacement variable.
 
const ADVariableValue & _secondary_disp_x
 x-displacement on the secondary face
 
const ADVariableValue & _primary_disp_x
 x-displacement on the primary face
 
const ADVariableValue & _secondary_disp_y
 y-displacement on the secondary face
 
const ADVariableValue & _primary_disp_y
 y-displacement on the primary face
 
const ADVariableValue *const _secondary_disp_z
 z-displacement on the secondary face
 
const ADVariableValue *const _primary_disp_z
 z-displacement on the primary face
 
const MooseArray< Real > & _coord
 Member for handling change of coordinate systems (xyz, rz, spherical)
 
ADRealVectorValue _qp_gap_nodal
 Vector for computation of weighted gap with nodal normals.
 
ADRealVectorValue _qp_displacement_nodal
 Vector for computation of relative displacement (determines mixity ratio in interface problems)
 
std::unordered_map< const DofObject *, std::pair< ADReal, Real > > _dof_to_weighted_gap
 A map from node to weighted gap and normalization (if requested)
 
std::unordered_map< const DofObject *, ADRealVectorValue > _dof_to_weighted_displacements
 A map from node to weighted displacements.
 
const ADReal * _weighted_gap_ptr = nullptr
 A pointer members that can be used to help avoid copying ADReals.
 
const Real * _normalization_ptr = nullptr
 
const VariableTestValue * _test = nullptr
 A pointer to the test function associated with the weighted gap.
 
std::unordered_map< const Node *, ADRealVectorValue > _ad_nodal_normals
 AD nodal normals, each averaged over the secondary faces containing that node.
 
bool _is_weighted_gap_nodal = true
 Whether the weighted gap is associated with nodes or elements (like for a CONSTANT MONOMIAL Lagrange multiplier).
 
unsigned int _qp = 0
 Quadrature point index for the mortar segments.
 
unsigned int _i = 0
 Test function index.
 
const Moose::CoordinateSystemType & _coord_sys
 
const THREAD_ID _tid
 
SubProblem & _subproblem
 
SystemBase & _sys
 
Assembly & _assembly
 
const bool _duplicate_initial_execution
 
std::set< std::string > _depend_uo
 
const bool & _enabled
 
MooseApp & _app
 
Factory & _factory
 
ActionFactory & _action_factory
 
const std::string & _type
 
const std::string & _name
 
const InputParameters & _pars
 
const ExecFlagEnum & _execute_enum
 
const ExecFlagType & _current_execute_flag
 
MooseApp & _restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase & _mci_feproblem
 
FEProblemBase & _mdi_feproblem
 
MooseApp & _pg_moose_app
 
const std::string _prefix
 
FEProblemBase & _sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real & _real_zero
 
const VariableValue & _scalar_zero
 
const Point & _point_zero
 
FEProblemBase & _mci_fe_problem
 
SubProblem & _mci_subproblem
 
const THREAD_ID _mci_tid
 
MooseMesh & _mci_mesh
 
Assembly & _mci_assembly
 
const MortarInterfaceWarehouse & _mortar_data
 
const BoundaryID _secondary_id
 
const BoundaryID _primary_id
 
const SubdomainID _secondary_subdomain_id
 
const SubdomainID _primary_subdomain_id
 
std::set< BoundaryID > _secondary_set
 
std::set< BoundaryID > _boundary_ids
 
std::set< SubdomainID > _higher_dim_subdomain_ids
 
const bool _interpolate_normals
 
const MooseArray< Point > & _phys_points_secondary
 
const MooseArray< Point > & _phys_points_primary
 
const libMesh::QBase *const & _qrule_msm
 
const libMesh::QBase *const & _qrule_face
 
Elem const *const & _lower_secondary_elem
 
Elem const *const & _lower_primary_elem
 
const std::vector< Real > & _JxW_msm
 
const Elem *const & _msm_elem
 
std::vector< Point > _normals
 
MaterialData & _neighbor_material_data
 
const InputParameters & _mi_params
 
const std::string _mi_name
 
const MooseObjectName _mi_moose_object_name
 
FEProblemBase & _mi_feproblem
 
SubProblem & _mi_subproblem
 
const THREAD_ID _mi_tid
 
const bool _is_kokkos_object
 
const Moose::MaterialDataType _material_data_type
 
MaterialData & _material_data
 
bool _stateful_allowed
 
bool _get_material_property_called
 
std::vector< std::unique_ptr< PropertyValue > > _default_properties
 
std::unordered_set< unsigned int > _material_property_dependencies
 
const MaterialPropertyName _get_suffix
 
const bool _use_interpolated_state
 
bool _neighbor_nodal
 
const InputParameters & _c_parameters
 
const std::string & _c_name
 
const std::string & _c_type
 
FEProblemBase & _c_fe_problem
 
const SystemBase *const _c_sys
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > _coupled_vars
 
std::vector< MooseVariableFieldBase * > _coupled_moose_vars
 
std::vector< MooseVariable * > _coupled_standard_moose_vars
 
std::vector< VectorMooseVariable * > _coupled_vector_moose_vars
 
std::vector< ArrayMooseVariable * > _coupled_array_moose_vars
 
std::vector< MooseVariableField< Real > * > _coupled_fv_moose_vars
 
const std::unordered_map< std::string, std::string > & _new_to_deprecated_coupled_vars
 
bool _c_nodal
 
bool _c_is_implicit
 
const bool _c_allow_element_to_nodal_coupling
 
THREAD_ID _c_tid
 
std::unordered_map< std::string, std::vector< std::unique_ptr< VariableValue > > > _default_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADReal > > > _ad_default_value
 
std::unordered_map< std::string, std::unique_ptr< VectorVariableValue > > _default_vector_value
 
std::unordered_map< std::string, std::unique_ptr< ArrayVariableValue > > _default_array_value
 
std::unordered_map< std::string, std::unique_ptr< MooseArray< ADRealVectorValue > > > _ad_default_vector_value
 
VariableValue _default_value_zero
 
VariableGradient _default_gradient
 
MooseArray< ADRealVectorValue > _ad_default_gradient
 
MooseArray< ADRealTensorValue > _ad_default_vector_gradient
 
VariableSecond _default_second
 
MooseArray< ADRealTensorValue > _ad_default_second
 
MooseArray< ADRealVectorValue > _ad_default_curl
 
const VariableValue & _zero
 
const VariablePhiValue & _phi_zero
 
const MooseArray< ADReal > & _ad_zero
 
const VariableGradient & _grad_zero
 
const MooseArray< ADRealVectorValue > & _ad_grad_zero
 
const VariablePhiGradient & _grad_phi_zero
 
const VariableSecond & _second_zero
 
const MooseArray< ADRealTensorValue > & _ad_second_zero
 
const VariablePhiSecond & _second_phi_zero
 
const VectorVariableValue & _vector_zero
 
const VectorVariableCurl & _vector_curl_zero
 
VectorVariableValue _default_vector_value_zero
 
VectorVariableGradient _default_vector_gradient
 
VectorVariableCurl _default_vector_curl
 
VectorVariableDivergence _default_div
 
ArrayVariableValue _default_array_value_zero
 
ArrayVariableGradient _default_array_gradient
 
bool _coupleable_neighbor
 
const Parallel::Communicator & _communicator
 

Static Protected Attributes

static const std::string _interpolated_old
 
static const std::string _interpolated_older
 

Private Types

enum  FuncAge
 
enum  VarType
 

Private Member Functions

const ADVariableValue * getADDefaultValue (const std::string &var_name) const
 
void checkVar (const std::string &var_name) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
const Moose::FunctionBase * getKokkosFunctionByNameHelper (const FunctionName &name) const
 
const UserObjectBase & getUserObjectFromFEProblem (const UserObjectName &object_name, const THREAD_ID tid=0) const
 
const T & castUserObject (const UserObjectBase &uo_base, const std::string &param_name="") const
 
void mooseObjectError (const std::string &param_name, std::stringstream &oss) const
 
const std::string & userObjectType (const UserObjectBase &uo) const
 
const std::string & userObjectName (const UserObjectBase &uo) const
 
const PostprocessorName & getPostprocessorNameInternal (const std::string &param_name, const unsigned int index, const bool allow_default_value=true) const
 
bool isDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
PostprocessorValue getDefaultPostprocessorValueByName (const PostprocessorName &name) const
 
void checkParam (const std::string &param_name, const unsigned int index=std::numeric_limits< unsigned int >::max()) const
 
bool postprocessorsAdded () const
 
const VectorPostprocessorValue & getVectorPostprocessorByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name, bool broadcast, std::size_t t_index) const
 
const VectorPostprocessorContext< VectorPostprocessorValue > & getVectorPostprocessorContextByNameHelper (const VectorPostprocessorName &name, const std::string &vector_name) const
 
bool vectorPostprocessorsAdded () const
 
bool reportersAdded () const
 
void possiblyCheckHasReporter (const ReporterName &reporter_name, const std::string &param_name="") const
 
RestartableDataValue & registerRestartableDataOnApp (std::unique_ptr< RestartableDataValue > data, THREAD_ID tid) const
 
void registerRestartableNameWithFilterOnApp (const std::string &name, Moose::RESTARTABLE_FILTER filter)
 
RestartableData< T > & declareRestartableDataHelper (const std::string &data_name, void *context, Args &&... args) const
 
virtual std::string meshPropertyPrefix (const std::string &data_name) const
 
const RestartableDataValue & getMeshPropertyInternal (const std::string &data_name, const std::string &prefix) const
 
void mooseErrorInternal (Args &&... args) const
 
const VariableValue * getDefaultValue (const std::string &var_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagScalarVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
void setNormals ()
 
Moose::MaterialDataType getMaterialDataType (const std::set< BoundaryID > &boundary_ids) const
 
unsigned int getMaxQps () const
 
void addConsumedPropertyName (const MooseObjectName &obj_name, const std::string &prop_name)
 
const OutputTools< T >::VariableValue & vectorTagValueHelper (const std::string &var_names, TagID tag, unsigned int index=0) const
 
const OutputTools< T >::VariableValue & vectorTagValueHelper (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const OutputTools< T >::VariableValue & vectorTagDofValueHelper (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const OutputTools< T >::VariableValue & vectorTagDofValueHelper (const std::string &var_name, const std::string &tag_name, unsigned int comp=0) const
 
void requestStates (const std::string &var_name, const TagName &tag_name, const unsigned int comp)
 
void checkFuncType (const std::string var_name, VarType t, FuncAge age) const
 
const VectorVariableValue * getDefaultVectorValue (const std::string &var_name) const
 
const ArrayVariableValue * getDefaultArrayValue (const std::string &var_name) const
 
const T & getDefaultNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const RealVectorValue & getDefaultNodalValue (const std::string &var_name, unsigned int) const
 
const RealEigenVector & getDefaultNodalValue (const std::string &var_name, unsigned int) const
 
const Moose::Functor< T > & getDefaultFunctor (const std::string &var_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVariables (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVectorVariable (const std::string &var_name, const std::string &tag_name, unsigned int comp) const
 
Moose::Kokkos::Variable kokkosCoupledVectorTagVectorVariables (const std::string &var_name, const std::string &tag_name) const
 
Moose::Kokkos::Variable kokkosZeroVariable () const
 
const PostprocessorValue & getPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
const PostprocessorValue & getPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessor (const std::string &param_name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
void possiblyCheckHasVectorPostprocessorByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 

Static Private Member Functions

static const hit::Node * getHitNode (const InputParameters &params)
 
static std::string messagePrefix (const InputParameters &params, const bool hit_prefix)
 

Private Attributes

std::unordered_map< std::string, std::unique_ptr< VariableValue > > _default_value
 
UserObject * _primary_thread_copy
 
std::set< std::string > _supplied_uo
 
const ParallelParamObject & _parent
 
const MooseBase & _si_moose_base
 
const FEProblemBase * _si_problem
 
ExecFlagEnum _empty_execute_enum
 
const MooseObject & _fni_object
 
const InputParameters & _fni_params
 
FEProblemBase & _fni_feproblem
 
const THREAD_ID _fni_tid
 
const MooseObject & _uoi_moose_object
 
const FEProblemBase & _uoi_feproblem
 
const THREAD_ID _uoi_tid
 
const MooseObject & _ppi_moose_object
 
const InputParameters & _ppi_params
 
const FEProblemBase & _ppi_feproblem
 
std::map< PostprocessorName, std::unique_ptr< PostprocessorValue > > _default_values
 
const bool _broadcast_by_default
 
const MooseObject & _vpi_moose_object
 
const FEProblemBase & _vpi_feproblem
 
const THREAD_ID _vpi_tid
 
const InputParameters & _ri_params
 
FEProblemBase & _ri_fe_problem_base
 
const ReporterData & _ri_reporter_data
 
const MooseObject & _ri_moose_object
 
const InputParameters & _dni_params
 
FEProblemBase & _dni_feproblem
 
const MooseObject *const _dni_moose_object_ptr
 
const InputParameters & _si_params
 
FEProblemBase & _si_feproblem
 
THREAD_ID _si_tid
 
const RestartableDataMapName _metaname
 
std::string _restartable_name
 
MooseApp & _meta_data_app
 
const MooseObject *const _meta_data_object
 
const InputParameters & _sc_parameters
 
const std::string & _sc_name
 
const bool _sc_is_implicit
 
std::unordered_map< std::string, std::vector< MooseVariableScalar * > > _coupled_scalar_vars
 
std::unordered_map< std::string, std::unique_ptr< ADVariableValue > > _dual_default_value
 
std::vector< MooseVariableScalar * > _coupled_moose_scalar_vars
 
std::unordered_map< std::string, std::vector< MooseVariableFieldBase * > > _sc_coupled_vars
 
std::set< TagID > _sc_coupleable_vector_tags
 
std::set< TagID > _sc_coupleable_matrix_tags
 
const AutomaticMortarGeneration * _amg
 
const MooseObject & _mi_moose_object
 
const bool _mi_boundary_restricted
 
const std::set< SubdomainID > & _mi_block_ids
 
const std::set< BoundaryID > & _mi_boundary_ids
 
std::vector< std::unique_ptr< OptionalMaterialPropertyProxyBase< MaterialPropertyInterface > > > _optional_property_proxies
 
unsigned int _coupleable_max_qps
 
std::unordered_map< std::string, std::vector< unsigned int > > _optional_var_index
 
std::unordered_map< std::string, std::vector< MooseVariableScalar * > > _c_coupled_scalar_vars
 
std::set< TagID > _fe_coupleable_vector_tags
 
std::set< TagID > _fe_coupleable_matrix_tags
 
const bool _is_fv
 
const MooseObject *const _obj
 
const std::set< std::string > _older_state_tags
 
std::vector< std::set< MooseWritableVariable * > > _writable_coupled_variables
 
const Real _kokkos_default_value_zero
 

Detailed Description

User object for computing weighted gaps and contact pressure for Lagrange multipler based mortar constraints.

Definition at line 29 of file LMWeightedGapUserObject.h.

Constructor & Destructor Documentation

◆ LMWeightedGapUserObject()

LMWeightedGapUserObject::LMWeightedGapUserObject ( const InputParameters &  parameters)

Definition at line 52 of file LMWeightedGapUserObject.C.

54 _lm_var(getVar("lm_variable", 0)),
55 _use_petrov_galerkin(getParam<bool>("use_petrov_galerkin")),
56 _aux_lm_var(isCoupled("aux_lm") ? getVar("aux_lm", 0) : nullptr),
57 _use_nodal_scaling(getParam<bool>("use_nodal_scaling"))
58{
59 checkInput(_lm_var, "lm_variable");
60 verifyLagrange(*_lm_var, "lm_variable");
61
62 if (_use_petrov_galerkin && ((!isParamValid("aux_lm")) || _aux_lm_var == nullptr))
63 paramError("use_petrov_galerkin",
64 "We need to specify an auxiliary variable `aux_lm` while using the Petrov-Galerkin "
65 "approach");
66
68 paramError("aux_lm",
69 "Auxiliary LM variable needs to use standard shape function, i.e., set `use_dual = "
70 "false`.");
71
73 {
74 // kappa_j's denominator int_e N_j is zero at TRI6 and TET10 vertices and negative at QUAD8 and
75 // HEX20 corners, and its numerator has to be integrated with the same basis, so every variable
76 // entering kappa_j has to be first order.
77 if (_lm_var->feType().order != FIRST || _disp_x_var->feType().order != FIRST ||
79 paramError("use_nodal_scaling",
80 "Node-based scaling is only implemented for first-order Lagrange multiplier and "
81 "displacement variables.");
82
83 // Scaling rescales the partially covered multiplier DOFs that the default treatment zeroes.
84 if (!getParam<bool>("correct_edge_dropping"))
85 paramError("use_nodal_scaling",
86 "Node-based scaling requires 'correct_edge_dropping = true'.");
87
88 // This FE object is shared by all fullNodalIntegrals() evaluations.
89 const FEType fe_type(FIRST, LAGRANGE);
90 const auto lower_dim = _subproblem.mesh().dimension() - 1;
91 _nodal_scaling_fe = FEBase::build(lower_dim, fe_type);
92 _nodal_scaling_qrule = std::make_unique<QGauss>(lower_dim, fe_type.default_quadrature_order());
93 _nodal_scaling_fe->attach_quadrature_rule(_nodal_scaling_qrule.get());
94 }
95}
MooseVariable * getVar(const std::string &var_name, unsigned int comp)
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
const bool _use_nodal_scaling
Whether to apply the Popp et al.
const MooseVariable *const _aux_lm_var
The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach)
std::unique_ptr< libMesh::FEBase > _nodal_scaling_fe
Finite element and quadrature rule used to evaluate fullNodalIntegrals()
const bool _use_petrov_galerkin
Whether to use Petrov-Galerkin approach.
void verifyLagrange(const MooseVariable &var, const std::string &var_name) const
Verify that the provided variables have degrees of freedom at nodes.
void checkInput(const MooseVariable *const var, const std::string &var_name) const
Check user input validity for provided variable.
std::unique_ptr< libMesh::QGauss > _nodal_scaling_qrule
const MooseVariableFE< Real > *const _lm_var
The Lagrange multiplier variable representing the contact pressure.
const InputParameters & parameters() const
void paramError(const std::string &param, Args... args) const
const T & getParam(const std::string &name) const
bool isParamValid(const std::string &name) const
virtual unsigned int dimension() const
const libMesh::FEType & feType() const
bool useDual() const
virtual MooseMesh & mesh()=0
SubProblem & _subproblem
Creates dof object to weighted gap map.
const MooseVariable *const _disp_x_var
The x displacement variable.
OrderWrapper order

Member Function Documentation

◆ addNodalNormalCoupling()

void WeightedGapUserObject::addNodalNormalCoupling ( InputParameters &  params)
staticinherited

Request the secondary face point-neighbor matrix coupling that nodal-normal derivatives need.

MortarConsumerInterface supplies the geometric and algebraic relationship manager; this adds the coupling relationship manager, which is attached through a separate system lifecycle.

Definition at line 40 of file WeightedGapUserObject.C.

41{
42 params.set<bool>("ghost_point_neighbors") = true;
43 const auto configure_point_neighbors =
44 [](const InputParameters & obj_params, InputParameters & rm_params)
45 {
46 rm_params.set<bool>("use_displaced_mesh") = obj_params.get<bool>("use_displaced_mesh");
47 rm_params.set<BoundaryName>("secondary_boundary") =
48 obj_params.get<BoundaryName>("secondary_boundary");
49 rm_params.set<BoundaryName>("primary_boundary") =
50 obj_params.get<BoundaryName>("primary_boundary");
51 rm_params.set<SubdomainName>("secondary_subdomain") =
52 obj_params.get<SubdomainName>("secondary_subdomain");
53 rm_params.set<SubdomainName>("primary_subdomain") =
54 obj_params.get<SubdomainName>("primary_subdomain");
55 // Objects that disable ghost_point_neighbors do not include nodal-normal derivatives.
56 rm_params.set<bool>("ghost_point_neighbors") = obj_params.get<bool>("ghost_point_neighbors");
57 };
58 params.addRelationshipManager("AugmentSparsityOnInterface",
59 Moose::RelationshipManagerType::COUPLING,
60 configure_point_neighbors);
61}
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
void addRelationshipManager(const std::string &name, Moose::RelationshipManagerType rm_type, Moose::RelationshipManagerInputParameterCallback input_parameter_callback=nullptr)
T & set(const std::string &name, bool quiet_mode=false)

Referenced by validParams(), LMWeightedVelocitiesUserObject::validParams(), and PenaltyWeightedGapUserObject::validParams().

◆ adPhysicalGap()

ADReal WeightedGapUserObject::adPhysicalGap ( const std::pair< ADReal, Real > &  gap) const
inlineinherited

Definition at line 128 of file WeightedGapUserObject.h.

128{ return gap.first / gap.second; }

Referenced by PenaltyWeightedGapUserObject::selfFinalize().

◆ checkInput()

void LMWeightedGapUserObject::checkInput ( const MooseVariable *const  var,
const std::string &  var_name 
) const
protected

Check user input validity for provided variable.

Definition at line 98 of file LMWeightedGapUserObject.C.

100{
101 if (isCoupledConstant(var_param_name))
102 paramError(var_param_name,
103 "The Lagrange multiplier variable must be an actual variable and not a constant.");
104 else if (!var)
105 paramError(var_param_name,
106 "The Lagrange multiplier variables must be provided and be actual variables.");
107}
virtual bool isCoupledConstant(const std::string &var_name) const

Referenced by LMWeightedGapUserObject(), and LMWeightedVelocitiesUserObject::LMWeightedVelocitiesUserObject().

◆ computeQpINodalScaling()

void LMWeightedGapUserObject::computeQpINodalScaling ( )
protected

Definition at line 191 of file LMWeightedGapUserObject.C.

192{
194 return;
195
196 const auto * const dof = static_cast<const DofObject *>(_lower_secondary_elem->node_ptr(_i));
197
198 // Numerator of kappa_j (Popp 2013 eq. 36): covered fraction (int_{e_int} N_j)/(int_e N_j) summed
199 // over adjacent elements. Both use the standard N_j (fePhiLower), not the dual test, so kappa_j
200 // is 1 at full coverage in every coordinate system.
201 const auto & std_phi = _assembly.fePhiLower<Real>(_disp_x_var->feType());
202 const auto & full_integrals = fullNodalIntegrals(_lower_secondary_elem);
203 _dof_to_covered_fraction_sum[dof] += std_phi[_i][_qp] * _qp_factor / full_integrals[_i];
204
205 // Coverage-independent divisor for `normalize_c` (see normalizeCDivisor()): sum the full-element
206 // integral int_e N_j once per distinct adjacent element, not once per quadrature point, since it
207 // does not depend on qp and multiple mortar segments may cover the same element.
208 if (_full_normalization_elems[dof].insert(_lower_secondary_elem->id()).second)
209 _dof_to_full_normalization[dof] += full_integrals[_i];
210}
const OutputTools< OutputType >::VariablePhiValue & fePhiLower(FEType type) const
const std::vector< Real > & fullNodalIntegrals(const Elem *elem)
Full coordinate-weighted integral int_e N_j per local node on the secondary lower-dimensional element...
std::unordered_map< const DofObject *, std::unordered_set< dof_id_type > > _full_normalization_elems
Elements already folded into _dof_to_full_normalization for a given node, to avoid double counting wh...
std::unordered_map< const DofObject *, Real > _dof_to_full_normalization
Per-node sum, over each distinct adjacent secondary element, of the full-element integral int_e N_j (...
std::unordered_map< const DofObject *, Real > _dof_to_covered_fraction_sum
Per-node numerator of kappa_j (Popp 2013 eq.
Elem const *const & _lower_secondary_elem
Assembly & _assembly
unsigned int _i
Test function index.
unsigned int _qp
Quadrature point index for the mortar segments.
Real _qp_factor
The value of the LM at the current quadrature point.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Referenced by computeQpIProperties(), and LMWeightedVelocitiesUserObject::computeQpIProperties().

◆ computeQpIProperties()

void LMWeightedGapUserObject::computeQpIProperties ( )
overrideprotectedvirtual

Computes properties that are functions both of _qp and _i, for example the weighted gap.

Reimplemented from WeightedGapUserObject.

Reimplemented in LMWeightedVelocitiesUserObject.

Definition at line 171 of file LMWeightedGapUserObject.C.

172{
175}
virtual void computeQpIProperties()
Computes properties that are functions both of _qp and _i, for example the weighted gap.

◆ computeQpProperties()

void WeightedGapUserObject::computeQpProperties ( )
protectedvirtualinherited

Computes properties that are functions only of the current quadrature point (_qp), e.g.

indepedent of shape functions

Reimplemented in BilinearMixedModeCohesiveZoneModel, CohesiveZoneModelBase, and WeightedVelocitiesUserObject.

Definition at line 148 of file WeightedGapUserObject.C.

149{
150 // Trim interior node variable derivatives
151 const auto & primary_ip_lowerd_map = amg().getPrimaryIpToLowerElementMap(
153 const auto & secondary_ip_lowerd_map =
155
156 std::array<const MooseVariable *, 3> var_array{{_disp_x_var, _disp_y_var, _disp_z_var}};
157 std::array<ADReal, 3> primary_disp{
158 {_primary_disp_x[_qp], _primary_disp_y[_qp], _has_disp_z ? (*_primary_disp_z)[_qp] : 0}};
159 std::array<ADReal, 3> secondary_disp{{_secondary_disp_x[_qp],
161 _has_disp_z ? (*_secondary_disp_z)[_qp] : 0}};
162
163 trimInteriorNodeDerivatives(primary_ip_lowerd_map, var_array, primary_disp, false);
164 trimInteriorNodeDerivatives(secondary_ip_lowerd_map, var_array, secondary_disp, true);
165
166 const ADReal & prim_x = primary_disp[0];
167 const ADReal & prim_y = primary_disp[1];
168 const ADReal * prim_z = nullptr;
169 if (_has_disp_z)
170 prim_z = &primary_disp[2];
171
172 const ADReal & sec_x = secondary_disp[0];
173 const ADReal & sec_y = secondary_disp[1];
174 const ADReal * sec_z = nullptr;
175 if (_has_disp_z)
176 sec_z = &secondary_disp[2];
177
178 // Compute gap vector
180
181 // Generic displacement for interface problems
182 _qp_displacement_nodal(0) = prim_x - sec_x;
183 _qp_displacement_nodal(1) = prim_y - sec_y;
184 if (_has_disp_z)
185 _qp_displacement_nodal(2) = *prim_z - *sec_z;
186
188
189 gap_vec(0).derivatives() = prim_x.derivatives() - sec_x.derivatives();
190 gap_vec(1).derivatives() = prim_y.derivatives() - sec_y.derivatives();
191 if (_has_disp_z)
192 gap_vec(2).derivatives() = prim_z->derivatives() - sec_z->derivatives();
193
194 // Compute integration point quantities: Normals (geometry) is averaged at the node, but not
195 // interpolated within the weak integration.
196 _qp_gap_nodal = gap_vec * (_JxW_msm[_qp] * _coord[_qp]);
197
198 // To do normalization of constraint coefficient (c_n)
200}
DualNumber< Real, DNDerivativeType, true > ADReal
std::map< unsigned int, unsigned int > getSecondaryIpToLowerElementMap(const Elem &lower_secondary_elem) const
std::map< unsigned int, unsigned int > getPrimaryIpToLowerElementMap(const Elem &primary_elem, const Elem &primary_elem_ip, const Elem &lower_secondary_elem) const
const AutomaticMortarGeneration & amg() const
Elem const *const & _lower_primary_elem
const MooseArray< Point > & _phys_points_secondary
const MooseArray< Point > & _phys_points_primary
static void trimInteriorNodeDerivatives(const std::map< unsigned int, unsigned int > &primary_ip_lowerd_map, const Variables &moose_var, DualNumbers &ad_vars, const bool is_secondary)
const std::vector< Real > & _JxW_msm
const ADVariableValue & _secondary_disp_x
x-displacement on the secondary face
const bool _has_disp_z
For 2D mortar contact no displacement will be specified, so const pointers used.
ADRealVectorValue _qp_gap_nodal
Vector for computation of weighted gap with nodal normals.
const ADVariableValue & _primary_disp_y
y-displacement on the primary face
const MooseArray< Real > & _coord
Member for handling change of coordinate systems (xyz, rz, spherical)
const ADVariableValue & _secondary_disp_y
y-displacement on the secondary face
const ADVariableValue & _primary_disp_x
x-displacement on the primary face
const MooseVariable *const _disp_y_var
The y displacement variable.
const MooseVariable *const _disp_z_var
The z displacement variable.
ADRealVectorValue _qp_displacement_nodal
Vector for computation of relative displacement (determines mixity ratio in interface problems)

Referenced by WeightedVelocitiesUserObject::computeQpProperties(), and WeightedGapUserObject::execute().

◆ constrainedByOwner()

virtual bool LMWeightedGapUserObject::constrainedByOwner ( ) const
inlineoverrideprotectedvirtual
Returns
Whether the gap constraint will be enforced solely by the owner of the weighted gap or will be enforced in a distributed way (like in a penalty method)

Implements WeightedGapUserObject.

Definition at line 68 of file LMWeightedGapUserObject.h.

68{ return true; }

◆ contactNormal()

const ADRealVectorValue & WeightedGapUserObject::contactNormal ( const Elem &  lower_secondary_elem,
unsigned int  nodal_index 
) const
inherited

Return the cached contact normal for the supplied lower-dimensional secondary element node.

The raw value is the stored normalized secondary nodal normal. Coordinate derivatives are included while this object's formulation and the current assembly mode require them.

Definition at line 222 of file WeightedGapUserObject.C.

224{
225 mooseAssert(nodal_index < lower_secondary_elem.n_nodes(),
226 "Nodal normal index must refer to a node on the secondary element.");
228 "AD contact normals should only be requested while recording nodal-normal "
229 "derivatives.");
230 const Node * const node = lower_secondary_elem.node_ptr(nodal_index);
231 const auto normal_it = _ad_nodal_normals.find(node);
232 if (normal_it != _ad_nodal_normals.end())
233 return normal_it->second;
234
235 amg().computeADNodalNormals([this](const Node & coordinate_node)
236 { return nodalCoordinate(coordinate_node); },
238 return libmesh_map_find(_ad_nodal_normals, node);
239}
void computeADNodalNormals(const std::function< ADPoint(const Node &)> &coordinate, std::unordered_map< const Node *, ADRealVectorValue > &nodal_normals) const
bool shouldRecordNodalNormalDerivatives() const
Whether the current assembly records nodal-normal derivatives for this object's system.
ADPoint nodalCoordinate(const Node &node) const
Add displacement derivatives to the node's current coordinate.
std::unordered_map< const Node *, ADRealVectorValue > _ad_nodal_normals
AD nodal normals, each averaged over the secondary faces containing that node.

Referenced by WeightedGapUserObject::computeQpIProperties(), WeightedVelocitiesUserObject::contactTangents(), and NormalMortarMechanicalContact::precomputeQpQuantities().

◆ contactPressure()

const ADVariableValue & LMWeightedGapUserObject::contactPressure ( ) const
overridevirtual
Returns
The contact force at quadrature points on the mortar segment

Implements WeightedGapUserObject.

Definition at line 149 of file LMWeightedGapUserObject.C.

150{
151 // Under node-based scaling, the stored multiplier is zhat_j = kappa_j*lambda_j.
152 // nodalContactPressure() and getNormalContactPressure() return the physical pressure lambda_j.
153 return _lm_var->adSlnLower();
154}
const ADTemplateVariableValue< OutputType > & adSlnLower() const

◆ dispVar()

const MooseVariable * WeightedGapUserObject::dispVar ( unsigned int  component) const
inherited
Parameters
componentThe displacement component index (0=x, 1=y, 2=z)
Returns
This object's displacement variable for that component, or nullptr if the problem is not three-dimensional and component is 2

Definition at line 103 of file WeightedGapUserObject.C.

104{
105 switch (component)
106 {
107 case 0:
108 return _disp_x_var;
109 case 1:
110 return _disp_y_var;
111 case 2:
112 return _disp_z_var;
113 default:
114 mooseError("Invalid displacement component '", component, "' requested.");
115 }
116}
void mooseError(Args &&... args) const

Referenced by ComputeFrictionalForceLMMechanicalContact::ComputeFrictionalForceLMMechanicalContact(), ComputeWeightedGapLMMechanicalContact::ComputeWeightedGapLMMechanicalContact(), NormalMortarMechanicalContact::initialSetup(), and TangentialMortarMechanicalContact::initialSetup().

◆ dofToWeightedGap()

const std::unordered_map< const DofObject *, std::pair< ADReal, Real > > & WeightedGapUserObject::dofToWeightedGap ( ) const
inlineinherited

Get the degree of freedom to weighted gap information.

Definition at line 277 of file WeightedGapUserObject.h.

278{
280}
std::unordered_map< const DofObject *, std::pair< ADReal, Real > > _dof_to_weighted_gap
A map from node to weighted gap and normalization (if requested)

Referenced by ComputeFrictionalForceLMMechanicalContact::incorrectEdgeDroppingPost(), ComputeWeightedGapLMMechanicalContact::incorrectEdgeDroppingPost(), ComputeFrictionalForceLMMechanicalContact::post(), and ComputeWeightedGapLMMechanicalContact::post().

◆ execute()

void WeightedGapUserObject::execute ( )
overridevirtualinherited

Implements MortarUserObject.

Definition at line 293 of file WeightedGapUserObject.C.

294{
295 for (_qp = 0; _qp < _qrule_msm->n_points(); _qp++)
296 {
298 for (_i = 0; _i < _test->size(); ++_i)
300 }
301}
const libMesh::QBase *const & _qrule_msm
virtual void computeQpProperties()
Computes properties that are functions only of the current quadrature point (_qp),...
const VariableTestValue * _test
A pointer to the test function associated with the weighted gap.
unsigned int n_points() const

◆ finalize()

void LMWeightedGapUserObject::finalize ( )
overridevirtual

Reimplemented from WeightedGapUserObject.

Reimplemented in LMWeightedVelocitiesUserObject.

Definition at line 164 of file LMWeightedGapUserObject.C.

◆ finalizeNodalScaling()

void LMWeightedGapUserObject::finalizeNodalScaling ( )
protected

Definition at line 213 of file LMWeightedGapUserObject.C.

214{
216 return;
217
218 // Reduce the processor-local numerators (the thread sums only rank-owned elements).
219 // send_data_back = true: non-owner ranks also need kappa_j for the primary-side coupling.
222 _nodal,
224 /*send_data_back=*/true);
225
226 // Same reduction for the normalize_c divisor sum; also needed on non-owner ranks.
229 _nodal,
231 /*send_data_back=*/true);
232
233 // Divide by n_j^e (adjacent-element count, including fully dropped neighbors) for the eq. 36
234 // mean; the fully ghosted mortar interface makes that count global on every process.
235 const auto & nodes_to_secondary_elem = amg().nodesToSecondaryElem();
236 for (const auto & [dof, fraction_sum] : _dof_to_covered_fraction_sum)
238 fraction_sum / libmesh_map_find(nodes_to_secondary_elem, dof->id()).size();
239}
const std::unordered_map< dof_id_type, std::vector< const Elem * > > & nodesToSecondaryElem() const
std::unordered_map< const DofObject *, Real > _dof_to_nodal_scale
A map from node to its node-based scaling factor kappa_j (see nodalScale())
const bool _nodal
Whether the dof objects are nodal; if they're not, then they're elemental.
const Parallel::Communicator & _communicator
void communicateRealObject(std::unordered_map< const DofObject *, T > &dof_to_adreal, const MooseMesh &mesh, const bool nodal, const Parallel::Communicator &communicator, const bool send_data_back)

Referenced by finalize(), and LMWeightedVelocitiesUserObject::finalize().

◆ findValue()

template<typename K , typename V >
V WeightedGapUserObject::findValue ( const std::unordered_map< K, V > &  map,
const K &  key,
const V &  default_value = 0 
) const
inlineprotectedinherited

Find a value in a map or return a default if the key doesn't exist.

Definition at line 191 of file WeightedGapUserObject.h.

192 {
193 const auto it = map.find(key);
194 if (it == map.end())
195 return default_value;
196 return it->second;
197 }

Referenced by PenaltyWeightedGapUserObject::nodalContactPressure(), nodalScale(), normalizeCDivisor(), CohesiveZoneModelBase::reinit(), PenaltyFrictionUserObject::reinit(), and PenaltyWeightedGapUserObject::selfFinalize().

◆ fullNodalIntegrals()

const std::vector< Real > & LMWeightedGapUserObject::fullNodalIntegrals ( const Elem *  elem)
protected

Full coordinate-weighted integral int_e N_j per local node on the secondary lower-dimensional element (exact in RZ and on warped elements), cached per element: the denominator of kappa_j (Popp 2013 eq.

36).

Parameters
elemThe secondary lower-dimensional element
Returns
Per-local-node full shape-function integrals

Definition at line 242 of file LMWeightedGapUserObject.C.

243{
244 const auto it = _elem_to_full_nodal_integral.find(elem->id());
245 if (it != _elem_to_full_nodal_integral.end())
246 return it->second;
247
248 // A separate finite element avoids reinit of the shared mortar-segment state.
249 const std::vector<Real> & JxW = _nodal_scaling_fe->get_JxW();
250 const std::vector<Point> & q_points = _nodal_scaling_fe->get_xyz();
251 const std::vector<std::vector<Real>> & phi = _nodal_scaling_fe->get_phi();
252 _nodal_scaling_fe->reinit(elem);
253
254 std::vector<Real> integrals(phi.size(), 0);
255 for (const auto qp : make_range(_nodal_scaling_qrule->n_points()))
256 {
257 Real coord;
258 coordTransformFactor(_subproblem, elem->subdomain_id(), q_points[qp], coord);
259 for (const auto j : index_range(integrals))
260 integrals[j] += phi[j][qp] * JxW[qp] * coord;
261 }
262
263 return _elem_to_full_nodal_integral.emplace(elem->id(), std::move(integrals)).first->second;
264}
void coordTransformFactor(const SubProblem &s, SubdomainID sub_id, const P &point, C &factor, SubdomainID neighbor_sub_id=libMesh::Elem::invalid_subdomain_id)
std::unordered_map< dof_id_type, std::vector< Real > > _elem_to_full_nodal_integral
Cache of the per-node full integrals int_e N_j (see fullNodalIntegrals()), keyed by element id; clear...
auto index_range(const T &sizable)
IntRange< T > make_range(T beg, T end)

Referenced by computeQpINodalScaling().

◆ getAccumulatedSlip()

virtual Real WeightedGapUserObject::getAccumulatedSlip ( const Node * const  ,
const unsigned int   
) const
inlinevirtualinherited
Parameters
nodeNode pointer
componentComponent of the local slip vector
Returns
The accumulated slip at the node

Reimplemented in PenaltyFrictionUserObject.

Definition at line 146 of file WeightedGapUserObject.h.

148 {
149 mooseError("Not available in base class.");
150 }

◆ getFrictionalContactPressure()

virtual Real WeightedGapUserObject::getFrictionalContactPressure ( const Node * const  ,
const unsigned int   
) const
inlinevirtualinherited
Parameters
nodeNode pointer
componentComponent of the frictional pressure vector
Returns
The frictional contact pressure at the node

Reimplemented in PenaltyFrictionUserObject.

Definition at line 135 of file WeightedGapUserObject.h.

137 {
138 mooseError("Not available in base class.");
139 }

◆ getNormalContactPressure()

Real LMWeightedGapUserObject::getNormalContactPressure ( const Node * const  ) const
overridevirtual
Parameters
nodeNode pointer
Returns
The normal contact pressure at the node

Implements WeightedGapUserObject.

Definition at line 291 of file LMWeightedGapUserObject.C.

292{
293 const auto sys_num = _lm_var->sys().number();
294 const auto var_num = _lm_var->number();
295 if (!node->n_dofs(sys_num, var_num))
296 mooseError("No degrees of freedom for the Lagrange multiplier at the node. If this is being "
297 "called from an aux kernel make sure that your aux variable has the same order as "
298 "your Lagrange multiplier");
299
300 const auto dof_number = node->dof_number(sys_num, var_num, /*component=*/0);
301 // Recover the physical pressure lambda_j = zhat_j / kappa_j (Popp 2013 eq. 39). nodalScale() is
302 // keyed by displaced-mesh node pointers, so resolve the supplied node id through that mesh.
303 return (*_lm_var->sys().currentSolution())(dof_number) /
304 nodalScale(_subproblem.mesh().nodePtr(node->id()));
305}
virtual Real nodalScale(const DofObject *const dof) const override
Node-based Lagrange-multiplier scaling factor kappa_j of Popp et al.
virtual const Node * nodePtr(const dof_id_type i) const
SystemBase & sys()
unsigned int number() const
virtual const NumericVector< Number > *const & currentSolution() const=0
unsigned int number() const

◆ getNormalGap()

Real WeightedGapUserObject::getNormalGap ( const Node * const  node) const
virtualinherited
Parameters
nodeNode pointer
Returns
The normal gap at the node

Definition at line 304 of file WeightedGapUserObject.C.

305{
306 const auto it = _dof_to_weighted_gap.find(_subproblem.mesh().nodePtr(node->id()));
307
308 // We are returning the physical weighted gap for analysis purposes
309 if (it != _dof_to_weighted_gap.end())
310 return physicalGap(it->second);
311 else
312 return 0.0;
313}
Real physicalGap(const std::pair< ADReal, Real > &gap) const
Compute physical gap from integration gap quantity.

Referenced by MortarUserObjectAux::MortarUserObjectAux(), and PenaltyWeightedGapUserObject::updateAugmentedLagrangianMultipliers().

◆ getTangentialVelocity()

virtual Real WeightedGapUserObject::getTangentialVelocity ( const Node * const  ,
const unsigned int   
) const
inlinevirtualinherited
Parameters
nodeNode pointer
componentComponent of the local slip vector
Returns
The tangential velocity at the node with local components

Reimplemented in PenaltyFrictionUserObject.

Definition at line 157 of file WeightedGapUserObject.h.

159 {
160 mooseError("Not available in base class.");
161 }

Referenced by MortarUserObjectAux::MortarUserObjectAux().

◆ initialize()

void LMWeightedGapUserObject::initialize ( )
overridevirtual

Reimplemented from WeightedGapUserObject.

Reimplemented in LMWeightedVelocitiesUserObject.

Definition at line 157 of file LMWeightedGapUserObject.C.

158{
161}
void initializeNodalScaling()
The node-based scaling steps, kept out of initialize()/finalize()/computeQpIProperties() so that a cl...
virtual void initialize() override

◆ initializeNodalScaling()

void LMWeightedGapUserObject::initializeNodalScaling ( )
protected

The node-based scaling steps, kept out of initialize()/finalize()/computeQpIProperties() so that a class inheriting this one through more than one path can run them without invoking the base class twice.

Definition at line 178 of file LMWeightedGapUserObject.C.

179{
181 return;
182
184 _dof_to_nodal_scale.clear();
188}

Referenced by initialize(), and LMWeightedVelocitiesUserObject::initialize().

◆ initialSetup()

void WeightedGapUserObject::initialSetup ( )
overridevirtualinherited

Reimplemented from MortarUserObject.

Definition at line 119 of file WeightedGapUserObject.C.

120{
122 _test = &test();
123
125 return;
126
127 if (getParam<bool>("interpolate_normals"))
128 paramError("interpolate_normals",
129 "Nodal-normal derivatives require normalized secondary nodal normals and cannot be "
130 "combined with quadrature-point normal interpolation.");
131
132 const std::array<std::pair<const MooseVariable *, const char *>, 3> displacement_variables{
133 {{_disp_x_var, "disp_x"}, {_disp_y_var, "disp_y"}, {_disp_z_var, "disp_z"}}};
134 for (const auto & [variable, parameter_name] : displacement_variables)
135 if (variable)
136 {
137 if (!variable->isNodal())
138 paramError(parameter_name,
139 "Nodal-normal derivatives require a nodal displacement variable.");
140 if (&variable->sys() != &_sys)
141 paramError(parameter_name,
142 "Nodal-normal derivatives require displacement variables in the nonlinear "
143 "system assembled by this contact object.");
144 }
145}
virtual void initialSetup()
SystemBase & _sys
virtual bool usesNodalNormalDerivatives() const =0
Whether this formulation includes displacement derivatives of the secondary nodal normals.
virtual const VariableTestValue & test() const =0
if(subdm)

◆ newParams()

InputParameters LMWeightedGapUserObject::newParams ( )
static

New parameters that this sub-class introduces.

Definition at line 21 of file LMWeightedGapUserObject.C.

22{
23 auto params = emptyInputParameters();
24 params.addRequiredCoupledVar(
25 "lm_variable", "The Lagrange multiplier variable representing the contact pressure.");
26 params.addParam<bool>(
27 "use_petrov_galerkin", false, "Whether to use the Petrov-Galerkin approach.");
28 params.addCoupledVar("aux_lm",
29 "Auxiliary Lagrange multiplier variable that is utilized together with the "
30 "Petrov-Galerkin approach.");
31 params.addParam<bool>(
32 "use_nodal_scaling",
33 false,
34 "Whether to apply the node-based Lagrange-multiplier scaling of Popp et al. (2013) to "
35 "improve the conditioning of the linear system when secondary elements are only partially "
36 "covered (edge dropping). See the documentation for the current limitations.");
37 return params;
38}
InputParameters emptyInputParameters()

Referenced by validParams(), and LMWeightedVelocitiesUserObject::validParams().

◆ nodalContactPressure()

ADReal LMWeightedGapUserObject::nodalContactPressure ( const Node &  node) const
overridevirtual
Parameters
nodeSecondary node of the current secondary lower-dimensional element
Returns
The nodal normal contact pressure at that node, carrying its derivatives

Consumers interpolate each nodal pressure with that node's normal to build the contact traction vector \(\sum_j \Phi_j z_{n,j} \mathbf{n}_j\). This nodal traction interpolation is the discrete transpose of the weighted gap and balances the two sides of the interface; see Popp et al., Comput Methods Appl Mech Eng 264 (2013) 67, Eq. (11). The default reports that this operation is not available.

Reimplemented from WeightedGapUserObject.

Definition at line 273 of file LMWeightedGapUserObject.C.

274{
275 const auto sys_num = _lm_var->sys().number();
276 const auto var_num = _lm_var->number();
277 mooseAssert(node.n_dofs(sys_num, var_num),
278 "The Lagrange multiplier must have a degree of freedom at this secondary node.");
279
280 // Seed the lower-dimensional nodal Lagrange multiplier derivative explicitly.
281 const auto dof_index = node.dof_number(sys_num, var_num, 0);
282 ADReal nodal_pressure = (*_lm_var->sys().currentSolution())(dof_index);
284 Moose::derivInsert(nodal_pressure.derivatives(), dof_index, 1.);
285 // Recover the physical pressure lambda_j = zhat_j / kappa_j (Popp 2013 eq. 39). nodalScale() is
286 // keyed by displaced-mesh node pointers, so resolve the supplied node id through that mesh.
287 return nodal_pressure / nodalScale(_subproblem.mesh().nodePtr(node.id()));
288}
bool doDerivatives(const SubProblem &subproblem, const SystemBase &sys)
void derivInsert(SemiDynamicSparseNumberArray< Real, libMesh::dof_id_type, NWrapper< N > > &derivs, libMesh::dof_id_type index, Real value)

◆ nodalCoordinate()

ADPoint WeightedGapUserObject::nodalCoordinate ( const Node &  node) const
protectedinherited

Add displacement derivatives to the node's current coordinate.

Definition at line 242 of file WeightedGapUserObject.C.

243{
245 "AD nodal coordinates should only be requested while recording nodal-normal "
246 "derivatives.");
248 "AD nodal coordinates require derivative recording.");
249 ADPoint point = node;
250
251 const std::array<std::pair<const MooseVariable *, unsigned int>, 3> displacement_variables{
252 {{_disp_x_var, 0}, {_disp_y_var, 1}, {_disp_z_var, 2}}};
253 for (const auto & [variable, component] : displacement_variables)
254 if (variable)
255 {
256 const auto sys_num = variable->sys().number();
257 const auto var_num = variable->number();
258 // Enriched elements can have mapping nodes without independent displacement degrees of
259 // freedom. Their positions enter the geometric map, but they contribute no independent
260 // displacement derivative.
261 if (node.n_dofs(sys_num, var_num))
263 point(component).derivatives(), node.dof_number(sys_num, var_num, 0), 1.0);
264 }
265
266 return point;
267}

Referenced by WeightedGapUserObject::contactNormal().

◆ nodalScale()

virtual Real LMWeightedGapUserObject::nodalScale ( const DofObject *const  ) const
inlineoverridevirtual

Node-based Lagrange-multiplier scaling factor kappa_j of Popp et al.

(2013), implemented by LMWeightedGapUserObject. The unit default recovers the unscaled formulation.

Reimplemented from WeightedGapUserObject.

Definition at line 53 of file LMWeightedGapUserObject.h.

54 {
55 return findValue(_dof_to_nodal_scale, dof, Real(1));
56 }
V findValue(const std::unordered_map< K, V > &map, const K &key, const V &default_value=0) const
Find a value in a map or return a default if the key doesn't exist.

Referenced by getNormalContactPressure(), and nodalContactPressure().

◆ normalizeCDivisor()

virtual Real LMWeightedGapUserObject::normalizeCDivisor ( const DofObject *const  ,
const Real  covered_normalization 
) const
inlineoverridevirtual
Parameters
dofNode/element dof object
covered_normalizationThe covered-region normalization for this dof (the second entry of dofToWeightedGap()'s value)
Returns
The divisor to use for normalize_c. Defaults to the covered-region normalization passed in, so normalize_c alone is unaffected; overridden by LMWeightedGapUserObject to return a coverage-independent (full-element) integral instead when node-based scaling is active, so the two mechanisms do not double-count coverage.

Reimplemented from WeightedGapUserObject.

Definition at line 59 of file LMWeightedGapUserObject.h.

61 {
62 return _use_nodal_scaling ? findValue(_dof_to_full_normalization, dof, covered_normalization)
63 : covered_normalization;
64 }

◆ physicalGap()

Real WeightedGapUserObject::physicalGap ( const std::pair< ADReal, Real > &  gap) const
inlineinherited

Compute physical gap from integration gap quantity.

Definition at line 99 of file WeightedGapUserObject.h.

100 {
101 return MetaPhysicL::raw_value(gap.first) / gap.second;
102 }
auto raw_value(const Eigen::Map< T > &in)

Referenced by PenaltyWeightedGapUserObject::augmentedLagrangianSetup(), WeightedGapUserObject::getNormalGap(), and PenaltyWeightedGapUserObject::isAugmentedLagrangianConverged().

◆ reinit()

virtual void LMWeightedGapUserObject::reinit ( )
inlineoverridevirtual

Implements MortarUserObject.

Definition at line 41 of file LMWeightedGapUserObject.h.

41{}

◆ shouldRecordNodalNormalDerivatives()

bool WeightedGapUserObject::shouldRecordNodalNormalDerivatives ( ) const
inherited

◆ test()

const VariableTestValue & LMWeightedGapUserObject::test ( ) const
overrideprotectedvirtual
Returns
The test function associated with the weighted gap

Implements WeightedGapUserObject.

Definition at line 143 of file LMWeightedGapUserObject.C.

144{
146}
virtual const FieldVariablePhiValue & phiLower() const override

◆ tractionBasis()

const VariableTestValue & LMWeightedGapUserObject::tractionBasis ( ) const
overridevirtual

The traction stays on the Lagrange multiplier's own basis, which is the basis adSlnLower() uses.

Under Petrov-Galerkin test() is the auxiliary standard basis carrying the weighted gap.

Reimplemented from WeightedGapUserObject.

Definition at line 267 of file LMWeightedGapUserObject.C.

268{
269 return _lm_var->phiLower();
270}

◆ usesNodalNormalDerivatives()

virtual bool LMWeightedGapUserObject::usesNodalNormalDerivatives ( ) const
inlineoverridevirtual

Whether this formulation includes displacement derivatives of the secondary nodal normals.

Implements WeightedGapUserObject.

Definition at line 44 of file LMWeightedGapUserObject.h.

44{ return true; }

◆ usesNodalScaling()

virtual bool LMWeightedGapUserObject::usesNodalScaling ( ) const
inlineoverridevirtual
Returns
Whether node-based Lagrange-multiplier scaling is active

Reimplemented from WeightedGapUserObject.

Definition at line 57 of file LMWeightedGapUserObject.h.

57{ return _use_nodal_scaling; }

◆ validParams()

InputParameters LMWeightedGapUserObject::validParams ( )
static

Definition at line 41 of file LMWeightedGapUserObject.C.

42{
45 "Provides the mortar normal Lagrange multiplier for constraint enforcement.");
47 params.suppressParameter<bool>("ghost_point_neighbors");
49 return params;
50}
void suppressParameter(const std::string &name)
void addClassDescription(const std::string &doc_string)
static InputParameters newParams()
New parameters that this sub-class introduces.
static InputParameters validParams()
static void addNodalNormalCoupling(InputParameters &params)
Request the secondary face point-neighbor matrix coupling that nodal-normal derivatives need.

◆ verifyLagrange() [1/2]

void LMWeightedGapUserObject::verifyLagrange ( const MooseVariable &  var,
const std::string &  var_name 
) const
protected

Verify that the provided variables have degrees of freedom at nodes.

Definition at line 110 of file LMWeightedGapUserObject.C.

112{
113 if (var.feType().family != LAGRANGE)
114 paramError(var_param_name, "The Lagrange multiplier variables must be of Lagrange type");
115}

Referenced by LMWeightedGapUserObject(), LMWeightedVelocitiesUserObject::LMWeightedVelocitiesUserObject(), and verifyLagrange().

◆ verifyLagrange() [2/2]

void LMWeightedGapUserObject::verifyLagrange ( const MooseVariable &  var,
const std::string &  var_name,
const MooseVariable &  reference_var,
const std::string &  reference_var_name 
) const
protected

Verify nodal degrees of freedom and require that var shares reference_var's finite element type (order/family) and dual/standard basis choice (useDual()).

A per-direction traction basis (WeightedVelocitiesUserObject::tangentialTractionBasis) indexes its dof lookups and loop bound by a tangential Lagrange multiplier, so that variable's node count and dof numbering must match the normal Lagrange multiplier's for the two to stay comparable node-for-node.

Definition at line 118 of file LMWeightedGapUserObject.C.

122{
123 verifyLagrange(var, var_param_name);
124
125 if (var.feType() != reference_var.feType())
126 paramError(var_param_name,
127 "'",
128 var_param_name,
129 "' must use the same finite element type (order and family) as '",
130 reference_var_param_name,
131 "'.");
132
133 if (var.useDual() != reference_var.useDual())
134 paramError(var_param_name,
135 "'",
136 var_param_name,
137 "' must use the same dual/standard basis setting as '",
138 reference_var_param_name,
139 "'.");
140}

Member Data Documentation

◆ _ad_nodal_normals

std::unordered_map<const Node *, ADRealVectorValue> WeightedGapUserObject::_ad_nodal_normals
mutableprotectedinherited

AD nodal normals, each averaged over the secondary faces containing that node.

Definition at line 262 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::contactNormal(), and WeightedGapUserObject::initialize().

◆ _aux_lm_var

const MooseVariable* const LMWeightedGapUserObject::_aux_lm_var
protected

The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach)

Definition at line 117 of file LMWeightedGapUserObject.h.

Referenced by LMWeightedGapUserObject(), and test().

◆ _coord

const MooseArray<Real>& WeightedGapUserObject::_coord
protectedinherited

◆ _disp_x_var

const MooseVariable* const WeightedGapUserObject::_disp_x_var
protectedinherited

◆ _disp_y_var

const MooseVariable* const WeightedGapUserObject::_disp_y_var
protectedinherited

◆ _disp_z_var

const MooseVariable* const WeightedGapUserObject::_disp_z_var
protectedinherited

◆ _dof_to_covered_fraction_sum

std::unordered_map<const DofObject *, Real> LMWeightedGapUserObject::_dof_to_covered_fraction_sum
protected

Per-node numerator of kappa_j (Popp 2013 eq.

36), summed over adjacent secondary elements; finalizeNodalScaling() divides by the adjacency count

Definition at line 125 of file LMWeightedGapUserObject.h.

Referenced by computeQpINodalScaling(), finalizeNodalScaling(), and initializeNodalScaling().

◆ _dof_to_full_normalization

std::unordered_map<const DofObject *, Real> LMWeightedGapUserObject::_dof_to_full_normalization
protected

Per-node sum, over each distinct adjacent secondary element, of the full-element integral int_e N_j (see fullNodalIntegrals()); the coverage-independent divisor for normalize_c when node-based scaling is active (see normalizeCDivisor()), reduces exactly to the covered-region normalization (WeightedGapUserObject::computeQpIProperties()) at full coverage, since int_e Phi_j = int_e N_j for the dual basis by construction.

Not from Popp (2013); a PR-review proposal for composing normalize_c with node-based scaling.

Definition at line 140 of file LMWeightedGapUserObject.h.

Referenced by computeQpINodalScaling(), finalizeNodalScaling(), initializeNodalScaling(), and normalizeCDivisor().

◆ _dof_to_nodal_scale

std::unordered_map<const DofObject *, Real> LMWeightedGapUserObject::_dof_to_nodal_scale
protected

A map from node to its node-based scaling factor kappa_j (see nodalScale())

Definition at line 128 of file LMWeightedGapUserObject.h.

Referenced by finalizeNodalScaling(), initializeNodalScaling(), and nodalScale().

◆ _dof_to_weighted_displacements

std::unordered_map<const DofObject *, ADRealVectorValue> WeightedGapUserObject::_dof_to_weighted_displacements
protectedinherited

◆ _dof_to_weighted_gap

std::unordered_map<const DofObject *, std::pair<ADReal, Real> > WeightedGapUserObject::_dof_to_weighted_gap
protectedinherited

◆ _elem_to_full_nodal_integral

std::unordered_map<dof_id_type, std::vector<Real> > LMWeightedGapUserObject::_elem_to_full_nodal_integral
protected

Cache of the per-node full integrals int_e N_j (see fullNodalIntegrals()), keyed by element id; cleared each evaluation since the displaced geometry changes.

Definition at line 132 of file LMWeightedGapUserObject.h.

Referenced by fullNodalIntegrals(), and initializeNodalScaling().

◆ _fe_problem

FEProblemBase& WeightedGapUserObject::_fe_problem
protectedinherited

The base finite element problem.

Definition at line 205 of file WeightedGapUserObject.h.

Referenced by PenaltyWeightedGapUserObject::selfTimestepSetup(), and PenaltyFrictionUserObject::timestepSetup().

◆ _full_normalization_elems

std::unordered_map<const DofObject *, std::unordered_set<dof_id_type> > LMWeightedGapUserObject::_full_normalization_elems
protected

Elements already folded into _dof_to_full_normalization for a given node, to avoid double counting when multiple mortar segments cover the same element.

Definition at line 144 of file LMWeightedGapUserObject.h.

Referenced by computeQpINodalScaling(), and initializeNodalScaling().

◆ _has_disp_z

const bool WeightedGapUserObject::_has_disp_z
protectedinherited

For 2D mortar contact no displacement will be specified, so const pointers used.

Definition at line 221 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpProperties(), WeightedVelocitiesUserObject::computeQpProperties(), and PenaltyWeightedGapUserObject::PenaltyWeightedGapUserObject().

◆ _i

unsigned int WeightedGapUserObject::_i = 0
protectedinherited

◆ _is_weighted_gap_nodal

bool WeightedGapUserObject::_is_weighted_gap_nodal = true
protectedinherited

Whether the weighted gap is associated with nodes or elements (like for a CONSTANT MONOMIAL Lagrange multiplier).

We have this member so that we don't do virtual calls during inner quadrature-point/test-function loops

Definition at line 267 of file WeightedGapUserObject.h.

Referenced by WeightedVelocitiesUserObject::computeQpIProperties().

◆ _lm_var

const MooseVariableFE<Real>* const LMWeightedGapUserObject::_lm_var
protected

◆ _nodal

const bool WeightedGapUserObject::_nodal
protectedinherited

Whether the dof objects are nodal; if they're not, then they're elemental.

Definition at line 214 of file WeightedGapUserObject.h.

Referenced by BilinearMixedModeCohesiveZoneModel::finalize(), CohesiveZoneModelBase::finalize(), WeightedGapUserObject::finalize(), WeightedVelocitiesUserObject::finalize(), and finalizeNodalScaling().

◆ _nodal_scaling_fe

std::unique_ptr<libMesh::FEBase> LMWeightedGapUserObject::_nodal_scaling_fe
protected

Finite element and quadrature rule used to evaluate fullNodalIntegrals()

Definition at line 147 of file LMWeightedGapUserObject.h.

Referenced by fullNodalIntegrals(), and LMWeightedGapUserObject().

◆ _nodal_scaling_qrule

std::unique_ptr<libMesh::QGauss> LMWeightedGapUserObject::_nodal_scaling_qrule
protected

Definition at line 148 of file LMWeightedGapUserObject.h.

Referenced by fullNodalIntegrals(), and LMWeightedGapUserObject().

◆ _normalization_ptr

const Real* WeightedGapUserObject::_normalization_ptr = nullptr
protectedinherited

Definition at line 255 of file WeightedGapUserObject.h.

◆ _primary_disp_x

const ADVariableValue& WeightedGapUserObject::_primary_disp_x
protectedinherited

x-displacement on the primary face

Definition at line 228 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpProperties().

◆ _primary_disp_y

const ADVariableValue& WeightedGapUserObject::_primary_disp_y
protectedinherited

y-displacement on the primary face

Definition at line 232 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpProperties().

◆ _primary_disp_z

const ADVariableValue* const WeightedGapUserObject::_primary_disp_z
protectedinherited

z-displacement on the primary face

Definition at line 236 of file WeightedGapUserObject.h.

◆ _qp

unsigned int WeightedGapUserObject::_qp = 0
protectedinherited

◆ _qp_displacement_nodal

ADRealVectorValue WeightedGapUserObject::_qp_displacement_nodal
protectedinherited

Vector for computation of relative displacement (determines mixity ratio in interface problems)

Definition at line 245 of file WeightedGapUserObject.h.

Referenced by CohesiveZoneModelBase::computeQpIProperties(), and WeightedGapUserObject::computeQpProperties().

◆ _qp_factor

Real WeightedGapUserObject::_qp_factor
protectedinherited

The value of the LM at the current quadrature point.

Definition at line 211 of file WeightedGapUserObject.h.

Referenced by computeQpINodalScaling(), WeightedGapUserObject::computeQpIProperties(), and WeightedGapUserObject::computeQpProperties().

◆ _qp_gap

ADReal WeightedGapUserObject::_qp_gap
protectedinherited

The value of the gap at the current quadrature point.

Definition at line 208 of file WeightedGapUserObject.h.

◆ _qp_gap_nodal

ADRealVectorValue WeightedGapUserObject::_qp_gap_nodal
protectedinherited

Vector for computation of weighted gap with nodal normals.

Definition at line 242 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpIProperties(), and WeightedGapUserObject::computeQpProperties().

◆ _secondary_disp_x

const ADVariableValue& WeightedGapUserObject::_secondary_disp_x
protectedinherited

x-displacement on the secondary face

Definition at line 226 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpProperties().

◆ _secondary_disp_y

const ADVariableValue& WeightedGapUserObject::_secondary_disp_y
protectedinherited

y-displacement on the secondary face

Definition at line 230 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::computeQpProperties().

◆ _secondary_disp_z

const ADVariableValue* const WeightedGapUserObject::_secondary_disp_z
protectedinherited

z-displacement on the secondary face

Definition at line 234 of file WeightedGapUserObject.h.

◆ _test

const VariableTestValue* WeightedGapUserObject::_test = nullptr
protectedinherited

A pointer to the test function associated with the weighted gap.

We have this member so that we don't do virtual calls during inner quadrature-point/test-function loops

Definition at line 259 of file WeightedGapUserObject.h.

Referenced by WeightedGapUserObject::execute(), WeightedGapUserObject::initialSetup(), CohesiveZoneModelBase::prepareJumpKinematicQuantities(), CohesiveZoneModelBase::reinit(), PenaltyFrictionUserObject::reinit(), and PenaltyWeightedGapUserObject::reinit().

◆ _use_nodal_scaling

const bool LMWeightedGapUserObject::_use_nodal_scaling
protected

Whether to apply the Popp et al.

(2013) node-based Lagrange-multiplier scaling (kappa_j) for improved conditioning of partially covered (edge-dropping) secondary elements

Definition at line 121 of file LMWeightedGapUserObject.h.

Referenced by computeQpINodalScaling(), finalizeNodalScaling(), initializeNodalScaling(), LMWeightedGapUserObject(), normalizeCDivisor(), and usesNodalScaling().

◆ _use_petrov_galerkin

const bool LMWeightedGapUserObject::_use_petrov_galerkin
protected

Whether to use Petrov-Galerkin approach.

Definition at line 114 of file LMWeightedGapUserObject.h.

Referenced by LMWeightedGapUserObject(), and test().

◆ _weighted_gap_ptr

const ADReal* WeightedGapUserObject::_weighted_gap_ptr = nullptr
protectedinherited

A pointer members that can be used to help avoid copying ADReals.

Definition at line 254 of file WeightedGapUserObject.h.


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