https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PenaltyEqualValueConstraint.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 "MortarConstraint.h"
13#include "ADMortarConstraint.h"
14
15// Forward declaration
16template <bool is_ad>
18 typename std::conditional<is_ad, ADMortarConstraint, MortarConstraint>::type;
19
24template <bool is_ad>
26{
27public:
29
31
32protected:
35 unsigned int jvar);
36
38 const Real _penalty_value;
39
40 using MortarConstraintTempl<is_ad>::_u_primary;
41 using MortarConstraintTempl<is_ad>::_u_secondary;
42 using MortarConstraintTempl<is_ad>::_test_primary;
43 using MortarConstraintTempl<is_ad>::_test_secondary;
44 using MortarConstraintTempl<is_ad>::_qp;
45 using MortarConstraintTempl<is_ad>::_i;
46 using MortarConstraintTempl<is_ad>::_j;
47};
48
Moose::GenericType< Real, is_ad > GenericReal
Definition MooseTypes.h:698
PenaltyEqualValueConstraintTempl< false > PenaltyEqualValueConstraint
PenaltyEqualValueConstraintTempl< true > ADPenaltyEqualValueConstraint
typename std::conditional< is_ad, ADMortarConstraint, MortarConstraint >::type MortarConstraintTempl
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
Constrain the value of a variable to be the same on both sides of an interface using a generalized fo...
GenericReal< is_ad > computeQpResidual(Moose::MortarType mortar_type) final
const Real _penalty_value
Penalty value used to enforce the constraint.
GenericReal< is_ad > computeQpJacobian(Moose::ConstraintJacobianType jacobian_type, unsigned int jvar)
ConstraintJacobianType
Definition MooseTypes.h:851