|
Last change
on this file since 18344 was 18344, checked in by Mathieu Morlighem, 11 years ago |
|
NEW: added Low order scheme of Flux Transport Correction ALgorithm
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /*!\file SpcDynamic.h
|
|---|
| 2 | * \brief: header file for spc object
|
|---|
| 3 | */
|
|---|
| 4 |
|
|---|
| 5 | #ifndef _SPCDynamic_H_
|
|---|
| 6 | #define _SPCDynamic_H_
|
|---|
| 7 |
|
|---|
| 8 | /*Headers:*/
|
|---|
| 9 | /*{{{*/
|
|---|
| 10 | #include "../../datastructures/datastructures.h"
|
|---|
| 11 | /*}}}*/
|
|---|
| 12 |
|
|---|
| 13 | class SpcDynamic: public Constraint{
|
|---|
| 14 |
|
|---|
| 15 | private:
|
|---|
| 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 |
|
|---|
| 23 | public:
|
|---|
| 24 |
|
|---|
| 25 | /*SpcDynamic constructors, destructors:{{{*/
|
|---|
| 26 | SpcDynamic();
|
|---|
| 27 | SpcDynamic(int sid,int nodeid, int dof,int analysis_type);
|
|---|
| 28 | ~SpcDynamic();
|
|---|
| 29 | /*}}}*/
|
|---|
| 30 | /*Object virtual functions definitions:{{{ */
|
|---|
| 31 | void Echo();
|
|---|
| 32 | void DeepEcho();
|
|---|
| 33 | int Id();
|
|---|
| 34 | int ObjectEnum();
|
|---|
| 35 | Object* copy();
|
|---|
| 36 | /*}}}*/
|
|---|
| 37 | /*Constraint virtual functions definitions: {{{*/
|
|---|
| 38 | void ConstrainNode(Nodes* nodes,Parameters* parameters);
|
|---|
| 39 | bool InAnalysis(int analysis_type);
|
|---|
| 40 | void PenaltyDofAndValue(int* dof,IssmDouble* value,Nodes* nodes,Parameters* parameters){_error_("not implemented yet");};
|
|---|
| 41 | /*}}}*/
|
|---|
| 42 | /*SpcDynamic management:{{{ */
|
|---|
| 43 | int GetNodeId();
|
|---|
| 44 | int GetDof();
|
|---|
| 45 | IssmDouble GetValue();
|
|---|
| 46 | void SetDynamicConstraint(Nodes* nodes,IssmDouble *yg_serial);
|
|---|
| 47 | /*}}}*/
|
|---|
| 48 |
|
|---|
| 49 | };
|
|---|
| 50 |
|
|---|
| 51 | #endif /* _SPCStatic_H_*/
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.