https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LMWeightedGapUserObject.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13
14template <typename>
15class MooseVariableFE;
16
22{
23public:
29
31
32 virtual const ADVariableValue & contactPressure() const override;
33 virtual void reinit() override {}
34 virtual Real getNormalContactPressure(const Node * const /*node*/) const override;
35
36protected:
37 virtual const VariableTestValue & test() const override;
38 virtual bool constrainedByOwner() const override { return true; }
39
43 void checkInput(const MooseVariable * const var, const std::string & var_name) const;
44
48 void verifyLagrange(const MooseVariable & var, const std::string & var_name) const;
49
52
55
58};
User object for computing weighted gaps and contact pressure for Lagrange multipler based mortar cons...
virtual void reinit() override
static InputParameters validParams()
const MooseVariable *const _aux_lm_var
The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach)
virtual bool constrainedByOwner() const override
virtual const ADVariableValue & contactPressure() const override
const bool _use_petrov_galerkin
Whether to use Petrov-Galerkin approach.
void verifyLagrange(const MooseVariable &var, const std::string &var_name) const
Verify that the provided variables have degrees of freedom at nodes.
void checkInput(const MooseVariable *const var, const std::string &var_name) const
Check user input validity for provided variable.
virtual Real getNormalContactPressure(const Node *const) const override
virtual const VariableTestValue & test() const override
const MooseVariableFE< Real > *const _lm_var
The Lagrange multiplier variable representing the contact pressure.
static InputParameters newParams()
New parameters that this sub-class introduces.
const InputParameters & parameters() const
Creates dof object to weighted gap map.
VariableShapeValue< true > VariableTestValue
VariableValueTempl< true > ADVariableValue