https://mooseframework.inl.gov
ADMortarConstraint.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 
12 #include "MortarConstraintBase.h"
13 
15 {
16 public:
18 
20 
21 protected:
25  virtual ADReal computeQpResidual(Moose::MortarType mortar_type) = 0;
26 
31  void computeResidual(Moose::MortarType mortar_type) override;
32 
37  void computeJacobian(Moose::MortarType mortar_type) override;
38 
39  void computeResidualAndJacobian() override;
40 
41 private:
44 
45 protected:
48 
51 
54 
57 
60 };
User for mortar methods.
const ADVariableValue _lambda_dummy
A dummy object useful for constructing _lambda when not using Lagrange multipliers.
ADMortarConstraint(const InputParameters &parameters)
void computeResidualAndJacobian() override
Compute this object's contribution to the residual and Jacobian simultaneously.
MortarType
Definition: MooseTypes.h:770
const ADVariableGradient & _grad_u_secondary
The primal solution gradient on the secondary side.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
const ADVariableGradient & _grad_u_primary
The primal solution gradient on the primary side.
virtual ADReal computeQpResidual(Moose::MortarType mortar_type)=0
compute the residual at the quadrature points
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
const ADVariableValue & _lambda
The LM solution.
virtual void computeResidual() override
Method for computing the residual.
forward declarations
virtual void computeJacobian() override
Method for computing the Jacobian.
const InputParameters & parameters() const
Get the parameters of the object.
static InputParameters validParams()
const ADVariableValue & _u_primary
The primal solution on the primary side.
const ADVariableValue & _u_secondary
The primal solution on the secondary side.