The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings MMD
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

1 #ifndef PRIMAL_H
2 #define PRIMAL_H
4 #include "mmd.h"
6 #define DEF_hexaedron_localNodeList \
7 static const connectivity_int  hexaedron_localNodeList[HEXAHEDRON_FACES][QUAD]={ \
8 {0,3,2,1}, \
9 {0,1,5,4}, \
10 {0,4,7,3}, \
11 {1,2,6,5}, \
12 {4,5,6,7}, \
13 {3,7,6,2} \
14 };
17 #define DEF_hexaedron_localNodeListNumbers \
18 static const connectivity_int  hexaedron_localNodeListNumbers[HEXAHEDRON_FACES]={ \
19   QUAD, \
20   QUAD, \
21   QUAD, \
22   QUAD, \
23   QUAD, \
24   QUAD \
25 };
28 #define DEF_hexaedron_localSegmentList \
29 static const connectivity_int  hexaedron_localSegmentList[HEXAHEDRON_SEGMENTS][SEGMENTVERTEX]={ \
30 {0,1}, \
31 {1,5}, \
32 {5,4}, \
33 {4,0}, \
34 {4,7}, \
35 {1,2}, \
36 {2,3}, \
37 {3,7}, \
38 {7,6}, \
39 {6,2}, \
40 {5,6}, \
41 {0,3} \
42 };
46 #define DEF_hexaedron_localSegmentsListNumbers \
47 static const connectivity_int  hexaedron_localSegmentsListNumbers[HEXAHEDRON_SEGMENTS]={ \
48   SEGMENTVERTEX, \
49   SEGMENTVERTEX, \
50   SEGMENTVERTEX, \
51   SEGMENTVERTEX, \
52   SEGMENTVERTEX, \
53   SEGMENTVERTEX, \
54   SEGMENTVERTEX, \
55   SEGMENTVERTEX, \
56   SEGMENTVERTEX, \
57   SEGMENTVERTEX, \
58   SEGMENTVERTEX, \
59   SEGMENTVERTEX \
60 };
64 void setHexahedreVertex(struct primalMesh * myPrimalMesh);
66 void setHexahedreCellToVertexNumber(struct primalMesh * myPrimalMesh);
68 void setHexahedreCellToVertex(struct primalMesh * myPrimalMesh);
70 void setHexahedreVertexToCellNumbers(struct primalMesh * myPrimalMesh);
72 void setHexahedreVertexToCells(struct primalMesh * myPrimalMesh);
74 void setHexahedreCellToCells(struct primalMesh * myPrimalMesh);
76 void setHexahedreCellToFacesOwnerNeighbour(struct primalMesh * myPrimalMesh);
78 void setHexahedreFaceToCells(struct primalMesh * myPrimalMesh);
80 void setHexahedreSegments(struct primalMesh * myPrimalMesh);
82 void setHexahedreSegmentsCentres(struct primalMesh * myPrimalMesh);
84 void setHexahedreSegments2(struct primalMesh * myPrimalMesh);
86 void setHexahedreVertexToSegments(struct primalMesh * myPrimalMesh);
88 void setHexahedreSegmentToFaces(struct primalMesh * myPrimalMesh);
90 void setHexahedreSegmentToFaces2(struct primalMesh * myPrimalMesh);
92 void setHexahedreSortFaceToVertex(struct primalMesh * myPrimalMesh);
94 void setHexahedreAllocVertexToSegment(struct primalMesh * myPrimalMesh);
96 void setHexahedreFaceCentersAreas(struct primalMesh * myPrimalMesh);
98 void setHexahedreEstimateVolumeCentroid(struct primalMesh * myPrimalMesh);
100 void setHexahedreVolumeCentroid(struct primalMesh * myPrimalMesh);
101 #endif // PRIMAL_H