https://mooseframework.inl.gov
Loading...
Searching...
No Matches
EqualValueBoundaryConstraint.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
15{
16public:
18
20
24 virtual void meshChanged() override;
25
26protected:
31
35 virtual Real computeQpResidual(Moose::ConstraintType type) override;
36
41
44
45private:
50
54 void pickPrimaryNode();
55
59 void ghostPrimary();
60
65 dof_id_type getPrimaryNodeIDByCoord() const;
66};
dof_id_type getPrimaryNodeIDByCoord() const
Get the primary node ID by searching for the node with coordinates matching _primary_node_coord on th...
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
Computes the jacobian for the constraint.
void pickPrimaryNode()
Pick the primary node from user input or from the secondary node set.
void populateSecondaryNodes()
Populate the set of secondary nodes from user input.
void ghostPrimary()
Ghost elements and nodes connected to the primary node.
void updateConstrainedNodes()
Update the sets of nodes with constrained DOFs.
Real _penalty
Penalty if constraint is not satisfied.
virtual void meshChanged() override
Called on this object when the mesh changes.
virtual Real computeQpResidual(Moose::ConstraintType type) override
Computes the residual for the current secondary node.
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
ConstraintType
Definition MooseTypes.h:812
ConstraintJacobianType
Definition MooseTypes.h:851