Last change
on this file since 12706 was 12706, checked in by Mathieu Morlighem, 13 years ago |
merged trunk-jpl and trunk for revision 12703
|
File size:
1.1 KB
|
Line | |
---|
1 | /*!\file SpcTransient.h
|
---|
2 | * \brief: header file for spc object
|
---|
3 | */
|
---|
4 |
|
---|
5 | #ifndef _SPCTRANSIENT_H_
|
---|
6 | #define _SPCTRANSIENT_H_
|
---|
7 |
|
---|
8 | /*Headers:*/
|
---|
9 | /*{{{*/
|
---|
10 | #include "../Object.h"
|
---|
11 | class DataSet;
|
---|
12 | /*}}}*/
|
---|
13 |
|
---|
14 | class SpcTransient: public Constraint{
|
---|
15 |
|
---|
16 | private:
|
---|
17 | int sid; /*! id, to track it*/
|
---|
18 | int nodeid; /*!node id*/
|
---|
19 | int dof; /*!component*/
|
---|
20 | IssmDouble* values; /*different values in time*/
|
---|
21 | IssmDouble* times; /*different time steps*/
|
---|
22 | int nsteps; /*number of time steps*/
|
---|
23 | int analysis_type;
|
---|
24 |
|
---|
25 | public:
|
---|
26 |
|
---|
27 | /*SpcTransient constructors, destructors:{{{*/
|
---|
28 | SpcTransient();
|
---|
29 | SpcTransient(int sid,int nodeid, int dof,int nsteps, IssmDouble* times, IssmDouble* values,int analysis_type);
|
---|
30 | ~SpcTransient();
|
---|
31 | /*}}}*/
|
---|
32 | /*Object virtual functions definitions:{{{ */
|
---|
33 | void Echo();
|
---|
34 | void DeepEcho();
|
---|
35 | int Id();
|
---|
36 | int MyRank();
|
---|
37 | int ObjectEnum();
|
---|
38 | Object* copy();
|
---|
39 | /*}}}*/
|
---|
40 | /*Constraint virtual functions definitions: {{{*/
|
---|
41 | void ConstrainNode(Nodes* nodes,Parameters* parameters);
|
---|
42 | bool InAnalysis(int analysis_type);
|
---|
43 | /*}}}*/
|
---|
44 | /*SpcTransient management:{{{ */
|
---|
45 | int GetNodeId();
|
---|
46 | int GetDof();
|
---|
47 | IssmDouble GetValue();
|
---|
48 | /*}}}*/
|
---|
49 |
|
---|
50 | };
|
---|
51 |
|
---|
52 | #endif /* _SPCTRANSIENT_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.