https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADNodeElemConstraint.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// MOOSE includes
15
22{
23public:
25
27
29 virtual void computeResidual() override;
30
32 virtual void computeJacobian() override;
33
34protected:
36 virtual void prepareSecondaryToPrimaryMap() = 0;
37
40
43
46 unsigned int /*jvar*/);
47
52
55 std::vector<Real> _residuals;
56};
DualNumber< Real, DNDerivativeType, true > ADReal
An ADNodeElemConstraint is used when you need to create constraints between a subdomain of secondary ...
ADReal _r
Data members for holding residuals.
const ADVariableValue & _u_primary
Holds the current solution at the current quadrature point.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType)
This is the virtual method that derived classes should override for computing the Jacobian.
const ADVariableValue & _u_secondary
Value of the unknown variable on the secondary node.
std::vector< Real > _residuals
virtual void prepareSecondaryToPrimaryMap()=0
prepare the _secondary_to_primary_map (see NodeElemConstraintBase)
static InputParameters validParams()
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType, unsigned int)
This is the virtual method that derived classes should override for computing the off-diag Jacobian.
virtual void computeResidual() override
Computes the Nodal residual.
virtual void computeJacobian() override
Computes the jacobian for the current element.
virtual ADReal computeQpResidual(Moose::ConstraintType type)=0
This is the virtual method that derived classes should override for computing the residual.
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
const std::string & type() const
Get the type of this class.
Definition MooseBase.h:93
A NodeElemConstraintBase is used when you need to create constraints between a secondary node and a p...
ConstraintType
Definition MooseTypes.h:812
ConstraintJacobianType
Definition MooseTypes.h:851