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