https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LinearNodalConstraint.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 "NodalConstraint.h"
13
22{
23public:
25
27
28protected:
32 virtual Real computeQpResidual(Moose::ConstraintType type) override;
33
38
39 // Holds the primary node ids
40 std::vector<unsigned int> _primary_node_ids;
41 // Holds the list of secondary node ids
42 std::vector<unsigned int> _secondary_node_ids;
43 // Holds the secondary node set or side set
45 // Penalty if constraint is not satisfied
47};
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
The secondary node variable is programmed as a linear combination of the primary node variables (i....
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
static InputParameters validParams()
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current secondary node.
std::vector< unsigned int > _secondary_node_ids
std::vector< unsigned int > _primary_node_ids
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
ConstraintType
Definition MooseTypes.h:812
ConstraintJacobianType
Definition MooseTypes.h:851