Line data Source code
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 : 12 : #include "WeightedVelocitiesUserObject.h" 13 : 14 : template <typename> 15 : class MooseVariableFE; 16 : 17 : /** 18 : * Nodal-based mortar contact user object for frictional problem 19 : */ 20 : class LMWeightedVelocitiesUserObject : public WeightedVelocitiesUserObject 21 : { 22 : public: 23 : static InputParameters validParams(); 24 : 25 : LMWeightedVelocitiesUserObject(const InputParameters & parameters); 26 : 27 : virtual const ADVariableValue & contactTangentialPressureDirOne() const override; 28 : virtual const ADVariableValue & contactTangentialPressureDirTwo() const override; 29 : 30 : virtual const ADVariableValue & contactPressure() const override; 31 : 32 761681 : virtual void reinit() override {} 33 : 34 : protected: 35 : virtual const VariableTestValue & test() const override; 36 169148 : virtual bool constrainedByOwner() const override { return true; } 37 : 38 : /// The Lagrange multiplier variables representing the contact pressure along various directions 39 : const MooseVariableFE<Real> * const _lm_normal_var; 40 : const MooseVariableFE<Real> * const _lm_variable_tangential_one; 41 : const MooseVariableFE<Real> * const _lm_variable_tangential_two; 42 : 43 : /// Whether to use Petrov-Galerkin approach 44 : const bool _use_petrov_galerkin; 45 : 46 : /// The auxiliary Lagrange multiplier variable (used together whith the Petrov-Galerkin approach) 47 : const MooseVariable * const _aux_lm_var; 48 : };