www.mooseframework.org
LinearNodalConstraint.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 {
23 public:
25 
27 
28 protected:
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 };
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current secondary node.
ConstraintType
Definition: MooseTypes.h:670
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
std::vector< unsigned int > _primary_node_ids
const std::string & type() const
Get the type of this class.
Definition: MooseBase.h:51
The secondary node variable is programmed as a linear combination of the primary node variables (i...
LinearNodalConstraint(const InputParameters &parameters)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ConstraintJacobianType
Definition: MooseTypes.h:709
const InputParameters & parameters() const
Get the parameters of the object.
std::vector< unsigned int > _secondary_node_ids