| Rev | Line |   | 
|---|
| [9285] | 1 | /*!\file SpcTransient.h
 | 
|---|
| [9002] | 2 |  * \brief: header file for spc object
 | 
|---|
 | 3 |  */
 | 
|---|
 | 4 | 
 | 
|---|
| [9285] | 5 | #ifndef _SPCTRANSIENT_H_
 | 
|---|
 | 6 | #define _SPCTRANSIENT_H_
 | 
|---|
| [9002] | 7 | 
 | 
|---|
 | 8 | /*Headers:*/
 | 
|---|
 | 9 | /*{{{1*/
 | 
|---|
 | 10 | #include "../Object.h"
 | 
|---|
 | 11 | class DataSet;
 | 
|---|
 | 12 | /*}}}*/
 | 
|---|
 | 13 | 
 | 
|---|
| [9285] | 14 | class SpcTransient: public Constraint{
 | 
|---|
| [9002] | 15 | 
 | 
|---|
 | 16 |         private: 
 | 
|---|
 | 17 |                 int     sid; /*! id, to track it*/
 | 
|---|
 | 18 |                 int     nodeid; /*!node id*/
 | 
|---|
 | 19 |                 int dof; /*!component*/
 | 
|---|
 | 20 |                 double* values; /*different values in time*/
 | 
|---|
 | 21 |                 double* times; /*different time steps*/
 | 
|---|
 | 22 |                 int nsteps; /*number of time steps*/
 | 
|---|
 | 23 |                 int analysis_type;
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 |         public:
 | 
|---|
 | 26 | 
 | 
|---|
| [9285] | 27 |                 /*SpcTransient constructors, destructors:{{{1*/
 | 
|---|
 | 28 |                 SpcTransient();
 | 
|---|
 | 29 |                 SpcTransient(int sid,int nodeid, int dof,int nsteps, double* times, double* values,int analysis_type);
 | 
|---|
 | 30 |                 ~SpcTransient();
 | 
|---|
| [9002] | 31 |                 /*}}}*/
 | 
|---|
 | 32 |                 /*Object virtual functions definitions:{{{1 */
 | 
|---|
 | 33 |                 void  Echo();
 | 
|---|
 | 34 |                 void  DeepEcho();
 | 
|---|
 | 35 |                 int   Id(); 
 | 
|---|
 | 36 |                 int   MyRank();
 | 
|---|
| [9777] | 37 |                 #ifdef _SERIAL_
 | 
|---|
| [9002] | 38 |                 void  Marshall(char** pmarshalled_dataset);
 | 
|---|
 | 39 |                 int   MarshallSize();
 | 
|---|
 | 40 |                 void  Demarshall(char** pmarshalled_dataset);
 | 
|---|
| [9777] | 41 |                 #endif
 | 
|---|
| [9883] | 42 |                 int   ObjectEnum();
 | 
|---|
| [9002] | 43 |                 Object* copy();
 | 
|---|
 | 44 |                 /*}}}*/
 | 
|---|
 | 45 |                 /*Constraint virtual functions definitions: {{{1*/
 | 
|---|
 | 46 |                 void   ConstrainNode(Nodes* nodes,Parameters* parameters);
 | 
|---|
 | 47 |                 bool   InAnalysis(int analysis_type);
 | 
|---|
 | 48 |                 /*}}}*/
 | 
|---|
| [9285] | 49 |                 /*SpcTransient management:{{{1 */
 | 
|---|
| [9002] | 50 |                 int    GetNodeId();
 | 
|---|
 | 51 |                 int    GetDof();
 | 
|---|
 | 52 |                 double GetValue();
 | 
|---|
 | 53 |                 /*}}}*/
 | 
|---|
 | 54 | 
 | 
|---|
 | 55 | };
 | 
|---|
 | 56 | 
 | 
|---|
| [9285] | 57 | #endif  /* _SPCTRANSIENT_H_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.