-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile.h
69 lines (42 loc) · 1.33 KB
/
profile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef PROFILE_H_INCLUDED
#define PROFILE_H_INCLUDED
#include "base.h"
class Node;
class Element;
class Profile:public Base
{
public:
// Constructor and destructors
Profile(const char* pName);
~Profile();
// Attributes
char m_pName[256]; //profile name
//section values
double m_dA; // Area
double m_dS[2]; // Static moment
double m_de[2]; // coordinates for center of mass
double m_dIu[3]; // moment of inertia - user coordinates
double m_dIc[3]; // moment of inertia - center of mass
double m_dIm[2]; // ... in main coordinates
double m_dAlpha; // rotation angle
Node** m_pNC;
int m_nNC;
Element** m_pEC;
int m_nEC;
// Member functions/methods
int AddNodeContainer(int nLength);
int AddElementContainer(int nLength);
int AddNode(Node* pN);
int AddElement(Element* pE);
int CheckNode(Node* pN);
int CheckElement(Element* pE);
int DeleteNodes();
int DeleteElements();
void List();
// Fuctions to calculate values
void ResetSectValues();
int CalcSectValues();
void ListSectValues();
double MTrans();
};
#endif //PROFILE_H_INCLUDED