https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NodalStickConstraint.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
21 virtual void meshChanged() override;
22
23 virtual void computeResidual(const NumericVector<Number> & residual) override;
24 virtual void computeJacobian(const SparseMatrix<Number> & jacobian) override;
27
28protected:
33
34 virtual Real computeQpResidual(Moose::ConstraintType type) override;
36
39
42
44 const Real & _penalty;
45
47 std::vector<dof_id_type> _primary_conn;
48};
const InputParameters & parameters() const
const std::string & type() const
virtual void computeResidual() override final
virtual void computeJacobian() override final
const Real & _penalty
Tangential stiffness of spring in all directions.
virtual void meshChanged() override
virtual void computeResidual() override final
std::vector< dof_id_type > _primary_conn
primary node id connected to each secondary node in _connected_nodes
virtual Real computeQpResidual(Moose::ConstraintType type) override
void updateConstrainedNodes()
Update the sets of nodes with constrained DOFs.
static InputParameters validParams()
BoundaryName _secondary_boundary_id
Holds the secondary node set or side set.
BoundaryName _primary_boundary_id
Holds the secondary node set or side set.
virtual Real computeQpJacobian(Moose::ConstraintJacobianType type) override
virtual void computeJacobian() override final
ConstraintType
ConstraintJacobianType