|
Last change
on this file since 22200 was 22200, checked in by erobo, 8 years ago |
|
NEW: added inflow constraint as a possible variable for dakota, only working for MC for now
|
|
File size:
812 bytes
|
| Line | |
|---|
| 1 | /*!\file: Constraint.h
|
|---|
| 2 | * \brief abstract class for Constraint object
|
|---|
| 3 | * This class is a place holder for constraints
|
|---|
| 4 | * It is derived from Object, so DataSets can contain them.
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef _CONSTRAINT_H_
|
|---|
| 8 | #define _CONSTRAINT_H_
|
|---|
| 9 |
|
|---|
| 10 | /*Headers:*/
|
|---|
| 11 | /*{{{*/
|
|---|
| 12 | class Nodes;
|
|---|
| 13 | #include "../../datastructures/datastructures.h"
|
|---|
| 14 | #include "../../toolkits/toolkits.h"
|
|---|
| 15 | /*}}}*/
|
|---|
| 16 |
|
|---|
| 17 | class Constraint: public Object{
|
|---|
| 18 |
|
|---|
| 19 | public:
|
|---|
| 20 |
|
|---|
| 21 | virtual ~Constraint(){};
|
|---|
| 22 | virtual void ActivatePenaltyMethod(void)=0;
|
|---|
| 23 | virtual void ConstrainNode(Nodes* nodes,Parameters* parameters)=0;
|
|---|
| 24 | virtual bool InAnalysis(int analysis_type)=0;
|
|---|
| 25 | virtual void PenaltyDofAndValue(int* dof,IssmDouble* value,Nodes* nodes,Parameters* parameters)=0;
|
|---|
| 26 | virtual void InputUpdateFromVectorDakota(IssmDouble* vector,Nodes* nodes,int name,int type) = 0;
|
|---|
| 27 |
|
|---|
| 28 | };
|
|---|
| 29 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.