mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-26 16:26:48 -06:00
Add elmNodeResultIndex access
Renamed somewhat to make things clearer in FemTypes/part
This commit is contained in:
parent
f13f05709f
commit
1f51eb92b3
@ -39,21 +39,21 @@ public:
|
||||
RigFemPart();
|
||||
virtual ~RigFemPart();
|
||||
|
||||
int elementPartId() const { return m_elementPartId; }
|
||||
void setElementPartId(int partId) { m_elementPartId = partId; }
|
||||
|
||||
int elementPartId() const { return m_elementPartId; }
|
||||
void setElementPartId(int partId) { m_elementPartId = partId; }
|
||||
|
||||
void preAllocateElementStorage(int elementCount);
|
||||
void appendElement(RigElementType elmType, int id, const int* connectivities);
|
||||
void appendElement(RigElementType elmType, int elementId, const int* connectivities);
|
||||
|
||||
size_t elementCount() const { return m_elementId.size(); }
|
||||
size_t elementCount() const { return m_elementId.size(); }
|
||||
|
||||
int elmId(size_t index) const { return m_elementId[index]; }
|
||||
RigElementType elementType(size_t index) const { return m_elementTypes[index]; }
|
||||
const int* connectivities(size_t index) const { return &m_allAlementConnectivities[m_elementConnectivityStartIndices[index]];}
|
||||
int elmId(size_t elementIdx) const { return m_elementId[elementIdx]; }
|
||||
RigElementType elementType(size_t elementIdx) const { return m_elementTypes[elementIdx]; }
|
||||
const int* connectivities(size_t elementIdx) const { return &m_allAlementConnectivities[m_elementConnectivityStartIndices[elementIdx]];}
|
||||
int elementNodeResultIdx(int elementIdx, int elmLocalNodeIdx) const { return m_elementConnectivityStartIndices[elementIdx];}
|
||||
|
||||
RigFemPartNodes& nodes() {return m_nodes;}
|
||||
const RigFemPartNodes& nodes() const {return m_nodes;}
|
||||
RigFemPartNodes& nodes() {return m_nodes;}
|
||||
const RigFemPartNodes& nodes() const {return m_nodes;}
|
||||
|
||||
private:
|
||||
int m_elementPartId;
|
||||
|
@ -55,7 +55,7 @@ const int RigFemTypes::elmentFaceCount(RigElementType elmType)
|
||||
// |/ |/
|
||||
// 0---------1
|
||||
|
||||
const int* RigFemTypes::elementLocalFaceIndices(RigElementType elmType, int faceIdx, int* faceNodeCount)
|
||||
const int* RigFemTypes::localElmNodeIndicesForFace(RigElementType elmType, int faceIdx, int* faceNodeCount)
|
||||
{
|
||||
static const int HEX8_Faces[6][4] ={ { 1, 2, 6, 5 }, { 0, 4, 7, 3 }, { 3, 7, 6, 2 }, { 0, 1, 5, 4 }, { 4, 5, 6, 7 }, { 0, 3, 2, 1 } };
|
||||
static const int CAX4_Faces[4] ={ 0, 1, 2, 3 };
|
||||
|
@ -31,6 +31,6 @@ class RigFemTypes
|
||||
public:
|
||||
static const int elmentNodeCount(RigElementType elmType);
|
||||
static const int elmentFaceCount(RigElementType elmType);
|
||||
static const int* elementLocalFaceIndices(RigElementType elmType, int faceIdx, int* faceNodeCount);
|
||||
static const int* localElmNodeIndicesForFace(RigElementType elmType, int faceIdx, int* faceNodeCount);
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user