https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodeElemConstraint.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
14
21{
22public:
24
26
28 virtual void computeResidual() override;
29
31 virtual void computeJacobian() override;
32
34 virtual void computeOffDiagJacobian(unsigned int jvar) override;
35
37 void getConnectedDofIndices(unsigned int var_num);
38
39protected:
41 virtual void prepareSecondaryToPrimaryMap() = 0;
42
45
48
51 unsigned int /*jvar*/)
52 {
53 return 0;
54 }
55
58
61
64
67
70};
OutputTools< Real >::VariableGradient VariableGradient
Definition MooseTypes.h:349
OutputTools< Real >::VariableTestGradient VariableTestGradient
Definition MooseTypes.h:359
OutputTools< Real >::VariableValue VariableValue
Definition MooseTypes.h:348
OutputTools< Real >::VariablePhiGradient VariablePhiGradient
Definition MooseTypes.h:354
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...
A NodeElemConstraintBase is a base class for constraints between a subdomain with secondary nodes and...
virtual void computeOffDiagJacobian(unsigned int jvar) override
Computes d-residual / d-jvar...
const VariableValue & _u_secondary
Value of the unknown variable on the secondary node.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type)
This is the virtual method that derived classes should override for computing the Jacobian.
void getConnectedDofIndices(unsigned int var_num)
Gets the indices for all dofs connected to the constraint.
const VariableTestGradient & _grad_test_primary
Gradient of side shape function.
static InputParameters validParams()
virtual void prepareSecondaryToPrimaryMap()=0
prepare the _secondary_to_primary_map (see NodeElemConstraintBase)
virtual void computeResidual() override
Computes the residual Nodal residual.
const VariableValue & _u_primary
Holds the current solution at the current quadrature point.
const VariablePhiGradient & _grad_phi_primary
Gradient of side shape function.
const VariableGradient & _grad_u_primary
Holds the current solution gradient at the current quadrature point.
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 computeJacobian() override
Computes the jacobian for the current element.
virtual Real computeQpResidual(Moose::ConstraintType type)=0
This is the virtual method that derived classes should override for computing the residual.
ConstraintType
Definition MooseTypes.h:812
ConstraintJacobianType
Definition MooseTypes.h:851