Last change
on this file since 18388 was 18388, checked in by Mathieu Morlighem, 11 years ago |
NEW: extended penlaty method to all Spc classes
|
File size:
1.3 KB
|
Rev | Line | |
---|
[9286] | 1 | /*!\file SpcDynamic.h
|
---|
| 2 | * \brief: header file for spc object
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | #ifndef _SPCDynamic_H_
|
---|
| 6 | #define _SPCDynamic_H_
|
---|
| 7 |
|
---|
| 8 | /*Headers:*/
|
---|
[12365] | 9 | /*{{{*/
|
---|
[15067] | 10 | #include "../../datastructures/datastructures.h"
|
---|
[9286] | 11 | /*}}}*/
|
---|
| 12 |
|
---|
| 13 | class SpcDynamic: public Constraint{
|
---|
| 14 |
|
---|
| 15 | private:
|
---|
[18388] | 16 | int sid; /*! id, to track it */
|
---|
| 17 | int nodeid; /*!node id */
|
---|
| 18 | int dof; /*!component */
|
---|
| 19 | IssmDouble value; /*value */
|
---|
| 20 | bool isset;
|
---|
| 21 | int analysis_type;
|
---|
| 22 | bool penalty; /*Is this a penalty constraint */
|
---|
[9286] | 23 |
|
---|
| 24 | public:
|
---|
| 25 |
|
---|
[18388] | 26 | /*SpcDynamic constructors, destructors*/
|
---|
[9286] | 27 | SpcDynamic();
|
---|
[9298] | 28 | SpcDynamic(int sid,int nodeid, int dof,int analysis_type);
|
---|
[9286] | 29 | ~SpcDynamic();
|
---|
[18388] | 30 |
|
---|
| 31 | /*Object virtual functions definitions*/
|
---|
| 32 | void Echo();
|
---|
| 33 | void DeepEcho();
|
---|
| 34 | int Id();
|
---|
| 35 | int ObjectEnum();
|
---|
| 36 | Object *copy();
|
---|
| 37 |
|
---|
| 38 | /*Constraint virtual functions definitions*/
|
---|
| 39 | void ConstrainNode(Nodes* nodes,Parameters* parameters);
|
---|
| 40 | bool InAnalysis(int analysis_type);
|
---|
| 41 | void ActivatePenaltyMethod(void);
|
---|
| 42 | void PenaltyDofAndValue(int* dof,IssmDouble* value,Nodes* nodes,Parameters* parameters){_error_("not implemented yet");};
|
---|
| 43 |
|
---|
| 44 | /*SpcDynamic management*/
|
---|
| 45 | int GetNodeId();
|
---|
| 46 | int GetDof();
|
---|
[12462] | 47 | IssmDouble GetValue();
|
---|
[18388] | 48 | void SetDynamicConstraint(Nodes *nodes,IssmDouble *yg_serial);
|
---|
[9286] | 49 |
|
---|
| 50 | };
|
---|
| 51 |
|
---|
| 52 | #endif /* _SPCStatic_H_*/
|
---|
Note:
See
TracBrowser
for help on using the repository browser.