https://mooseframework.inl.gov
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
13 #include "NodeElemConstraintBase.h"
15 
22 {
23 public:
25 
27 
29  virtual void computeResidual() override;
30 
32  virtual void computeJacobian() override;
33 
34 protected:
36  virtual void prepareSecondaryToPrimaryMap() = 0;
37 
40 
43 
46  unsigned int /*jvar*/);
47 
52 
55  std::vector<Real> _residuals;
56 };
virtual void computeJacobian() override
Computes the jacobian for the current element.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType)
This is the virtual method that derived classes should override for computing the Jacobian...
ConstraintType
Definition: MooseTypes.h:757
const ADVariableValue & _u_secondary
Value of the unknown variable on the secondary node.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
DualNumber< Real, DNDerivativeType, true > ADReal
Definition: ADRealForward.h:47
const ADVariableValue & _u_primary
Holds the current solution at the current quadrature point.
ADReal _r
Data members for holding residuals.
virtual ADReal computeQpResidual(Moose::ConstraintType type)=0
This is the virtual method that derived classes should override for computing the residual...
std::vector< Real > _residuals
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51
virtual void prepareSecondaryToPrimaryMap()=0
prepare the _secondary_to_primary_map (see NodeElemConstraintBase)
An ADNodeElemConstraint is used when you need to create constraints between a subdomain of secondary ...
forward declarations
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ConstraintJacobianType
Definition: MooseTypes.h:796
virtual void computeResidual() override
Computes the Nodal residual.
const InputParameters & parameters() const
Get the parameters of the object.
virtual Real computeQpOffDiagJacobian(Moose::ConstraintJacobianType, unsigned int)
This is the virtual method that derived classes should override for computing the off-diag Jacobian...
ADNodeElemConstraint(const InputParameters &parameters)
static InputParameters validParams()
A NodeElemConstraintBase is used when you need to create constraints between a secondary node and a p...