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 | Protected Attributes | Static Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MechanicalContactConstraint Class Reference

A MechanicalContactConstraint forces the value of a variable to be the same on both sides of an interface. More...

#include <MechanicalContactConstraint.h>

Inheritance diagram for MechanicalContactConstraint:
[legend]

Public Types

enum  ResidualTagType
 
typedef DataFileName DataFileParameterType
 

Public Member Functions

 MechanicalContactConstraint (const InputParameters &parameters)
 
virtual void timestepSetup () override
 
virtual void jacobianSetup () override
 
virtual void residualEnd () override
 
virtual bool AugmentedLagrangianContactConverged ()
 
virtual void updateAugmentedLagrangianMultiplier (bool beginning_of_step)
 
virtual void updateContactStatefulData (bool beginning_of_step)
 
virtual Real computeQpSecondaryValue () override
 
virtual Real computeQpResidual (Moose::ConstraintType type) override
 
virtual void computeJacobian () override
 Computes the jacobian for the current element.
 
virtual void computeOffDiagJacobian (unsigned int jvar) override
 Compute off-diagonal Jacobian entries.
 
virtual Real computeQpJacobian (Moose::ConstraintJacobianType type) override
 
virtual Real computeQpOffDiagJacobian (Moose::ConstraintJacobianType type, unsigned int jvar) override
 Compute off-diagonal Jacobian entries.
 
virtual void getConnectedDofIndices (unsigned int var_num) override
 Get the dof indices of the nodes connected to the secondary node for a specific variable.
 
bool getCoupledVarComponent (unsigned int var_num, unsigned int &component)
 Determine whether the coupled variable is one of the displacement variables, and find its component.
 
virtual bool addCouplingEntriesToJacobian () override
 
bool shouldApply () override
 
void computeContactForce (const Node &node, PenetrationInfo *pinfo, bool update_contact_set)
 
virtual void computeSecondaryValue (NumericVector< Number > &current_solution)
 
virtual void computeResidual () override
 
virtual bool overwriteSecondaryResidual ()
 
virtual bool overwriteSecondaryJacobian ()
 
virtual MooseVariableprimaryVariable ()
 
BoundaryID primaryBoundary () const
 
BoundaryID secondaryBoundary () const
 
const MooseVariablevariable () const override
 
Real secondaryResidual () const
 
void residualSetup () override
 
virtual const std::unordered_set< unsigned int > & getMatPropDependencies () const
 
virtual bool isExplicitConstraint () const
 
virtual void overwriteBoundaryVariables (NumericVector< Number > &, const Node &) const
 
std::set< SubdomainIDgetSecondaryConnectedBlocks () const
 
virtual void subdomainSetup () override final
 
void prepareNeighborShapes (unsigned int var_num)
 
virtual void computeResidualAndJacobian ()
 
virtual void computeOffDiagJacobianScalar (unsigned int)
 
virtual void computeNonlocalJacobian ()
 
virtual void computeNonlocalOffDiagJacobian (unsigned int)
 
const SubProblemsubProblem () const
 
virtual void prepareShapes (unsigned int var_num)
 
virtual std::set< std::string > additionalROVariables ()
 
virtual bool enabled () const
 
std::shared_ptr< MooseObjectgetSharedPtr ()
 
std::shared_ptr< const MooseObjectgetSharedPtr () const
 
bool isKokkosObject () const
 
MooseAppgetMooseApp () 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 InputParametersparameters () const
 
const hit::Node * getHitNode () const
 
bool hasBase () const
 
const std::string & getBase () const
 
const TgetParam (const std::string &name) const
 
std::vector< std::pair< T1, T2 > > getParam (const std::string &param1, const std::string &param2) const
 
const TqueryParam (const std::string &name) const
 
