forked from idaholab/moose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NodalEqualValueConstraint.h
45 lines (35 loc) · 1.53 KB
/
NodalEqualValueConstraint.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/****************************************************************/
/* DO NOT MODIFY THIS HEADER */
/* MOOSE - Multiphysics Object Oriented Simulation Environment */
/* */
/* (c) 2010 Battelle Energy Alliance, LLC */
/* ALL RIGHTS RESERVED */
/* */
/* Prepared by Battelle Energy Alliance, LLC */
/* Under Contract No. DE-AC07-05ID14517 */
/* With the U. S. Department of Energy */
/* */
/* See COPYRIGHT for full restrictions */
/****************************************************************/
#ifndef NODALEQUALVALUECONSTRAINT_H
#define NODALEQUALVALUECONSTRAINT_H
#include "NodalScalarKernel.h"
class NodalEqualValueConstraint;
template<>
InputParameters validParams<NodalEqualValueConstraint>();
/**
* Constraint to enforce equal values (in 1D)
*/
class NodalEqualValueConstraint : public NodalScalarKernel
{
public:
NodalEqualValueConstraint(const std::string & name, InputParameters parameters);
virtual ~NodalEqualValueConstraint();
virtual void computeResidual();
virtual void computeJacobian();
protected:
std::vector<Real> _normals;
std::vector<unsigned int> _val_number;
std::vector<VariableValue *> _value;
};
#endif /* NODALEQUALVALUECONSTRAINT_H */