const TgetRenamedParam (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 initialSetup ()
 
virtual void customSetup (const ExecFlagType &)
 
const ExecFlagEnumgetExecuteOnEnum () const
 
const FunctiongetFunction (const std::string &name) const
 
const FunctiongetFunctionByName (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 TgetKokkosFunction (const std::string &name) const
 
Moose::Kokkos::Function getKokkosFunctionByName (const FunctionName &name) const
 
const TgetKokkosFunctionByName (const FunctionName &name) const
 
bool hasKokkosFunction (const std::string &param_name) const
 
bool hasKokkosFunctionByName (const FunctionName &name) const
 
UserObjectName getUserObjectName (const std::string &param_name) const
 
const TgetUserObject (const std::string &param_name, bool is_dependency=true) const
 
const TgetUserObjectByName (const UserObjectName &object_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBase (const std::string &param_name, bool is_dependency=true) const
 
const UserObjectBasegetUserObjectBaseByName (const UserObjectName &object_name, bool is_dependency=true) const
 
bool isImplicit ()
 
Moose::StateArg determineState () 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 VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name, bool needs_broadcast) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const VectorPostprocessorValuegetVectorPostprocessorValueOldByName (const VectorPostprocessorName &name, const std::string &vector_name, bool needs_broadcast) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValue (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueByName (const VectorPostprocessorName &name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOld (const std::string &param_name, const std::string &vector_name) const
 
const ScatterVectorPostprocessorValuegetScatterVectorPostprocessorValueOldByName (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
 
void setRandomResetFrequency (ExecFlagType exec_flag)
 
unsigned long getRandomLong () const
 
Real getRandomReal () const
 
unsigned int getSeed (std::size_t id)
 
unsigned int getMasterSeed () const
 
bool isNodal () const
 
ExecFlagType getResetOnTime () const
 
void setRandomDataPointer (RandomData *random_data)
 
virtual void meshChanged ()
 
void useVectorTag (const TagName &tag_name, VectorTagsKey)
 
void useVectorTag (TagID tag_id, VectorTagsKey)
 
void useMatrixTag (const TagName &tag_name, MatrixTagsKey)
 
void useMatrixTag (TagID tag_id, MatrixTagsKey)
 
bool isVectorTagged ()
 
bool isMatrixTagged ()
 
bool hasVectorTags () const
 
const std::set< TagID > & getVectorTags (VectorTagsKey) const
 
const std::set< TagID > & getMatrixTags (MatrixTagsKey) const
 
virtual const VariableValuecoupledNeighborValue (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 ADVariableValueadCoupledNeighborValue (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 ADVariableValueadCoupledNeighborValueDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledNeighborValues (const std::string &var_name) const
 
virtual const ADVectorVariableValueadCoupledVectorNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborValueDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborValueDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual std::vector< const VariableGradient * > coupledNeighborGradients (const std::string &var_name) const
 
virtual const VariableGradientcoupledNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableGradientadCoupledNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayNeighborValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayNeighborGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayNeighborGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayNeighborGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledNeighborSecond (const std::string &var_name, unsigned int i=0) const
 
virtual const VariableValuecoupledNeighborDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNeighborDofValuesOlder (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 ADVariableValuegetADDefaultValue (const std::string &var_name) const
 
const ADVectorVariableValuegetADDefaultVectorValue (const std::string &var_name) const
 
const ADVariableGradientgetADDefaultGradient () const
 
const ADVectorVariableGradientgetADDefaultVectorGradient () const
 
const ADVariableSecondgetADDefaultSecond () const
 
const ADVectorVariableCurlgetADDefaultCurl () 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
 
const std::vector< MooseVariableScalar * > & getCoupledMooseScalarVars ()
 
const std::set< TagID > & getScalarVariableCoupleableVectorTags () const
 
const std::set< TagID > & getScalarVariableCoupleableMatrixTags () const
 
const std::set< MooseVariableFieldBase * > & getMooseVariableDependencies () const
 
std::set< MooseVariableFieldBase * > checkAllVariables (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_omit={})
 
virtual std::set< MooseVariableFieldBase * > checkVariables (const libMesh::Node &node, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
std::set< MooseVariableFieldBase * > checkVariables (const libMesh::Elem &element, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
void addMooseVariableDependency (MooseVariableFieldBase *var)
 
void addMooseVariableDependency (const std::vector< MooseVariableFieldBase * > &vars)
 
MooseVariableBasemooseVariableBase () const
 
MooseVariableField< T > & mooseVariableField ()
 
MooseVariableFE< T > * mooseVariable () const
 
MooseVariableFV< T > * mooseVariableFV () const
 
MooseLinearVariableFV< T > * mooseLinearVariableFV () 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 PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValue (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOld (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
const PostprocessorValuegetPostprocessorValueOlder (const std::string &param_name, const unsigned int index=0) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
virtual const PostprocessorValuegetPostprocessorValueByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOldByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (const PostprocessorName &name) const
 
const PostprocessorValuegetPostprocessorValueOlderByName (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
 
PenetrationLocatorgetPenetrationLocator (const BoundaryName &primary, const BoundaryName &secondary, Order order)
 
PenetrationLocatorgetQuadraturePenetrationLocator (const BoundaryName &primary, const BoundaryName &secondary, Order order)
 
NearestNodeLocatorgetNearestNodeLocator (const BoundaryName &primary, const BoundaryName &secondary)
 
NearestNodeLocatorgetQuadratureNearestNodeLocator (const BoundaryName &primary, const BoundaryName &secondary)
 
bool requiresGeometricSearch () 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 void callMooseError (MooseApp *const app, const InputParameters &params, std::string msg, const bool with_prefix, const hit::Node *node, const bool show_trace=true)
 

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
 

Protected Member Functions

Real gapOffset (const Node &node)
 
Real nodalArea (const Node &node)
 
Real getPenalty (const Node &node)
 
Real getTangentialPenalty (const Node &node)
 
virtual const VariableValuecoupledSecondaryValue (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableValuecoupledSecondaryValueOld (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableValuecoupledSecondaryValueOlder (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledSecondaryGradient (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledSecondaryGradientOld (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledSecondaryGradientOlder (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableSecondcoupledSecondarySecond (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableValuecoupledPrimaryValue (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableValuecoupledPrimaryValueOld (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableValuecoupledPrimaryValueOlder (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledPrimaryGradient (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledPrimaryGradientOld (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableGradientcoupledPrimaryGradientOlder (const std::string &var_name, unsigned int comp=0)
 
virtual const VariableSecondcoupledPrimarySecond (const std::string &var_name, unsigned int comp=0)
 
const std::set< BoundaryID > & buildBoundaryIDs ()
 
virtual void precalculateResidual ()
 
virtual void precalculateJacobian ()
 
virtual void precalculateOffDiagJacobian (unsigned int)
 
const MooseVariableFieldBasegetVariable (unsigned int jvar_num) const
 
void flagInvalidSolutionInternal (const InvalidSolutionID invalid_solution_id) const
 
InvalidSolutionID registerInvalidSolutionInternal (const std::string &message, const bool warning) const
 
virtual void addUserObjectDependencyHelper (const UserObjectBase &) const
 
virtual void addPostprocessorDependencyHelper (const PostprocessorName &) const
 
virtual void addVectorPostprocessorDependencyHelper (const VectorPostprocessorName &) const
 
TdeclareRestartableData (const std::string &data_name, Args &&... args)
 
ManagedValue< TdeclareManagedRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
const TgetRestartableData (const std::string &data_name) const
 
TdeclareRestartableDataWithContext (const std::string &data_name, void *context, Args &&... args)
 
TdeclareRecoverableData (const std::string &data_name, Args &&... args)
 
TdeclareRestartableDataWithObjectName (const std::string &data_name, const std::string &object_name, Args &&... args)
 
TdeclareRestartableDataWithObjectNameWithContext (const std::string &data_name, const std::string &object_name, void *context, Args &&... args)
 
std::string restartableName (const std::string &data_name) const
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTag (Assembly &assembly, unsigned int ivar, ResidualTagType tag_type)
 
void prepareVectorTagNeighbor (Assembly &assembly, unsigned int ivar)
 
void prepareVectorTagLower (Assembly &assembly, unsigned int ivar)
 
void prepareMatrixTag (Assembly &assembly, unsigned int ivar, unsigned int jvar)
 
void prepareMatrixTag (Assembly &assembly, unsigned int ivar, unsigned int jvar, DenseMatrix< Number > &k) const
 
void prepareMatrixTagNonlocal (Assembly &assembly, unsigned int ivar, unsigned int jvar)
 
void prepareMatrixTagNeighbor (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type)
 
void prepareMatrixTagNeighbor (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type, DenseMatrix< Number > &k) const
 
void prepareMatrixTagLower (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::ConstraintJacobianType type)
 
void accumulateTaggedLocalResidual ()
 
void assignTaggedLocalResidual ()
 
void accumulateTaggedLocalMatrix ()
 
void accumulateTaggedLocalMatrix (Assembly &assembly, unsigned int ivar, unsigned int jvar, const DenseMatrix< Number > &k)
 
void accumulateTaggedLocalMatrix (Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type, const DenseMatrix< Number > &k)
 
void accumulateTaggedNonlocalMatrix ()
 
void assignTaggedLocalMatrix ()
 
void addResiduals (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResiduals (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, const std::vector< Real > &scaling_factors)
 
void addResiduals (Assembly &assembly, const DenseVector< T > &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResiduals (Assembly &assembly, const ADResidualsPacket &packet)
 
void addResidualsAndJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResidualsAndJacobian (Assembly &assembly, const ADResidualsPacket &packet)
 
void addJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobian (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, const std::vector< Real > &scaling_factors)
 
void addJacobian (Assembly &assembly, const ADResidualsPacket &packet)
 
void addJacobian (Assembly &assembly, const DenseMatrix< Real > &local_k, const std::vector< dof_id_type > &row_indices, const std::vector< dof_id_type > &column_indices, Real scaling_factor)
 
void addResidualsWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addResidualsAndJacobianWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobianWithoutConstraints (Assembly &assembly, const Residuals &residuals, const Indices &dof_indices, Real scaling_factor)
 
void addJacobianElement (Assembly &assembly, Real value, dof_id_type row_index, dof_id_type column_index, Real scaling_factor)
 
void setResidual (SystemBase &sys, const T &residual, MooseVariableFE< T > &var)
 
void setResidual (SystemBase &sys, Real residual, dof_id_type dof_index)
 
void setResidual (SystemBase &sys, SetResidualFunctor set_residual_functor)
 
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 intcoupledIndices (const std::string &var_name) const
 
virtual const VariableValuecoupledValue (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 VariableValuecoupledValueLower (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledValues (const std::string &var_name) const
 
const ADVariableValueadCoupledLowerValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVectorVariableValue * > adCoupledVectorValues (const std::string &var_name) const
 
virtual const VariableValuecoupledVectorTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagValue (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 ArrayVariableValuecoupledVectorTagArrayValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableValuecoupledVectorTagArrayValue (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 VariableGradientcoupledVectorTagGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableGradientcoupledVectorTagGradient (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 ArrayVariableGradientcoupledVectorTagArrayGradient (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const ArrayVariableGradientcoupledVectorTagArrayGradient (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 VariableValuecoupledVectorTagDofValue (const std::string &var_name, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledVectorTagDofValue (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const ArrayVariableValuecoupledVectorTagArrayDofValue (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 VariableValuecoupledMatrixTagValue (const std::string &var_names, TagID tag, unsigned int index=0) const
 
virtual const VariableValuecoupledMatrixTagValue (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 VectorVariableValuecoupledVectorValue (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValue (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ArrayVariableValue * > coupledArrayValues (const std::string &var_name) const
 
MooseWritableVariablewritableVariable (const std::string &var_name, unsigned int comp=0)
 
virtual VariableValuewritableCoupledValue (const std::string &var_name, unsigned int comp=0)
 
void checkWritableVar (MooseWritableVariable *var)
 
virtual const VariableValuecoupledValueOld (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 VariableValuecoupledValueOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledValuesOlder (const std::string &var_name) const
 
virtual const VariableValuecoupledValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayValueOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradients (const std::string &var_name) const
 
const ADVariableGradientadCoupledGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableGradientadCoupledGradientDot (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 ADVectorVariableGradientadCoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableSecondadCoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableSecondadCoupledVectorSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableGradient * > coupledGradientsOld (const std::string &var_name) const
 
virtual const VariableGradientcoupledGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableGradientcoupledGradientDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableGradientcoupledVectorGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradient (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableGradientcoupledArrayGradientDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableCurlcoupledCurlOlder (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableCurladCoupledCurl (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDiv (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableDivergencecoupledDivOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecond (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondOlder (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableSecondcoupledSecondPreviousNL (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledDots (const std::string &var_name) const
 
virtual const VariableValuecoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledDot (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const ADVariableValue * > adCoupledDots (const std::string &var_name) const
 
const ADVariableValueadCoupledDotDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVectorVariableValueadCoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VectorVariableValuecoupledVectorDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledVectorDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const ArrayVariableValuecoupledArrayDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDu (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledArrayDotDu (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const Moose::ADType< T >::typeadCoupledNodalValue (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOld (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalValuePreviousNL (const std::string &var_name, unsigned int comp=0) const
 
const TcoupledNodalDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDot (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledNodalDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
virtual const VariableValuecoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValues (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOld (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOld (const std::string &var_name) const
 
virtual const VariableValuecoupledDofValuesOlder (const std::string &var_name, unsigned int comp=0) const
 
std::vector< const VariableValue * > coupledAllDofValuesOlder (const std::string &var_name) const
 
virtual const ArrayVariableValuecoupledArrayDofValues (const std::string &var_name, unsigned int comp=0) const
 
virtual const ADVariableValueadCoupledDofValues (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadZeroValue () const
 
const ADVariableGradientadZeroGradient () const
 
const ADVariableSecondadZeroSecond () 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 MooseVariableFieldBasegetFEVar (const std::string &var_name, unsigned int comp) const
 
const MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp) const
 
MooseVariableFieldBasegetFieldVar (const std::string &var_name, unsigned int comp)
 
std::vector< const MooseVariableFieldBase * > getFieldVars (const std::string &var_name) const
 
const TgetVarHelper (const std::string &var_name, unsigned int comp) const
 
TgetVarHelper (const std::string &var_name, unsigned int comp)
 
std::vector< const T * > getVarsHelper (const std::string &var_name) const
 
MooseVariablegetVar (const std::string &var_name, unsigned int comp)
 
const MooseVariablegetVar (const std::string &var_name, unsigned int comp) const
 
VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp)
 
const VectorMooseVariablegetVectorVar (const std::string &var_name, unsigned int comp) const
 
ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp)
 
const ArrayMooseVariablegetArrayVar (const std::string &var_name, unsigned int comp) const
 
void validateExecutionerType (const std::string &name, const std::string &fn_name) const
 
std::vector< TcoupledVectorHelper (const std::string &var_name, const Func &func) 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 VariableValuecoupledScalarValue (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarValue (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 VariableValuecoupledVectorTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledMatrixTagScalarValue (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarValueOlder (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const ADVariableValueadCoupledScalarDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDot (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotOld (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDu (const std::string &var_name, unsigned int comp=0) const
 
const VariableValuecoupledScalarDotDotDu (const std::string &var_name, unsigned int comp=0) const
 
const MooseVariableScalargetScalarVar (const std::string &var_name, unsigned int comp) const
 
virtual const OutputTools< Real >::VariableValueneighborValue ()
 
const VectorVariableValueneighborValue ()
 
virtual const OutputTools< Real >::VariableValueneighborValueOld ()
 
const VectorVariableValueneighborValueOld ()
 
virtual const OutputTools< Real >::VariableValueneighborValueOlder ()
 
const VectorVariableValueneighborValueOlder ()
 
virtual const OutputTools< Real >::VariableGradientneighborGradient ()
 
virtual const OutputTools< Real >::VariableGradientneighborGradientOld ()
 
virtual const OutputTools< Real >::VariableGradientneighborGradientOlder ()
 
virtual const OutputTools< Real >::VariableSecondneighborSecond ()
 
virtual const OutputTools< Real >::VariableSecondneighborSecondOld ()
 
virtual const OutputTools< Real >::VariableSecondneighborSecondOlder ()
 
virtual const OutputTools< Real >::VariableTestSecondneighborSecondTest ()
 
virtual const OutputTools< Real >::VariablePhiSecondneighborSecondPhi ()
 
virtual const OutputTools< T >::VariableValuevalue ()
 
virtual const OutputTools< T >::VariableValuevalueOld ()
 
virtual const OutputTools< T >::VariableValuevalueOlder ()
 
virtual const OutputTools< T >::VariableValuedot ()
 
virtual const OutputTools< T >::VariableValuedotDot ()
 
virtual const OutputTools< T >::VariableValuedotOld ()
 
virtual const OutputTools< T >::VariableValuedotDotOld ()
 
virtual const VariableValuedotDu ()
 
virtual const VariableValuedotDotDu ()
 
virtual const OutputTools< T >::VariableGradientgradient ()
 
virtual const OutputTools< T >::VariableGradientgradientOld ()
 
virtual const OutputTools< T >::VariableGradientgradientOlder ()
 
virtual const OutputTools< T >::VariableSecondsecond ()
 
virtual const OutputTools< T >::VariableSecondsecondOld ()
 
virtual const OutputTools< T >::VariableSecondsecondOlder ()
 
virtual const OutputTools< T >::VariableTestSecondsecondTest ()
 
virtual const OutputTools< T >::VariableTestSecondsecondTestFace ()
 
virtual const OutputTools< T >::VariablePhiSecondsecondPhi ()
 
virtual const OutputTools< T >::VariablePhiSecondsecondPhiFace ()
 

Protected Attributes

MooseSharedPointer< DisplacedProblem_displaced_problem
 
const unsigned int _component
 
const ContactModel _model
 
const ContactFormulation _formulation
 
const bool _normalize_penalty
 
const Real _penalty
 
const Real _penalty_multiplier
 
Real _penalty_tangential
 
const Real _friction_coefficient
 
const Real _tension_release
 
const Real _capture_tolerance
 
const unsigned int _stick_lock_iterations
 
const Real _stick_unlock_factor
 
bool _update_stateful_data
 
NumericVector< Number > & _residual_copy
 
const unsigned int _mesh_dimension
 
std::vector< unsigned int_vars
 
std::vector< MooseVariable * > _var_objects
 
const bool _has_secondary_gap_offset
 gap offset from either secondary, primary or both
 
const MooseVariable *const _secondary_gap_offset_var
 
const bool _has_mapped_primary_gap_offset
 
const MooseVariable *const _mapped_primary_gap_offset_var
 
MooseVariable_nodal_area_var
 
SystemBase_aux_system
 
const NumericVector< Number > *const _aux_solution
 
const bool _primary_secondary_jacobian
 Whether to include coupling between the primary and secondary nodes in the Jacobian.
 
const bool _connected_secondary_nodes_jacobian
 Whether to include coupling terms with the nodes connected to the secondary nodes in the Jacobian.
 
const bool _non_displacement_vars_jacobian
 Whether to include coupling terms with non-displacement variables in the Jacobian.
 
Real _al_penetration_tolerance
 The tolerance of the penetration for augmented Lagrangian method.
 
Real _al_incremental_slip_tolerance
 The tolerance of the incremental slip for augmented Lagrangian method.
 
Real _al_frictional_force_tolerance
 The tolerance of the frictional force for augmented Lagrangian method.
 
ContactLineSearchBase_contact_linesearch
 
std::set< dof_id_type > _current_contact_state
 
std::set< dof_id_type > _old_contact_state
 
const bool _print_contact_nodes
 
AugmentedLagrangianContactProblemInterface *const _augmented_lagrange_problem
 
const unsigned int_lagrangian_iteration_number
 
DenseMatrix< Number > _Knn
 
DenseMatrix< Number > _Ken
 
const SparseMatrix< Number > * _jacobian
 
BoundaryID _secondary
 
BoundaryID _primary
 
MooseVariable_var
 
const MooseArray< Point > & _primary_q_point
 
const QBase *const & _primary_qrule
 
std::set< BoundaryID_boundary_ids
 
PenetrationLocator_penetration_locator
 
const Node *const & _current_node
 
const Elem *const & _current_primary
 
const VariableValue_u_secondary
 
VariablePhiValue _phi_secondary
 
VariableTestValue _test_secondary
 
MooseVariable_primary_var
 
unsigned int _primary_var_num
 
const VariablePhiValue_phi_primary
 
const VariablePhiGradient_grad_phi_primary
 
const VariableTestValue_test_primary
 
const VariableTestGradient_grad_test_primary
 
const VariableValue_u_primary
 
const VariableGradient_grad_u_primary
 
const DofMap & _dof_map
 
const std::unordered_map< dof_id_type, std::vector< dof_id_type > > & _node_to_elem_map
 
bool _overwrite_secondary_residual
 
const MooseArray< Real > & _primary_JxW
 
bool _secondary_residual_computed
 
Real _secondary_residual
 
const std::unordered_set< unsigned int_empty_mat_prop_deps
 
std::vector< dof_id_type > _connected_dof_indices
 
DenseMatrix< Number > _Kne
 
DenseMatrix< Number > _Kee
 
unsigned int _i
 
unsigned int _j
 
unsigned int _qp
 
SubProblem_subproblem
 
FEProblemBase_fe_problem
 
SystemBase_sys
 
THREAD_ID _tid
 
Assembly_assembly
 
MooseMesh_mesh
 
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
 
const InputParameters_ti_params
 
FEProblemBase_ti_feproblem
 
bool _is_implicit
 
Real & _t
 
const Real & _t_old
 
int_t_step
 
Real & _dt
 
Real & _dt_old
 
bool _is_transient
 
MooseApp_restartable_app
 
const std::string _restartable_system_name
 
const THREAD_ID _restartable_tid
 
const bool _restartable_read_only
 
FEProblemBase_mci_feproblem
 
DenseVector< Number > _local_re
 
DenseMatrix< Number > _local_ke
 
DenseMatrix< Number > _nonlocal_ke
 
GeometricSearchData_geometric_search_data
 
bool _requires_geometric_search
 
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
 
FEProblemBase_sc_fe_problem
 
const THREAD_ID _sc_tid
 
const Real & _real_zero
 
const VariableValue_scalar_zero
 
const Point & _point_zero
 
bool _nodal
 
MooseVariableFE< T > * _variable
 
MooseVariableFV< T > * _fv_variable
 
MooseLinearVariableFV< T > * _linear_fv_variable
 
MooseVariableField< T > * _field_variable
 
Assembly_mvi_assembly
 
const Parallel::Communicator & _communicator
 

Static Protected Attributes

static Threads::spin_mutex _contact_set_mutex
 
static const unsigned int _no_iterations = 0
 

Private Types

enum  FuncAge
 
enum  VarType
 

Private Member Functions

const Moose::FunctionBasegetKokkosFunctionByNameHelper (const FunctionName &name) const
 
const UserObjectBasegetUserObjectFromFEProblem (const UserObjectName &object_name, const THREAD_ID tid=0) const
 
const TcastUserObject (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 VectorPostprocessorValuegetVectorPostprocessorByNameHelper (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
 
RestartableDataValueregisterRestartableDataOnApp (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
 
void prepareVectorTagInternal (Assembly &assembly, unsigned int ivar, const std::set< TagID > &vector_tags, const std::set< TagID > &absolute_value_vector_tags)
 
void checkForNans () const
 
const OutputTools< T >::VariableValuevectorTagValueHelper (const std::string &var_names, TagID tag, unsigned int index=0) const
 
const OutputTools< T >::VariableValuevectorTagValueHelper (const std::string &var_names, const std::string &tag_name, unsigned int index=0) const
 
const OutputTools< T >::VariableValuevectorTagDofValueHelper (const std::string &var_name, TagID tag, unsigned int comp=0) const
 
const OutputTools< T >::VariableValuevectorTagDofValueHelper (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 VariableValuegetDefaultValue (const std::string &var_name, unsigned int comp) const
 
const VectorVariableValuegetDefaultVectorValue (const std::string &var_name) const
 
const ArrayVariableValuegetDefaultArrayValue (const std::string &var_name) const
 
const TgetDefaultNodalValue (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
 
std::set< MooseVariableFieldBase * > checkVariablesHelper (const DofObjectType &dof_object, const std::set< MooseVariableFieldBase * > &vars_to_check)
 
const PostprocessorValuegetPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueInternal (const std::string &param_name, unsigned int index, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueByNameInternal (const PostprocessorName &name, std::size_t t_index) const
 
const PostprocessorValuegetPostprocessorValueByNameInternal (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

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 std::string _ti_name
 
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
 
RandomData_random_data
 
MooseRandom_generator
 
FEProblemBase_ri_problem
 
const std::string _ri_name
 
unsigned int _master_seed
 
bool _is_nodal
 
ExecFlagType _reset_on
 
const Node *const & _curr_node
 
const Elem *const & _curr_element
 
const RestartableDataMapName _metaname
 
std::string _restartable_name
 
std::set< TagID_vector_tags
 
std::set< TagID_abs_vector_tags
 
std::set< TagID_matrix_tags
 
std::set< TagID_non_ref_vector_tags
 
std::set< TagID_non_ref_abs_vector_tags
 
std::set< TagID_ref_vector_tags
 
std::set< TagID_ref_abs_vector_tags
 
const MooseObject_moose_object
 
const InputParameters_tag_params
 
std::vector< DenseVector< Number > * > _re_blocks
 
std::vector< DenseVector< Number > * > _absre_blocks
 
std::vector< DenseMatrix< Number > * > _ke_blocks
 
std::vector< Real > _absolute_residuals
 
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
 
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
 
std::set< MooseVariableFieldBase * > _moose_variable_dependencies
 
std::vector< libMesh::dof_id_type_dof_indices
 

Detailed Description

A MechanicalContactConstraint forces the value of a variable to be the same on both sides of an interface.

Definition at line 27 of file MechanicalContactConstraint.h.

Constructor & Destructor Documentation

◆ MechanicalContactConstraint()

MechanicalContactConstraint::MechanicalContactConstraint ( const InputParameters parameters)

Definition at line 123 of file MechanicalContactConstraint.C.

125 _displaced_problem(parameters.get<FEProblemBase *>("_fe_problem_base")->getDisplacedProblem()),
126 _component(getParam<unsigned int>("component")),
127 _model(getParam<MooseEnum>("model").getEnum<ContactModel>()),
128 _formulation(getParam<MooseEnum>("formulation").getEnum<ContactFormulation>()),
129 _normalize_penalty(getParam<bool>("normalize_penalty")),
130 _penalty(getParam<Real>("penalty")),
131 _penalty_multiplier(getParam<Real>("penalty_multiplier")),
132 _friction_coefficient(getParam<Real>("friction_coefficient")),
133 _tension_release(getParam<Real>("tension_release")),
134 _capture_tolerance(getParam<Real>("capture_tolerance")),
135 _stick_lock_iterations(getParam<unsigned int>("stick_lock_iterations")),
136 _stick_unlock_factor(getParam<Real>("stick_unlock_factor")),
141 _var_objects(3, nullptr),
142 _has_secondary_gap_offset(isCoupled("secondary_gap_offset")),
144 : nullptr),
145 _has_mapped_primary_gap_offset(isCoupled("mapped_primary_gap_offset")),
147 _has_mapped_primary_gap_offset ? getVar("mapped_primary_gap_offset", 0) : nullptr),
148 _nodal_area_var(getVar("nodal_area", 0)),
150 _aux_solution(_aux_system.currentSolution()),
151 _primary_secondary_jacobian(getParam<bool>("primary_secondary_jacobian")),
152 _connected_secondary_nodes_jacobian(getParam<bool>("connected_secondary_nodes_jacobian")),
153 _non_displacement_vars_jacobian(getParam<bool>("non_displacement_variables_jacobian")),
154 _contact_linesearch(dynamic_cast<ContactLineSearchBase *>(_subproblem.getLineSearch())),
155 _print_contact_nodes(getParam<bool>("print_contact_nodes")),
159 ? _augmented_lagrange_problem->getLagrangianIterationNumber()
161{
163
164 if (isParamValid("displacements"))
165 {
166 // modern parameter scheme for displacements
167 for (unsigned int i = 0; i < coupledComponents("displacements"); ++i)
168 {
169 _vars[i] = coupled("displacements", i);
170 _var_objects[i] = getVar("displacements", i);
171 }
172 }
173
174 if (parameters.isParamValid("tangential_tolerance"))
175 _penetration_locator.setTangentialTolerance(getParam<Real>("tangential_tolerance"));
176
177 if (parameters.isParamValid("normal_smoothing_distance"))
178 _penetration_locator.setNormalSmoothingDistance(getParam<Real>("normal_smoothing_distance"));
179
180 if (parameters.isParamValid("normal_smoothing_method"))
182 parameters.get<std::string>("normal_smoothing_method"));
183
184 if (_formulation == ContactFormulation::TANGENTIAL_PENALTY && _model != ContactModel::COULOMB)
185 mooseError("The 'tangential_penalty' formulation can only be used with the 'coulomb' model");
186
187 if (_model == ContactModel::GLUED)
189
190 if (_friction_coefficient < 0)
191 mooseError("The friction coefficient must be nonnegative");
192
193 // set _penalty_tangential to the value of _penalty for now
195
196 if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
197 {
198 if (_model == ContactModel::GLUED)
199 mooseError("The Augmented Lagrangian contact formulation does not support GLUED case.");
200
202 mooseError("The Augmented Lagrangian contact formulation must use "
203 "AugmentedLagrangianContactProblem.");
204
205 if (!parameters.isParamValid("al_penetration_tolerance"))
206 mooseError("For Augmented Lagrangian contact, al_penetration_tolerance must be provided.");
207 else
208 _al_penetration_tolerance = parameters.get<Real>("al_penetration_tolerance");
209
210 if (_model != ContactModel::FRICTIONLESS)
211 {
212 if (!parameters.isParamValid("al_incremental_slip_tolerance") ||
213 !parameters.isParamValid("al_frictional_force_tolerance"))
214 {
215 mooseError("For the Augmented Lagrangian frictional contact formualton, "
216 "al_incremental_slip_tolerance and "
217 "al_frictional_force_tolerance must be provided.");
218 }
219 else
220 {
221 _al_incremental_slip_tolerance = parameters.get<Real>("al_incremental_slip_tolerance");
222 _al_frictional_force_tolerance = parameters.get<Real>("al_frictional_force_tolerance");
223 }
224 }
225 }
226}
Class to provide an interface for parameters and routines required to check convergence for the augme...
This class implements a custom line search for use with mechanical contact.
MooseVariable * getVar(const std::string &var_name, unsigned int comp)
unsigned int coupledComponents(const std::string &var_name) const
virtual unsigned int coupled(const std::string &var_name, unsigned int comp=0) const
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
std::vector< std::pair< R1, R2 > > get(const std::string &param1, const std::string &param2) const
bool isParamValid(const std::string &name) const
const bool _connected_secondary_nodes_jacobian
Whether to include coupling terms with the nodes connected to the secondary nodes in the Jacobian.
Real _al_frictional_force_tolerance
The tolerance of the frictional force for augmented Lagrangian method.
AugmentedLagrangianContactProblemInterface *const _augmented_lagrange_problem
static const unsigned int _no_iterations
const MooseVariable *const _mapped_primary_gap_offset_var
ContactLineSearchBase * _contact_linesearch
const bool _non_displacement_vars_jacobian
Whether to include coupling terms with non-displacement variables in the Jacobian.
std::vector< MooseVariable * > _var_objects
const bool _primary_secondary_jacobian
Whether to include coupling between the primary and secondary nodes in the Jacobian.
Real _al_incremental_slip_tolerance
The tolerance of the incremental slip for augmented Lagrangian method.
MooseSharedPointer< DisplacedProblem > _displaced_problem
const MooseVariable *const _secondary_gap_offset_var
const NumericVector< Number > *const _aux_solution
const unsigned int & _lagrangian_iteration_number
NumericVector< Number > & _residual_copy
const bool _has_secondary_gap_offset
gap offset from either secondary, primary or both
Real _al_penetration_tolerance
The tolerance of the penetration for augmented Lagrangian method.
const InputParameters & parameters() const
void mooseError(Args &&... args) const
const T & getParam(const std::string &name) const
bool isParamValid(const std::string &name) const
virtual unsigned int dimension() const
PenetrationLocator & _penetration_locator
bool _overwrite_secondary_residual
void setNormalSmoothingMethod(std::string nsmString)
void setUpdate(bool update)
void setTangentialTolerance(Real tangential_tolerance)
void setNormalSmoothingDistance(Real normal_smoothing_distance)
MooseMesh & _mesh
SubProblem & _subproblem
SystemBase & _sys
FEProblemBase & _fe_problem
virtual NumericVector< Number > & residualGhosted()
const unsigned int invalid_uint
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real

Member Function Documentation

◆ addCouplingEntriesToJacobian()

virtual bool MechanicalContactConstraint::addCouplingEntriesToJacobian ( )
inlineoverridevirtual

Reimplemented from NodeFaceConstraint.

Definition at line 84 of file MechanicalContactConstraint.h.

◆ AugmentedLagrangianContactConverged()

bool MechanicalContactConstraint::AugmentedLagrangianContactConverged ( )
virtual

Definition at line 333 of file MechanicalContactConstraint.C.

334{
335 Real contactResidual = 0.0;
336 unsigned int converged = 0;
337
338 for (auto & [secondary_node_num, pinfo] : _penetration_locator._penetration_info)
339 {
340 if (!pinfo)
341 continue;
342
343 const auto & node = _mesh.nodeRef(secondary_node_num);
344
345 // Skip this pinfo if there are no DOFs on this node.
346 if (node.n_comp(_sys.number(), _vars[_component]) < 1)
347 continue;
348
349 const Real distance = pinfo->_normal * (pinfo->_closest_point - node) - gapOffset(node);
350
351 if (pinfo->isCaptured())
352 {
353 if (contactResidual < std::abs(distance))
354 contactResidual = std::abs(distance);
355
356 // penetration < tol
357 if (contactResidual > _al_penetration_tolerance)
358 {
359 converged = 1;
360 break;
361 }
362
363 if (_model == ContactModel::COULOMB)
364 {
365 RealVectorValue contact_force_normal((pinfo->_contact_force * pinfo->_normal) *
366 pinfo->_normal);
367 RealVectorValue contact_force_tangential(pinfo->_contact_force - contact_force_normal);
368
369 RealVectorValue tangential_inc_slip =
370 pinfo->_incremental_slip - (pinfo->_incremental_slip * pinfo->_normal) * pinfo->_normal;
371
372 const Real tan_mag(contact_force_tangential.norm());
373 const Real tangential_inc_slip_mag = tangential_inc_slip.norm();
374
375 RealVectorValue distance_vec =
376 (pinfo->_normal * (node - pinfo->_closest_point) + gapOffset(node)) * pinfo->_normal;
377
378 Real penalty = getPenalty(node);
379 RealVectorValue pen_force_normal =
380 penalty * distance_vec + pinfo->_lagrange_multiplier * pinfo->_normal;
381
382 // Frictional capacity
383 Real capacity(_friction_coefficient * (pen_force_normal * pinfo->_normal < 0
384 ? -pen_force_normal * pinfo->_normal
385 : 0.0));
386
387 // incremental slip <= tol for all pinfo_pair such that tan_mag < capacity
388 if (MooseUtils::absoluteFuzzyLessThan(tan_mag, capacity) &&
389 pinfo->_mech_status == PenetrationInfo::MS_STICKING)
390 {
391 if (MooseUtils::absoluteFuzzyGreaterThan(tangential_inc_slip_mag,
393 {
394 converged = 2;
395 break;
396 }
397 }
398
399 // for all pinfo_pair, tag_mag should be less than (1 + tol) * (capacity + tol)
400 if (tan_mag >
402 {
403 converged = 3;
404 break;
405 }
406 }
407 }
408 }
409
410 _communicator.max(converged);
411
412 if (converged == 1)
413 _console << "The Augmented Lagrangian contact tangential sliding enforcement is NOT satisfied "
414 << std::endl;
415 else if (converged == 2)
416 _console << "The Augmented Lagrangian contact tangential sliding enforcement is NOT satisfied "
417 << std::endl;
418 else if (converged == 3)
419 _console << "The Augmented Lagrangian contact frictional force enforcement is NOT satisfied "
420 << std::endl;
421 else
422 return true;
423
424 return false;
425}
const ConsoleStream _console
virtual const Node & nodeRef(const dof_id_type i) const
unsigned int number() const
void max(const T &r, T &o, Request &req) const
const Parallel::Communicator & _communicator
bool converged(const std::vector< std::pair< unsigned int, Real > > &residuals, const std::vector< Real > &abs_tolerances)
Based on the residuals, determine if the iterative process converged or not.
VectorValue< Real > RealVectorValue
Real distance(const Point &p)

◆ computeContactForce()

void MechanicalContactConstraint::computeContactForce ( const Node &  node,
PenetrationInfo pinfo,
bool  update_contact_set 
)

Definition at line 502 of file MechanicalContactConstraint.C.

505{
506 // Build up residual vector
507 RealVectorValue res_vec;
508 for (unsigned int i = 0; i < _mesh_dimension; ++i)
509 {
510 dof_id_type dof_number = node.dof_number(0, _vars[i], 0);
511 res_vec(i) = _residual_copy(dof_number) / _var_objects[i]->scalingFactor();
512 }
513
514 RealVectorValue distance_vec(node - pinfo->_closest_point);
515 if (distance_vec.norm() != 0)
516 distance_vec += gapOffset(node) * pinfo->_normal * distance_vec.unit() * distance_vec.unit();
517
518 const Real gap_size = -1.0 * pinfo->_normal * distance_vec;
519
520 // This is for preventing an increment of pinfo->_locked_this_step for nodes that are
521 // captured and released in this function
522 bool newly_captured = false;
523
524 // Capture nodes that are newly in contact
525 if (update_contact_set && !pinfo->isCaptured() &&
526 MooseUtils::absoluteFuzzyGreaterEqual(gap_size, 0.0, _capture_tolerance))
527 {
528 newly_captured = true;
529 pinfo->capture();
530
531 // Increment the lock count every time the node comes back into contact from not being in
532 // contact.
533 if (_formulation == ContactFormulation::KINEMATIC ||
534 _formulation == ContactFormulation::TANGENTIAL_PENALTY)
535 ++pinfo->_locked_this_step;
536 }
537
538 if (!pinfo->isCaptured())
539 return;
540
541 const Real penalty = getPenalty(node);
542 const Real penalty_slip = getTangentialPenalty(node);
543
544 RealVectorValue pen_force(penalty * distance_vec);
545
546 switch (_model)
547 {
548 case ContactModel::FRICTIONLESS:
549 switch (_formulation)
550 {
551 case ContactFormulation::KINEMATIC:
552 pinfo->_contact_force = -pinfo->_normal * (pinfo->_normal * res_vec);
553 break;
554
555 case ContactFormulation::PENALTY:
556 pinfo->_contact_force = pinfo->_normal * (pinfo->_normal * pen_force);
557 break;
558
559 case ContactFormulation::AUGMENTED_LAGRANGE:
560 pinfo->_contact_force =
561 (pinfo->_normal *
562 (pinfo->_normal * (pen_force + pinfo->_lagrange_multiplier * pinfo->_normal)));
563 break;
564
565 default:
566 mooseError("Invalid contact formulation");
567 break;
568 }
570 break;
571 case ContactModel::COULOMB:
572 switch (_formulation)
573 {
574 case ContactFormulation::KINEMATIC:
575 {
576 // Frictional capacity
577 const Real capacity(_friction_coefficient *
578 (res_vec * pinfo->_normal > 0 ? res_vec * pinfo->_normal : 0));
579
580 // Normal and tangential components of predictor force
581 pinfo->_contact_force = -res_vec;
582 RealVectorValue contact_force_normal((pinfo->_contact_force * pinfo->_normal) *
583 pinfo->_normal);
584 RealVectorValue contact_force_tangential(pinfo->_contact_force - contact_force_normal);
585
586 RealVectorValue tangential_inc_slip =
587 pinfo->_incremental_slip -
588 (pinfo->_incremental_slip * pinfo->_normal) * pinfo->_normal;
589
590 // Magnitude of tangential predictor force
591 const Real tan_mag(contact_force_tangential.norm());
592 const Real tangential_inc_slip_mag = tangential_inc_slip.norm();
593 const Real slip_tol = capacity / penalty;
594 pinfo->_slip_tol = slip_tol;
595
596 if ((tangential_inc_slip_mag > slip_tol || tan_mag > capacity) &&
598 tan_mag > capacity * _stick_unlock_factor))
599 {
601 pinfo->_stick_locked_this_step = 0;
602
603 // Check for scenario where node has slipped too far in a previous iteration
604 // for special treatment (only done if the incremental slip is non-trivial)
605 bool slipped_too_far = false;
606 RealVectorValue slip_inc_direction;
607 if (tangential_inc_slip_mag > slip_tol)
608 {
609 slip_inc_direction = tangential_inc_slip / tangential_inc_slip_mag;
610 Real slip_dot_tang_force = slip_inc_direction * contact_force_tangential;
611 if (slip_dot_tang_force < capacity)
612 slipped_too_far = true;
613 }
614
615 if (slipped_too_far) // slip back along slip increment
616 pinfo->_contact_force = contact_force_normal + capacity * slip_inc_direction;
617 else
618 {
619 if (tan_mag > 0) // slip along tangential force direction
620 pinfo->_contact_force =
621 contact_force_normal + capacity * contact_force_tangential / tan_mag;
622 else // treat as frictionless
623 pinfo->_contact_force = contact_force_normal;
624 }
625 if (capacity == 0)
627 else
629 }
630 else
631 {
636 }
637 break;
638 }
639
640 case ContactFormulation::PENALTY:
641 {
642 distance_vec =
643 pinfo->_incremental_slip +
644 (pinfo->_normal * (node - pinfo->_closest_point) + gapOffset(node)) * pinfo->_normal;
645 pen_force = penalty * distance_vec;
646
647 // Frictional capacity
648 const Real capacity(_friction_coefficient *
649 (pen_force * pinfo->_normal < 0 ? -pen_force * pinfo->_normal : 0));
650
651 // Elastic predictor
652 pinfo->_contact_force =
653 pen_force + (pinfo->_contact_force_old -
654 pinfo->_normal * (pinfo->_normal * pinfo->_contact_force_old));
655 RealVectorValue contact_force_normal((pinfo->_contact_force * pinfo->_normal) *
656 pinfo->_normal);
657 RealVectorValue contact_force_tangential(pinfo->_contact_force - contact_force_normal);
658
659 // Tangential magnitude of elastic predictor
660 const Real tan_mag(contact_force_tangential.norm());
661
662 if (tan_mag > capacity)
663 {
664 pinfo->_contact_force =
665 contact_force_normal + capacity * contact_force_tangential / tan_mag;
666 if (MooseUtils::absoluteFuzzyEqual(capacity, 0))
668 else
670 }
671 else
673 break;
674 }
675
676 case ContactFormulation::AUGMENTED_LAGRANGE:
677 {
678 distance_vec =
679 (pinfo->_normal * (node - pinfo->_closest_point) + gapOffset(node)) * pinfo->_normal;
680
681 RealVectorValue contact_force_normal =
682 penalty * distance_vec + pinfo->_lagrange_multiplier * pinfo->_normal;
683
684 RealVectorValue tangential_inc_slip =
685 pinfo->_incremental_slip -
686 (pinfo->_incremental_slip * pinfo->_normal) * pinfo->_normal;
687
688 RealVectorValue contact_force_tangential =
690 (pinfo->_contact_force_old -
691 pinfo->_normal * (pinfo->_normal * pinfo->_contact_force_old));
692
693 RealVectorValue inc_pen_force_tangential = penalty_slip * tangential_inc_slip;
694
696 pinfo->_contact_force =
697 contact_force_normal + contact_force_tangential + inc_pen_force_tangential;
698 else
699 pinfo->_contact_force = contact_force_normal + contact_force_tangential;
700
701 break;
702 }
703
704 case ContactFormulation::TANGENTIAL_PENALTY:
705 {
706 // Frictional capacity (kinematic formulation)
707 const Real capacity = _friction_coefficient * std::max(res_vec * pinfo->_normal, 0.0);
708
709 // Normal component of contact force (kinematic formulation)
710 RealVectorValue contact_force_normal((-res_vec * pinfo->_normal) * pinfo->_normal);
711
712 // Predictor tangential component of contact force (penalty formulation)
713 RealVectorValue inc_pen_force_tangential = penalty * pinfo->_incremental_slip;
714 RealVectorValue contact_force_tangential =
715 inc_pen_force_tangential +
716 (pinfo->_contact_force_old -
717 pinfo->_normal * (pinfo->_normal * pinfo->_contact_force_old));
718
719 // Magnitude of tangential predictor
720 const Real tan_mag(contact_force_tangential.norm());
721
722 if (tan_mag > capacity)
723 {
724 pinfo->_contact_force =
725 contact_force_normal + capacity * contact_force_tangential / tan_mag;
726 if (MooseUtils::absoluteFuzzyEqual(capacity, 0))
728 else
730 }
731 else
732 {
733 pinfo->_contact_force = contact_force_normal + contact_force_tangential;
735 }
736 break;
737 }
738
739 default:
740 mooseError("Invalid contact formulation");
741 break;
742 }
743 break;
744
745 case ContactModel::GLUED:
746 switch (_formulation)
747 {
748 case ContactFormulation::KINEMATIC:
749 pinfo->_contact_force = -res_vec;
750 break;
751
752 case ContactFormulation::PENALTY:
753 pinfo->_contact_force = pen_force;
754 break;
755
756 case ContactFormulation::AUGMENTED_LAGRANGE:
757 pinfo->_contact_force =
758 pen_force + pinfo->_lagrange_multiplier * distance_vec / distance_vec.norm();
759 break;
760
761 default:
762 mooseError("Invalid contact formulation");
763 break;
764 }
766 break;
767
768 default:
769 mooseError("Invalid or unavailable contact model");
770 break;
771 }
772
773 // Release
774 if (update_contact_set && _model != ContactModel::GLUED && pinfo->isCaptured() &&
775 !newly_captured && _tension_release >= 0.0 &&
776 (_contact_linesearch ? true : pinfo->_locked_this_step < 2))
777 {
778 const Real contact_pressure = -(pinfo->_normal * pinfo->_contact_force) / nodalArea(node);
779 if (-contact_pressure >= _tension_release)
780 {
781 pinfo->release();
782 pinfo->_contact_force.zero();
783 }
784 }
785}
MECH_STATUS_ENUM _mech_status
RealVectorValue _contact_force_old
unsigned int _locked_this_step
RealVectorValue _contact_force
Point _incremental_slip
bool isCaptured() const
Real _lagrange_multiplier
RealVectorValue _lagrange_multiplier_slip
RealVectorValue _normal
unsigned int _stick_locked_this_step
uint8_t dof_id_type

Referenced by shouldApply().

◆ computeJacobian()

void MechanicalContactConstraint::computeJacobian ( )
overridevirtual

Computes the jacobian for the current element.

Reimplemented from NodeFaceConstraint.

Definition at line 1737 of file MechanicalContactConstraint.C.

1738{
1740
1743
1745
1746 for (_i = 0; _i < _test_secondary.size(); _i++)
1747 // Loop over the connected dof indices so we can get all the jacobian contributions
1748 for (_j = 0; _j < _connected_dof_indices.size(); _j++)
1750
1752 {
1754 if (_Ken.m() && _Ken.n())
1755 {
1756 for (_i = 0; _i < _test_secondary.size(); _i++)
1757 for (_j = 0; _j < _phi_primary.size(); _j++)
1761 }
1762
1764 for (_i = 0; _i < _test_primary.size(); _i++)
1765 // Loop over the connected dof indices so we can get all the jacobian contributions
1766 for (_j = 0; _j < _connected_dof_indices.size(); _j++)
1768 }
1769
1770 if (_Knn.m() && _Knn.n())
1771 {
1772 for (_i = 0; _i < _test_primary.size(); _i++)
1773 for (_j = 0; _j < _phi_primary.size(); _j++)
1777 }
1778}
unsigned int _j
unsigned int _i
virtual void getConnectedDofIndices(unsigned int var_num) override
Get the dof indices of the nodes connected to the secondary node for a specific variable.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
unsigned int number() const
DenseMatrix< Number > _Kee
VariableTestValue _test_secondary
std::vector< dof_id_type > _connected_dof_indices
const VariableTestValue & _test_primary
DenseMatrix< Number > _Kne
MooseVariable & _var
const VariablePhiValue & _phi_primary
MooseVariable & _primary_var
Assembly & _assembly
void accumulateTaggedLocalMatrix()
void prepareMatrixTagNeighbor(Assembly &assembly, unsigned int ivar, unsigned int jvar, Moose::DGJacobianType type)
unsigned int n() const
unsigned int m() const
void resize(const unsigned int new_m, const unsigned int new_n)
SecondarySecondary
SecondaryPrimary
PrimarySecondary
PrimaryPrimary
NeighborNeighbor
ElementNeighbor

◆ computeOffDiagJacobian()

void MechanicalContactConstraint::computeOffDiagJacobian ( unsigned int  jvar)
overridevirtual

Compute off-diagonal Jacobian entries.

Parameters
jvarThe index of the coupled variable

Reimplemented from NodeFaceConstraint.

Definition at line 1781 of file MechanicalContactConstraint.C.

1782{
1783 getConnectedDofIndices(jvar_num);
1784
1786
1789
1790 for (_i = 0; _i < _test_secondary.size(); _i++)
1791 // Loop over the connected dof indices so we can get all the jacobian contributions
1792 for (_j = 0; _j < _connected_dof_indices.size(); _j++)
1794
1796 {
1798 for (_i = 0; _i < _test_secondary.size(); _i++)
1799 for (_j = 0; _j < _phi_primary.size(); _j++)
1802
1804 if (_Kne.m() && _Kne.n())
1805 for (_i = 0; _i < _test_primary.size(); _i++)
1806 // Loop over the connected dof indices so we can get all the jacobian contributions
1807 for (_j = 0; _j < _connected_dof_indices.size(); _j++)
1809 }
1810
1811 for (_i = 0; _i < _test_primary.size(); _i++)
1812 for (_j = 0; _j < _phi_primary.size(); _j++)
1816}
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType type, unsigned int jvar) override
Compute off-diagonal Jacobian entries.

◆ computeQpJacobian()

Real MechanicalContactConstraint::computeQpJacobian ( Moose::ConstraintJacobianType  type)
overridevirtual

Implements NodeFaceConstraint.

Definition at line 847 of file MechanicalContactConstraint.C.

848{
850
851 const Real penalty = getPenalty(*_current_node);
852 const Real penalty_slip = getTangentialPenalty(*_current_node);
853
854 switch (type)
855 {
856 default:
857 mooseError("Unhandled ConstraintJacobianType");
858
860 switch (_model)
861 {
862 case ContactModel::FRICTIONLESS:
863 switch (_formulation)
864 {
865 case ContactFormulation::KINEMATIC:
866 {
867 RealVectorValue jac_vec;
868 for (unsigned int i = 0; i < _mesh_dimension; ++i)
869 {
870 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
871 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
872 _var_objects[i]->scalingFactor();
873 }
874 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) +
875 (_phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
876 pinfo->_normal(_component) * pinfo->_normal(_component);
877 }
878
879 case ContactFormulation::PENALTY:
880 case ContactFormulation::AUGMENTED_LAGRANGE:
881 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
882 pinfo->_normal(_component) * pinfo->_normal(_component);
883
884 default:
885 mooseError("Invalid contact formulation");
886 }
887
888 case ContactModel::COULOMB:
889 switch (_formulation)
890 {
891 case ContactFormulation::KINEMATIC:
892 {
895 {
896 RealVectorValue jac_vec;
897 for (unsigned int i = 0; i < _mesh_dimension; ++i)
898 {
899 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
900 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
901 _var_objects[i]->scalingFactor();
902 }
903 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) +
904 (_phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
905 pinfo->_normal(_component) * pinfo->_normal(_component);
906 }
907 else
908 {
909 const Real curr_jac =
910 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
913 return (-curr_jac + _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]);
914 }
915 }
916
917 case ContactFormulation::PENALTY:
918 {
921 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
922 pinfo->_normal(_component) * pinfo->_normal(_component);
923 else
924 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp];
925 }
926 case ContactFormulation::AUGMENTED_LAGRANGE:
927 {
928 Real normal_comp = _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
929 pinfo->_normal(_component) * pinfo->_normal(_component);
930
931 Real tang_comp = 0.0;
933 tang_comp = _phi_secondary[_j][_qp] * penalty_slip * _test_secondary[_i][_qp] *
934 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
935 return normal_comp + tang_comp;
936 }
937
938 case ContactFormulation::TANGENTIAL_PENALTY:
939 {
940 RealVectorValue jac_vec;
941 for (unsigned int i = 0; i < _mesh_dimension; ++i)
942 {
943 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
944 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
945 _var_objects[i]->scalingFactor();
946 }
947 Real normal_comp = -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) +
948 (_phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
949 pinfo->_normal(_component) * pinfo->_normal(_component);
950
951 Real tang_comp = 0.0;
953 tang_comp = _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
954 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
955
956 return normal_comp + tang_comp;
957 }
958
959 default:
960 mooseError("Invalid contact formulation");
961 }
962
963 case ContactModel::GLUED:
964 switch (_formulation)
965 {
966 case ContactFormulation::KINEMATIC:
967 {
968 const Real curr_jac = (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
971 return (-curr_jac + _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]);
972 }
973
974 case ContactFormulation::PENALTY:
975 case ContactFormulation::AUGMENTED_LAGRANGE:
976 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp];
977
978 default:
979 mooseError("Invalid contact formulation");
980 }
981 default:
982 mooseError("Invalid or unavailable contact model");
983 }
984
986 switch (_model)
987 {
988 case ContactModel::FRICTIONLESS:
989 switch (_formulation)
990 {
991 case ContactFormulation::KINEMATIC:
992 {
993 const Node * curr_primary_node = _current_primary->node_ptr(_j);
994
995 RealVectorValue jac_vec;
996 for (unsigned int i = 0; i < _mesh_dimension; ++i)
997 {
998 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
999 jac_vec(i) = (*_jacobian)(dof_number,
1000 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1001 _var_objects[i]->scalingFactor();
1002 }
1003 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) -
1004 (_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1005 pinfo->_normal(_component) * pinfo->_normal(_component);
1006 }
1007
1008 case ContactFormulation::PENALTY:
1009 case ContactFormulation::AUGMENTED_LAGRANGE:
1010 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1011 pinfo->_normal(_component) * pinfo->_normal(_component);
1012
1013 default:
1014 mooseError("Invalid contact formulation");
1015 }
1016
1017 case ContactModel::COULOMB:
1018 switch (_formulation)
1019 {
1020 case ContactFormulation::KINEMATIC:
1021 {
1024 {
1025 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1026
1027 RealVectorValue jac_vec;
1028 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1029 {
1030 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1031 jac_vec(i) =
1032 (*_jacobian)(dof_number,
1033 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1034 _var_objects[i]->scalingFactor();
1035 }
1036 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) -
1037 (_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1038 pinfo->_normal(_component) * pinfo->_normal(_component);
1039 }
1040 else
1041 {
1042 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1043 const Real curr_jac =
1044 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1045 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1047 return (-curr_jac - _phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]);
1048 }
1049 }
1050
1051 case ContactFormulation::PENALTY:
1052 {
1055 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1056 pinfo->_normal(_component) * pinfo->_normal(_component);
1057 else
1058 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp];
1059 }
1060 case ContactFormulation::AUGMENTED_LAGRANGE:
1061 {
1062 Real normal_comp = -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1063 pinfo->_normal(_component) * pinfo->_normal(_component);
1064
1065 Real tang_comp = 0.0;
1067 tang_comp = -_phi_primary[_j][_qp] * penalty_slip * _test_secondary[_i][_qp] *
1068 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1069 return normal_comp + tang_comp;
1070 }
1071
1072 case ContactFormulation::TANGENTIAL_PENALTY:
1073 {
1074 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1075
1076 RealVectorValue jac_vec;
1077 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1078 {
1079 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1080 jac_vec(i) = (*_jacobian)(dof_number,
1081 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1082 _var_objects[i]->scalingFactor();
1083 }
1084 Real normal_comp = -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) -
1085 (_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1086 pinfo->_normal(_component) * pinfo->_normal(_component);
1087
1088 Real tang_comp = 0.0;
1090 tang_comp = -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1091 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1092
1093 return normal_comp + tang_comp;
1094 }
1095
1096 default:
1097 mooseError("Invalid contact formulation");
1098 }
1099 case ContactModel::GLUED:
1100 switch (_formulation)
1101 {
1102 case ContactFormulation::KINEMATIC:
1103 {
1104 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1105 const Real curr_jac =
1106 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1107 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1109 return (-curr_jac - _phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]);
1110 }
1111
1112 case ContactFormulation::PENALTY:
1113 case ContactFormulation::AUGMENTED_LAGRANGE:
1114 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp];
1115
1116 default:
1117 mooseError("Invalid contact formulation");
1118 }
1119
1120 default:
1121 mooseError("Invalid or unavailable contact model");
1122 }
1123
1125 switch (_model)
1126 {
1127 case ContactModel::FRICTIONLESS:
1128 switch (_formulation)
1129 {
1130 case ContactFormulation::KINEMATIC:
1131 {
1132 RealVectorValue jac_vec;
1133 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1134 {
1135 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1136 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1137 _var_objects[i]->scalingFactor();
1138 }
1139 return pinfo->_normal(_component) * (pinfo->_normal * jac_vec) *
1141 }
1142
1143 case ContactFormulation::PENALTY:
1144 case ContactFormulation::AUGMENTED_LAGRANGE:
1145 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp] *
1146 pinfo->_normal(_component) * pinfo->_normal(_component);
1147
1148 default:
1149 mooseError("Invalid contact formulation");
1150 }
1151 case ContactModel::COULOMB:
1152 switch (_formulation)
1153 {
1154 case ContactFormulation::KINEMATIC:
1155 {
1158 {
1159 RealVectorValue jac_vec;
1160 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1161 {
1162 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1163 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1164 _var_objects[i]->scalingFactor();
1165 }
1166 return pinfo->_normal(_component) * (pinfo->_normal * jac_vec) *
1168 }
1169 else
1170 {
1171 const Real secondary_jac =
1172 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1175 return secondary_jac * _test_primary[_i][_qp];
1176 }
1177 }
1178
1179 case ContactFormulation::PENALTY:
1180 {
1183 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp] *
1184 pinfo->_normal(_component) * pinfo->_normal(_component);
1185 else
1186 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp];
1187 }
1188 case ContactFormulation::AUGMENTED_LAGRANGE:
1189 {
1190 Real normal_comp = -_phi_secondary[_j][_qp] * penalty * _test_primary[_i][_qp] *
1191 pinfo->_normal(_component) * pinfo->_normal(_component);
1192
1193 Real tang_comp = 0.0;
1195 tang_comp = -_phi_secondary[_j][_qp] * penalty_slip * _test_primary[_i][_qp] *
1196 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1197 return normal_comp + tang_comp;
1198 }
1199
1200 case ContactFormulation::TANGENTIAL_PENALTY:
1201 {
1202 RealVectorValue jac_vec;
1203 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1204 {
1205 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1206 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1207 _var_objects[i]->scalingFactor();
1208 }
1209 Real normal_comp =
1210 pinfo->_normal(_component) * (pinfo->_normal * jac_vec) * _test_primary[_i][_qp];
1211
1212 Real tang_comp = 0.0;
1214 tang_comp = -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp] *
1215 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1216
1217 return normal_comp + tang_comp;
1218 }
1219
1220 default:
1221 mooseError("Invalid contact formulation");
1222 }
1223
1224 case ContactModel::GLUED:
1225 switch (_formulation)
1226 {
1227 case ContactFormulation::KINEMATIC:
1228 {
1229 const Real secondary_jac =
1230 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1233 return secondary_jac * _test_primary[_i][_qp];
1234 }
1235
1236 case ContactFormulation::PENALTY:
1237 case ContactFormulation::AUGMENTED_LAGRANGE:
1238 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp];
1239
1240 default:
1241 mooseError("Invalid contact formulation");
1242 }
1243
1244 default:
1245 mooseError("Invalid or unavailable contact model");
1246 }
1247
1249 switch (_model)
1250 {
1251 case ContactModel::FRICTIONLESS:
1252 switch (_formulation)
1253 {
1254 case ContactFormulation::KINEMATIC:
1255 return 0.0;
1256
1257 case ContactFormulation::PENALTY:
1258 case ContactFormulation::AUGMENTED_LAGRANGE:
1259 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1260 pinfo->_normal(_component) * pinfo->_normal(_component);
1261
1262 default:
1263 mooseError("Invalid contact formulation");
1264 }
1265
1266 case ContactModel::COULOMB:
1267 case ContactModel::GLUED:
1268 switch (_formulation)
1269 {
1270 case ContactFormulation::KINEMATIC:
1271 return 0.0;
1272
1273 case ContactFormulation::PENALTY:
1274 {
1277 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1278 pinfo->_normal(_component) * pinfo->_normal(_component);
1279 else
1280 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp];
1281 }
1282
1283 case ContactFormulation::TANGENTIAL_PENALTY:
1284 {
1285 Real tang_comp = 0.0;
1287 tang_comp = _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1288 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1289 return tang_comp; // normal component is zero
1290 }
1291
1292 case ContactFormulation::AUGMENTED_LAGRANGE:
1293 {
1294 Real normal_comp = _phi_primary[_j][_qp] * penalty * _test_primary[_i][_qp] *
1295 pinfo->_normal(_component) * pinfo->_normal(_component);
1296
1297 Real tang_comp = 0.0;
1299 tang_comp = _phi_primary[_j][_qp] * penalty_slip * _test_primary[_i][_qp] *
1300 (1.0 - pinfo->_normal(_component) * pinfo->_normal(_component));
1301 return normal_comp + tang_comp;
1302 }
1303
1304 default:
1305 mooseError("Invalid contact formulation");
1306 }
1307
1308 default:
1309 mooseError("Invalid or unavailable contact model");
1310 }
1311 }
1312
1313 return 0.0;
1314}
unsigned int _qp
const std::string & type() const
void scalingFactor(const std::vector< Real > &factor)
const Node *const & _current_node
const Elem *const & _current_primary
VariablePhiValue _phi_secondary
std::map< dof_id_type, PenetrationInfo * > & _penetration_info

Referenced by computeJacobian().

◆ computeQpOffDiagJacobian()

Real MechanicalContactConstraint::computeQpOffDiagJacobian ( Moose::ConstraintJacobianType  type,
unsigned int  jvar 
)
overridevirtual

Compute off-diagonal Jacobian entries.

Parameters
typeThe type of coupling
jvarThe index of the coupled variable

Reimplemented from NodeFaceConstraint.

Definition at line 1317 of file MechanicalContactConstraint.C.

1319{
1321
1322 const Real penalty = getPenalty(*_current_node);
1323 const Real penalty_slip = getTangentialPenalty(*_current_node);
1324
1325 unsigned int coupled_component;
1326 Real normal_component_in_coupled_var_dir = 1.0;
1327 if (getCoupledVarComponent(jvar, coupled_component))
1328 normal_component_in_coupled_var_dir = pinfo->_normal(coupled_component);
1329
1330 switch (type)
1331 {
1332 default:
1333 mooseError("Unhandled ConstraintJacobianType");
1334
1336 switch (_model)
1337 {
1338 case ContactModel::FRICTIONLESS:
1339 switch (_formulation)
1340 {
1341 case ContactFormulation::KINEMATIC:
1342 {
1343 RealVectorValue jac_vec;
1344 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1345 {
1346 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1347 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1348 _var_objects[i]->scalingFactor();
1349 }
1350 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) +
1351 (_phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1352 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1353 }
1354
1355 case ContactFormulation::PENALTY:
1356 case ContactFormulation::AUGMENTED_LAGRANGE:
1357 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1358 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1359
1360 default:
1361 mooseError("Invalid contact formulation");
1362 }
1363
1364 case ContactModel::COULOMB:
1365 {
1366 if ((_formulation == ContactFormulation::KINEMATIC ||
1367 _formulation == ContactFormulation::TANGENTIAL_PENALTY) &&
1370 {
1371 RealVectorValue jac_vec;
1372 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1373 {
1374 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1375 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1376 _var_objects[i]->scalingFactor();
1377 }
1378
1379 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) +
1380 (_phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1381 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1382 }
1383 else if ((_formulation == ContactFormulation::PENALTY) &&
1386 return _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1387 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1388 else if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
1389 {
1390 Real normal_comp = _phi_secondary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1391 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1392
1393 Real tang_comp = 0.0;
1395 tang_comp = _phi_secondary[_j][_qp] * penalty_slip * _test_secondary[_i][_qp] *
1396 (-pinfo->_normal(_component) * normal_component_in_coupled_var_dir);
1397 return normal_comp + tang_comp;
1398 }
1399 else
1400 {
1401 const Real curr_jac = (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1403 return -curr_jac;
1404 }
1405 }
1406
1407 case ContactModel::GLUED:
1408 {
1409 const Real curr_jac = (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1411 return -curr_jac;
1412 }
1413 default:
1414 mooseError("Invalid or unavailable contact model");
1415 }
1416
1418 switch (_model)
1419 {
1420 case ContactModel::FRICTIONLESS:
1421 switch (_formulation)
1422 {
1423 case ContactFormulation::KINEMATIC:
1424 {
1425 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1426
1427 RealVectorValue jac_vec;
1428 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1429 {
1430 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1431 jac_vec(i) = (*_jacobian)(dof_number,
1432 curr_primary_node->dof_number(0, _vars[_component], 0)) /
1433 _var_objects[i]->scalingFactor();
1434 }
1435 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) -
1436 (_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1437 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1438 }
1439
1440 case ContactFormulation::PENALTY:
1441 case ContactFormulation::AUGMENTED_LAGRANGE:
1442 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1443 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1444
1445 default:
1446 mooseError("Invalid contact formulation");
1447 }
1448
1449 case ContactModel::COULOMB:
1450 if ((_formulation == ContactFormulation::KINEMATIC ||
1451 _formulation == ContactFormulation::TANGENTIAL_PENALTY) &&
1454 {
1455 const Node * curr_primary_node = _current_primary->node_ptr(_j);
1456
1457 RealVectorValue jac_vec;
1458 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1459 {
1460 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1461 jac_vec(i) =
1462 (*_jacobian)(dof_number, curr_primary_node->dof_number(0, _vars[_component], 0)) /
1463 _var_objects[i]->scalingFactor();
1464 }
1465
1466 return -pinfo->_normal(_component) * (pinfo->_normal * jac_vec) -
1467 (_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp]) *
1468 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1469 }
1470 else if ((_formulation == ContactFormulation::PENALTY) &&
1473 return -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1474 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1475 else if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
1476 {
1477 Real normal_comp = -_phi_primary[_j][_qp] * penalty * _test_secondary[_i][_qp] *
1478 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1479
1480 Real tang_comp = 0.0;
1482 tang_comp = -_phi_primary[_j][_qp] * penalty_slip * _test_secondary[_i][_qp] *
1483 (-pinfo->_normal(_component) * normal_component_in_coupled_var_dir);
1484 return normal_comp + tang_comp;
1485 }
1486 else
1487 return 0.0;
1488
1489 case ContactModel::GLUED:
1490 return 0;
1491
1492 default:
1493 mooseError("Invalid or unavailable contact model");
1494 }
1495
1497 switch (_model)
1498 {
1499 case ContactModel::FRICTIONLESS:
1500 switch (_formulation)
1501 {
1502 case ContactFormulation::KINEMATIC:
1503 {
1504 RealVectorValue jac_vec;
1505 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1506 {
1507 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1508 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1509 _var_objects[i]->scalingFactor();
1510 }
1511 return pinfo->_normal(_component) * (pinfo->_normal * jac_vec) *
1513 }
1514
1515 case ContactFormulation::PENALTY:
1516 case ContactFormulation::AUGMENTED_LAGRANGE:
1517 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp] *
1518 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1519
1520 default:
1521 mooseError("Invalid contact formulation");
1522 }
1523 case ContactModel::COULOMB:
1524 switch (_formulation)
1525 {
1526 case ContactFormulation::KINEMATIC:
1527 {
1530 {
1531 RealVectorValue jac_vec;
1532 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1533 {
1534 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1535 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1536 _var_objects[i]->scalingFactor();
1537 }
1538 return pinfo->_normal(_component) * (pinfo->_normal * jac_vec) *
1540 }
1541 else
1542 {
1543 const Real secondary_jac =
1544 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1547 return secondary_jac * _test_primary[_i][_qp];
1548 }
1549 }
1550
1551 case ContactFormulation::PENALTY:
1552 {
1555 return -_test_primary[_i][_qp] * penalty * _phi_secondary[_j][_qp] *
1556 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1557 else
1558 return 0.0;
1559 }
1560 case ContactFormulation::AUGMENTED_LAGRANGE:
1561 {
1562 Real normal_comp = -_phi_secondary[_j][_qp] * penalty * _test_primary[_i][_qp] *
1563 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1564
1565 Real tang_comp = 0.0;
1567 tang_comp = -_phi_secondary[_j][_qp] * penalty_slip * _test_primary[_i][_qp] *
1568 (-pinfo->_normal(_component) * normal_component_in_coupled_var_dir);
1569 return normal_comp + tang_comp;
1570 }
1571 case ContactFormulation::TANGENTIAL_PENALTY:
1572 {
1575 {
1576 RealVectorValue jac_vec;
1577 for (unsigned int i = 0; i < _mesh_dimension; ++i)
1578 {
1579 dof_id_type dof_number = _current_node->dof_number(0, _vars[i], 0);
1580 jac_vec(i) = (*_jacobian)(dof_number, _connected_dof_indices[_j]) /
1581 _var_objects[i]->scalingFactor();
1582 }
1583 return pinfo->_normal(_component) * (pinfo->_normal * jac_vec) *
1585 }
1586 else
1587 return 0.0;
1588 }
1589
1590 default:
1591 mooseError("Invalid contact formulation");
1592 }
1593
1594 case ContactModel::GLUED:
1595 switch (_formulation)
1596 {
1597 case ContactFormulation::KINEMATIC:
1598 {
1599 const Real secondary_jac =
1600 (*_jacobian)(_current_node->dof_number(0, _vars[_component], 0),
1603 return secondary_jac * _test_primary[_i][_qp];
1604 }
1605
1606 case ContactFormulation::PENALTY:
1607 case ContactFormulation::AUGMENTED_LAGRANGE:
1608 return 0.0;
1609
1610 default:
1611 mooseError("Invalid contact formulation");
1612 }
1613
1614 default:
1615 mooseError("Invalid or unavailable contact model");
1616 }
1617
1619 switch (_model)
1620 {
1621 case ContactModel::FRICTIONLESS:
1622 switch (_formulation)
1623 {
1624 case ContactFormulation::KINEMATIC:
1625 return 0.0;
1626
1627 case ContactFormulation::PENALTY:
1628 case ContactFormulation::AUGMENTED_LAGRANGE:
1629 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1630 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1631
1632 default:
1633 mooseError("Invalid contact formulation");
1634 }
1635
1636 case ContactModel::COULOMB:
1637 {
1638 if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
1639 {
1640 Real normal_comp = _phi_primary[_j][_qp] * penalty * _test_primary[_i][_qp] *
1641 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1642
1645 return normal_comp;
1646 else
1647 return 0.0;
1648 }
1649 else if (_formulation == ContactFormulation::PENALTY &&
1652 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1653 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1654 else
1655 return 0.0;
1656 }
1657
1658 case ContactModel::GLUED:
1659 if (_formulation == ContactFormulation::PENALTY &&
1662 return _test_primary[_i][_qp] * penalty * _phi_primary[_j][_qp] *
1663 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1664 else if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
1665 {
1666 Real normal_comp = _phi_primary[_j][_qp] * penalty * _test_primary[_i][_qp] *
1667 pinfo->_normal(_component) * normal_component_in_coupled_var_dir;
1668
1669 Real tang_comp = 0.0;
1671 tang_comp = _phi_primary[_j][_qp] * penalty_slip * _test_primary[_i][_qp] *
1672 (-pinfo->_normal(_component) * normal_component_in_coupled_var_dir);
1673 return normal_comp + tang_comp;
1674 }
1675 else
1676 return 0.0;
1677
1678 default:
1679 mooseError("Invalid or unavailable contact model");
1680 }
1681 }
1682
1683 return 0.0;
1684}
bool getCoupledVarComponent(unsigned int var_num, unsigned int &component)
Determine whether the coupled variable is one of the displacement variables, and find its component.

Referenced by computeOffDiagJacobian().

◆ computeQpResidual()

Real MechanicalContactConstraint::computeQpResidual ( Moose::ConstraintType  type)
overridevirtual

Implements NodeFaceConstraint.

Definition at line 794 of file MechanicalContactConstraint.C.

795{
797 Real resid = pinfo->_contact_force(_component);
798 switch (type)
799 {
800 case Moose::Secondary:
801 if (_formulation == ContactFormulation::KINEMATIC)
802 {
803 RealVectorValue distance_vec(*_current_node - pinfo->_closest_point);
804 if (distance_vec.norm() != 0)
805 distance_vec += gapOffset(*_current_node) * pinfo->_normal * distance_vec.unit() *
806 distance_vec.unit();
807
808 const Real penalty = getPenalty(*_current_node);
809 RealVectorValue pen_force(penalty * distance_vec);
810
811 if (_model == ContactModel::FRICTIONLESS)
812 resid += pinfo->_normal(_component) * pinfo->_normal * pen_force;
813 else if (_model == ContactModel::COULOMB)
814 {
815 distance_vec = distance_vec - pinfo->_incremental_slip;
816 pen_force = penalty * distance_vec;
819 resid += pinfo->_normal(_component) * pinfo->_normal * pen_force;
820 else
821 resid += pen_force(_component);
822 }
823 else if (_model == ContactModel::GLUED)
824 resid += pen_force(_component);
825 }
826 else if (_formulation == ContactFormulation::TANGENTIAL_PENALTY &&
827 _model == ContactModel::COULOMB)
828 {
829 RealVectorValue distance_vec = (pinfo->_normal * (*_current_node - pinfo->_closest_point) +
831 pinfo->_normal;
832
833 const Real penalty = getPenalty(*_current_node);
834 RealVectorValue pen_force(penalty * distance_vec);
835 resid += pinfo->_normal(_component) * pinfo->_normal * pen_force;
836 }
837 return _test_secondary[_i][_qp] * resid;
838
839 case Moose::Primary:
840 return _test_primary[_i][_qp] * -resid;
841 }
842
843 return 0.0;
844}

◆ computeQpSecondaryValue()

Real MechanicalContactConstraint::computeQpSecondaryValue ( )
overridevirtual

Implements NodeFaceConstraint.

Definition at line 788 of file MechanicalContactConstraint.C.

789{
790 return _u_secondary[_qp];
791}
const VariableValue & _u_secondary

◆ gapOffset()

Real MechanicalContactConstraint::gapOffset ( const Node &  node)
protected

Definition at line 1687 of file MechanicalContactConstraint.C.

1688{
1689 Real val = 0;
1690
1693
1696
1697 return val;
1698}
DofValue getNodalValue(const Node &node) const

Referenced by AugmentedLagrangianContactConverged(), computeContactForce(), computeQpResidual(), and updateAugmentedLagrangianMultiplier().

◆ getConnectedDofIndices()

void MechanicalContactConstraint::getConnectedDofIndices ( unsigned int  var_num)
overridevirtual

Get the dof indices of the nodes connected to the secondary node for a specific variable.

Parameters
var_numThe number of the variable for which dof indices are gathered
Returns
bool indicating whether the coupled variable is one of the displacement variables

Reimplemented from NodeFaceConstraint.

Definition at line 1819 of file MechanicalContactConstraint.C.

1820{
1821 unsigned int component;
1823 {
1826 else
1827 {
1828 _connected_dof_indices.clear();
1829 MooseVariableFEBase & var = _sys.getVariable(0, var_num);
1830 _connected_dof_indices.push_back(var.nodalDofIndex());
1831 }
1832 }
1833
1835
1836 dof_id_type current_node_var_dof_index = _sys.getVariable(0, var_num).nodalDofIndex();
1837 _qp = 0;
1838
1839 // Fill up _phi_secondary so that it is 1 when j corresponds to the dof associated with this node
1840 // and 0 for every other dof
1841 // This corresponds to evaluating all of the connected shape functions at _this_ node
1842 for (unsigned int j = 0; j < _connected_dof_indices.size(); j++)
1843 {
1844 _phi_secondary[j].resize(1);
1845
1846 if (_connected_dof_indices[j] == current_node_var_dof_index)
1847 _phi_secondary[j][_qp] = 1.0;
1848 else
1849 _phi_secondary[j][_qp] = 0.0;
1850 }
1851}
virtual const dof_id_type & nodalDofIndex() const=0
virtual void getConnectedDofIndices(unsigned int var_num)
MooseVariableFieldBase & getVariable(THREAD_ID tid, const std::string &var_name) const
T component(const RankTwoTensorTempl< T > &r2tensor, unsigned int i, unsigned int j)

Referenced by computeJacobian(), and computeOffDiagJacobian().

◆ getCoupledVarComponent()

bool MechanicalContactConstraint::getCoupledVarComponent ( unsigned int  var_num,
unsigned int component 
)

Determine whether the coupled variable is one of the displacement variables, and find its component.

Parameters
var_numThe number of the variable to be checked
componentThe component index computed in this routine
Returns
bool indicating whether the coupled variable is one of the displacement variables

Definition at line 1854 of file MechanicalContactConstraint.C.

1855{
1856 component = std::numeric_limits<unsigned int>::max();
1857 bool coupled_var_is_disp_var = false;
1858 for (const auto i : make_range(Moose::dim))
1859 {
1860 if (var_num == _vars[i])
1861 {
1862 coupled_var_is_disp_var = true;
1863 component = i;
1864 break;
1865 }
1866 }
1867
1868 return coupled_var_is_disp_var;
1869}
unsigned int dim
IntRange< T > make_range(T beg, T end)

Referenced by computeQpOffDiagJacobian(), and getConnectedDofIndices().

◆ getPenalty()

Real MechanicalContactConstraint::getPenalty ( const Node &  node)
protected

◆ getTangentialPenalty()

Real MechanicalContactConstraint::getTangentialPenalty ( const Node &  node)
protected

◆ jacobianSetup()

void MechanicalContactConstraint::jacobianSetup ( )
overridevirtual

Reimplemented from NodeFaceConstraint.

Definition at line 245 of file MechanicalContactConstraint.C.

246{
247 if (_component == 0)
248 {
250 updateContactStatefulData(/* beginning_of_step = */ false);
252 }
253}
virtual void updateContactStatefulData(bool beginning_of_step)

◆ nodalArea()

Real MechanicalContactConstraint::nodalArea ( const Node &  node)
protected

Definition at line 1701 of file MechanicalContactConstraint.C.

1702{
1703 dof_id_type dof = node.dof_number(_aux_system.number(), _nodal_area_var->number(), 0);
1704
1705 Real area = (*_aux_solution)(dof);
1706 if (area == 0.0)
1707 {
1708 if (_t_step > 1)
1709 mooseError("Zero nodal area found");
1710 else
1711 area = 1.0; // Avoid divide by zero during initialization
1712 }
1713
1714 return area;
1715}

Referenced by computeContactForce(), getPenalty(), and getTangentialPenalty().

◆ residualEnd()

void MechanicalContactConstraint::residualEnd ( )
overridevirtual

Reimplemented from NodeFaceConstraint.

Definition at line 1872 of file MechanicalContactConstraint.C.

1873{
1875 {
1878 {
1880 _console << "Unchanged contact state. " << _current_contact_state.size()
1881 << " nodes in contact.\n";
1882 else
1883 _console << "Changed contact state!!! " << _current_contact_state.size()
1884 << " nodes in contact.\n";
1885 }
1889 _current_contact_state.clear();
1890 }
1891}
void insertSet(const std::set< dof_id_type > &mech_set)
Unionize sets from different constraints.
std::set< dof_id_type > _current_contact_state
void set_union(T &data, const unsigned int root_id) const

◆ shouldApply()

bool MechanicalContactConstraint::shouldApply ( )
overridevirtual

Reimplemented from NodeFaceConstraint.

Definition at line 468 of file MechanicalContactConstraint.C.

469{
470 bool in_contact = false;
471
472 std::map<dof_id_type, PenetrationInfo *>::iterator found =
474 if (found != _penetration_locator._penetration_info.end())
475 {
476 PenetrationInfo * pinfo = found->second;
477 if (pinfo != NULL)
478 {
479 bool is_nonlinear = _subproblem.computingNonlinearResid();
480
481 // This computes the contact force once per constraint, rather than once per quad point
482 // and for both primary and secondary cases.
483 if (_component == 0)
484 computeContactForce(*_current_node, pinfo, is_nonlinear);
485
486 if (pinfo->isCaptured())
487 {
488 in_contact = true;
489 if (is_nonlinear)
490 {
491 Threads::spin_mutex::scoped_lock lock(_contact_set_mutex);
493 }
494 }
495 }
496 }
497
498 return in_contact;
499}
static Threads::spin_mutex _contact_set_mutex
void computeContactForce(const Node &node, PenetrationInfo *pinfo, bool update_contact_set)
bool computingNonlinearResid() const

◆ timestepSetup()

void MechanicalContactConstraint::timestepSetup ( )
overridevirtual

Reimplemented from NodeFaceConstraint.

Definition at line 229 of file MechanicalContactConstraint.C.

230{
231 if (_component == 0)
232 {
233 updateContactStatefulData(/* beginning_of_step = */ true);
234 if (_formulation == ContactFormulation::AUGMENTED_LAGRANGE)
235 updateAugmentedLagrangianMultiplier(/* beginning_of_step = */ true);
236
237 _update_stateful_data = false;
238
241 }
242}
virtual void reset()
Reset the line search data.
virtual void updateAugmentedLagrangianMultiplier(bool beginning_of_step)

◆ updateAugmentedLagrangianMultiplier()

void MechanicalContactConstraint::updateAugmentedLagrangianMultiplier ( bool  beginning_of_step)
virtual

Definition at line 256 of file MechanicalContactConstraint.C.

257{
258 for (auto & [secondary_node_num, pinfo] : _penetration_locator._penetration_info)
259 {
260 if (!pinfo)
261 continue;
262
263 const Node & node = _mesh.nodeRef(secondary_node_num);
264 if (node.n_comp(_sys.number(), _vars[_component]) < 1)
265 continue;
266
267 const Real distance = pinfo->_normal * (pinfo->_closest_point - node) - gapOffset(node);
268
269 if (beginning_of_step && _model == ContactModel::COULOMB)
270 {
271 pinfo->_lagrange_multiplier_slip.zero();
272 if (pinfo->isCaptured())
273 pinfo->_mech_status = PenetrationInfo::MS_STICKING;
274 }
275
276 if (pinfo->isCaptured())
277 {
278 if (_model == ContactModel::FRICTIONLESS)
279 pinfo->_lagrange_multiplier -= getPenalty(node) * distance;
280
281 if (_model == ContactModel::COULOMB)
282 {
283 if (!beginning_of_step)
284 {
285 Real penalty = getPenalty(node);
286 RealVectorValue pen_force_normal =
287 penalty * (-distance) * pinfo->_normal + pinfo->_lagrange_multiplier * pinfo->_normal;
288
289 // update normal lagrangian multiplier
290 pinfo->_lagrange_multiplier += penalty * (-distance);
291
292 // Frictional capacity
293 const Real capacity(_friction_coefficient * (pen_force_normal * pinfo->_normal < 0
294 ? -pen_force_normal * pinfo->_normal
295 : 0));
296
297 RealVectorValue tangential_inc_slip =
298 pinfo->_incremental_slip -
299 (pinfo->_incremental_slip * pinfo->_normal) * pinfo->_normal;
300
301 Real penalty_slip = getTangentialPenalty(node);
302
303 RealVectorValue inc_pen_force_tangential =
304 pinfo->_lagrange_multiplier_slip + penalty_slip * tangential_inc_slip;
305
306 RealVectorValue tau_old = pinfo->_contact_force_old -
307 pinfo->_normal * (pinfo->_normal * pinfo->_contact_force_old);
308
309 RealVectorValue contact_force_tangential = inc_pen_force_tangential + tau_old;
310 const Real tan_mag(contact_force_tangential.norm());
311
312 if (tan_mag > capacity * (_al_frictional_force_tolerance + 1.0))
313 {
314 pinfo->_lagrange_multiplier_slip =
315 -tau_old + capacity * contact_force_tangential / tan_mag;
316 if (MooseUtils::absoluteFuzzyEqual(capacity, 0.0))
317 pinfo->_mech_status = PenetrationInfo::MS_SLIPPING;
318 else
319 pinfo->_mech_status = PenetrationInfo::MS_SLIPPING_FRICTION;
320 }
321 else
322 {
323 pinfo->_mech_status = PenetrationInfo::MS_STICKING;
324 pinfo->_lagrange_multiplier_slip += penalty_slip * tangential_inc_slip;
325 }
326 }
327 }
328 }
329 }
330}

Referenced by timestepSetup().

◆ updateContactStatefulData()

void MechanicalContactConstraint::updateContactStatefulData ( bool  beginning_of_step)
virtual

Definition at line 428 of file MechanicalContactConstraint.C.

429{
430 for (auto & [secondary_node_num, pinfo] : _penetration_locator._penetration_info)
431 {
432 if (!pinfo)
433 continue;
434
435 const Node & node = _mesh.nodeRef(secondary_node_num);
436 if (node.n_comp(_sys.number(), _vars[_component]) < 1)
437 continue;
438
439 if (beginning_of_step)
440 {
442 {
443 pinfo->_contact_force_old = pinfo->_contact_force;
444 pinfo->_accumulated_slip_old = pinfo->_accumulated_slip;
445 pinfo->_frictional_energy_old = pinfo->_frictional_energy;
446 pinfo->_mech_status_old = pinfo->_mech_status;
447 }
448 else if (pinfo->_mech_status_old == PenetrationInfo::MS_NO_CONTACT &&
449 pinfo->_mech_status != PenetrationInfo::MS_NO_CONTACT)
450 {
451 // The penetration info object could be based on a bad state so delete it
452 delete pinfo;
453 pinfo = NULL;
454 continue;
455 }
456
457 pinfo->_locked_this_step = 0;
458 pinfo->_stick_locked_this_step = 0;
459 pinfo->_starting_elem = pinfo->_elem;
460 pinfo->_starting_side_num = pinfo->_side_num;
461 pinfo->_starting_closest_point_ref = pinfo->_closest_point_ref;
462 }
463 pinfo->_incremental_slip_prev_iter = pinfo->_incremental_slip;
464 }
465}
virtual bool lastSolveConverged() const=0
Executioner * getExecutioner() const

Referenced by jacobianSetup(), and timestepSetup().

◆ validParams()

InputParameters MechanicalContactConstraint::validParams ( )
static

Definition at line 35 of file MechanicalContactConstraint.C.

36{
39
40 params.addRequiredParam<BoundaryName>("boundary", "The primary boundary");
41 params.addParam<BoundaryName>("secondary", "The secondary boundary");
42 params.addRequiredParam<unsigned int>("component",
43 "An integer corresponding to the direction "
44 "the variable this constraint acts on. (0 for x, "
45 "1 for y, 2 for z)");
46
47 params.addCoupledVar(
48 "displacements",
49 "The displacements appropriate for the simulation geometry and coordinate system");
50
51 params.addCoupledVar("secondary_gap_offset", "offset to the gap distance from secondary side");
52 params.addCoupledVar("mapped_primary_gap_offset",
53 "offset to the gap distance mapped from primary side");
54 params.addRequiredCoupledVar("nodal_area", "The nodal area");
55
56 params.set<bool>("use_displaced_mesh") = true;
57 params.addParam<Real>(
58 "penalty",
59 1e8,
60 "The penalty to apply. This can vary depending on the stiffness of your materials");
61 params.addParam<Real>("penalty_multiplier",
62 1.0,
63 "The growth factor for the penalty applied at the end of each augmented "
64 "Lagrange update iteration");
65 params.addParam<Real>("friction_coefficient", 0, "The friction coefficient");
66 params.addParam<Real>("tangential_tolerance",
67 "Tangential distance to extend edges of contact surfaces");
68 params.addParam<Real>(
69 "capture_tolerance", 0, "Normal distance from surface within which nodes are captured");
70
71 params.addParam<Real>("tension_release",
72 0.0,
73 "Tension release threshold. A node in contact "
74 "will not be released if its tensile load is below "
75 "this value. No tension release if negative.");
76
77 params.addParam<bool>(
78 "normalize_penalty",
79 false,
80 "Whether to normalize the penalty parameter with the nodal area for penalty contact.");
81 params.addParam<bool>(
82 "primary_secondary_jacobian",
83 true,
84 "Whether to include jacobian entries coupling primary and secondary nodes.");
85 params.addParam<bool>(
86 "connected_secondary_nodes_jacobian",
87 true,
88 "Whether to include jacobian entries coupling nodes connected to secondary nodes.");
89 params.addParam<bool>("non_displacement_variables_jacobian",
90 true,
91 "Whether to include jacobian entries coupling with variables that are not "
92 "displacement variables.");
93 params.addParam<unsigned int>("stick_lock_iterations",
94 std::numeric_limits<unsigned int>::max(),
95 "Number of times permitted to switch between sticking and slipping "
96 "in a solution before locking node in a sticked state.");
97 params.addParam<Real>("stick_unlock_factor",
98 1.5,
99 "Factor by which frictional capacity must be "
100 "exceeded to permit stick-locked node to slip "
101 "again.");
102 params.addParam<Real>("al_penetration_tolerance",
103 "The tolerance of the penetration for augmented Lagrangian method.");
104 params.addParam<Real>("al_incremental_slip_tolerance",
105 "The tolerance of the incremental slip for augmented Lagrangian method.");
106
107 params.addParam<Real>("al_frictional_force_tolerance",
108 "The tolerance of the frictional force for augmented Lagrangian method.");
109 params.addParam<bool>(
110 "print_contact_nodes", false, "Whether to print the number of nodes in contact.");
111
112 params.addClassDescription(
113 "Apply non-penetration constraints on the mechanical deformation "
114 "using a node on face, primary/secondary algorithm, and multiple options "
115 "for the physical behavior on the interface and the mathematical "
116 "formulation for constraint enforcement");
117
118 return params;
119}
static InputParameters commonParameters()
Define parameters used by multiple contact objects.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
T & set(const std::string &name, bool quiet_mode=false)
void addCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()

Member Data Documentation

◆ _al_frictional_force_tolerance

Real MechanicalContactConstraint::_al_frictional_force_tolerance
protected

The tolerance of the frictional force for augmented Lagrangian method.

Definition at line 141 of file MechanicalContactConstraint.h.

Referenced by AugmentedLagrangianContactConverged(), MechanicalContactConstraint(), and updateAugmentedLagrangianMultiplier().

◆ _al_incremental_slip_tolerance

Real MechanicalContactConstraint::_al_incremental_slip_tolerance
protected

The tolerance of the incremental slip for augmented Lagrangian method.

Definition at line 139 of file MechanicalContactConstraint.h.

Referenced by AugmentedLagrangianContactConverged(), and MechanicalContactConstraint().

◆ _al_penetration_tolerance

Real MechanicalContactConstraint::_al_penetration_tolerance
protected

The tolerance of the penetration for augmented Lagrangian method.

Definition at line 137 of file MechanicalContactConstraint.h.

Referenced by AugmentedLagrangianContactConverged(), and MechanicalContactConstraint().

◆ _augmented_lagrange_problem

AugmentedLagrangianContactProblemInterface* const MechanicalContactConstraint::_augmented_lagrange_problem
protected

Definition at line 150 of file MechanicalContactConstraint.h.

Referenced by MechanicalContactConstraint().

◆ _aux_solution

const NumericVector<Number>* const MechanicalContactConstraint::_aux_solution
protected

Definition at line 127 of file MechanicalContactConstraint.h.

◆ _aux_system

SystemBase& MechanicalContactConstraint::_aux_system
protected

Definition at line 126 of file MechanicalContactConstraint.h.

Referenced by nodalArea().

◆ _capture_tolerance

const Real MechanicalContactConstraint::_capture_tolerance
protected

Definition at line 106 of file MechanicalContactConstraint.h.

Referenced by computeContactForce().

◆ _component

const unsigned int MechanicalContactConstraint::_component
protected

◆ _connected_secondary_nodes_jacobian

const bool MechanicalContactConstraint::_connected_secondary_nodes_jacobian
protected

Whether to include coupling terms with the nodes connected to the secondary nodes in the Jacobian.

Definition at line 132 of file MechanicalContactConstraint.h.

Referenced by getConnectedDofIndices().

◆ _contact_linesearch

ContactLineSearchBase* MechanicalContactConstraint::_contact_linesearch
protected

Definition at line 143 of file MechanicalContactConstraint.h.

Referenced by computeContactForce(), residualEnd(), and timestepSetup().

◆ _contact_set_mutex

Threads::spin_mutex MechanicalContactConstraint::_contact_set_mutex
staticprotected

Definition at line 148 of file MechanicalContactConstraint.h.

Referenced by shouldApply().

◆ _current_contact_state

std::set<dof_id_type> MechanicalContactConstraint::_current_contact_state
protected

Definition at line 144 of file MechanicalContactConstraint.h.

Referenced by residualEnd(), and shouldApply().

◆ _displaced_problem

MooseSharedPointer<DisplacedProblem> MechanicalContactConstraint::_displaced_problem
protected

Definition at line 90 of file MechanicalContactConstraint.h.

◆ _formulation

const ContactFormulation MechanicalContactConstraint::_formulation
protected

◆ _friction_coefficient

const Real MechanicalContactConstraint::_friction_coefficient
protected

◆ _has_mapped_primary_gap_offset

const bool MechanicalContactConstraint::_has_mapped_primary_gap_offset
protected

Definition at line 122 of file MechanicalContactConstraint.h.

Referenced by gapOffset().

◆ _has_secondary_gap_offset

const bool MechanicalContactConstraint::_has_secondary_gap_offset
protected

gap offset from either secondary, primary or both

Definition at line 120 of file MechanicalContactConstraint.h.

Referenced by gapOffset().

◆ _Ken

DenseMatrix<Number> MechanicalContactConstraint::_Ken
protected

Definition at line 155 of file MechanicalContactConstraint.h.

Referenced by computeJacobian(), and computeOffDiagJacobian().

◆ _Knn

DenseMatrix<Number> MechanicalContactConstraint::_Knn
protected

Definition at line 154 of file MechanicalContactConstraint.h.

Referenced by computeJacobian(), and computeOffDiagJacobian().

◆ _lagrangian_iteration_number

const unsigned int& MechanicalContactConstraint::_lagrangian_iteration_number
protected

Definition at line 152 of file MechanicalContactConstraint.h.

Referenced by getPenalty(), and getTangentialPenalty().

◆ _mapped_primary_gap_offset_var

const MooseVariable* const MechanicalContactConstraint::_mapped_primary_gap_offset_var
protected

Definition at line 123 of file MechanicalContactConstraint.h.

Referenced by gapOffset().

◆ _mesh_dimension

const unsigned int MechanicalContactConstraint::_mesh_dimension
protected

◆ _model

const ContactModel MechanicalContactConstraint::_model
protected

◆ _no_iterations

const unsigned int MechanicalContactConstraint::_no_iterations = 0
staticprotected

Definition at line 151 of file MechanicalContactConstraint.h.

◆ _nodal_area_var

MooseVariable* MechanicalContactConstraint::_nodal_area_var
protected

Definition at line 125 of file MechanicalContactConstraint.h.

Referenced by nodalArea().

◆ _non_displacement_vars_jacobian

const bool MechanicalContactConstraint::_non_displacement_vars_jacobian
protected

Whether to include coupling terms with non-displacement variables in the Jacobian.

Definition at line 134 of file MechanicalContactConstraint.h.

Referenced by getConnectedDofIndices().

◆ _normalize_penalty

const bool MechanicalContactConstraint::_normalize_penalty
protected

Definition at line 99 of file MechanicalContactConstraint.h.

Referenced by getPenalty(), and getTangentialPenalty().

◆ _old_contact_state

std::set<dof_id_type> MechanicalContactConstraint::_old_contact_state
protected

Definition at line 145 of file MechanicalContactConstraint.h.

Referenced by residualEnd().

◆ _penalty

const Real MechanicalContactConstraint::_penalty
protected

Definition at line 101 of file MechanicalContactConstraint.h.

Referenced by getPenalty(), and MechanicalContactConstraint().

◆ _penalty_multiplier

const Real MechanicalContactConstraint::_penalty_multiplier
protected

Definition at line 102 of file MechanicalContactConstraint.h.

Referenced by getPenalty(), and getTangentialPenalty().

◆ _penalty_tangential

Real MechanicalContactConstraint::_penalty_tangential
protected

◆ _primary_secondary_jacobian

const bool MechanicalContactConstraint::_primary_secondary_jacobian
protected

Whether to include coupling between the primary and secondary nodes in the Jacobian.

Definition at line 130 of file MechanicalContactConstraint.h.

Referenced by addCouplingEntriesToJacobian(), computeJacobian(), computeOffDiagJacobian(), and getConnectedDofIndices().

◆ _print_contact_nodes

const bool MechanicalContactConstraint::_print_contact_nodes
protected

Definition at line 147 of file MechanicalContactConstraint.h.

Referenced by residualEnd().

◆ _residual_copy

NumericVector<Number>& MechanicalContactConstraint::_residual_copy
protected

Definition at line 111 of file MechanicalContactConstraint.h.

Referenced by computeContactForce().

◆ _secondary_gap_offset_var

const MooseVariable* const MechanicalContactConstraint::_secondary_gap_offset_var
protected

Definition at line 121 of file MechanicalContactConstraint.h.

Referenced by gapOffset().

◆ _stick_lock_iterations

const unsigned int MechanicalContactConstraint::_stick_lock_iterations
protected

Definition at line 107 of file MechanicalContactConstraint.h.

Referenced by computeContactForce().

◆ _stick_unlock_factor

const Real MechanicalContactConstraint::_stick_unlock_factor
protected

Definition at line 108 of file MechanicalContactConstraint.h.

Referenced by computeContactForce().

◆ _tension_release

const Real MechanicalContactConstraint::_tension_release
protected

Definition at line 105 of file MechanicalContactConstraint.h.

Referenced by computeContactForce().

◆ _update_stateful_data

bool MechanicalContactConstraint::_update_stateful_data
protected

Definition at line 109 of file MechanicalContactConstraint.h.

Referenced by jacobianSetup(), and timestepSetup().

◆ _var_objects

std::vector<MooseVariable *> MechanicalContactConstraint::_var_objects
protected

◆ _vars

std::vector<unsigned int> MechanicalContactConstraint::_vars
protected

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