mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5273 Allen Diagrams: Compute complete set of NNCs
Add class RigNncConnection Implement algorithm to compute the complete set of Nncs
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "RiaNncDefines.h"
|
||||
|
||||
#include "RigNncConnection.h"
|
||||
|
||||
#include "cvfObject.h"
|
||||
#include "cvfStructGrid.h"
|
||||
#include "cvfVector3.h"
|
||||
@@ -33,28 +35,6 @@ class RigMainGrid;
|
||||
class RigCell;
|
||||
class RigEclipseResultAddress;
|
||||
|
||||
class RigConnection
|
||||
{
|
||||
public:
|
||||
RigConnection()
|
||||
: m_c1GlobIdx( cvf::UNDEFINED_SIZE_T )
|
||||
, m_c1Face( cvf::StructGridInterface::NO_FACE )
|
||||
, m_c2GlobIdx( cvf::UNDEFINED_SIZE_T )
|
||||
{
|
||||
}
|
||||
|
||||
bool hasCommonArea() const
|
||||
{
|
||||
return m_polygon.size() > 0;
|
||||
}
|
||||
|
||||
size_t m_c1GlobIdx;
|
||||
cvf::StructGridInterface::FaceType m_c1Face;
|
||||
size_t m_c2GlobIdx;
|
||||
|
||||
std::vector<cvf::Vec3d> m_polygon;
|
||||
};
|
||||
|
||||
class RigNNCData : public cvf::Object
|
||||
{
|
||||
public:
|
||||
@@ -68,6 +48,7 @@ public:
|
||||
RigNNCData();
|
||||
|
||||
void processConnections( const RigMainGrid& mainGrid );
|
||||
void computeNncsFromFaults( const RigMainGrid* mainGrid );
|
||||
|
||||
void setConnections( std::vector<RigConnection>& connections );
|
||||
|
||||
@@ -108,6 +89,7 @@ private:
|
||||
|
||||
private:
|
||||
std::vector<RigConnection> m_connections;
|
||||
size_t m_nativeConnectionCount;
|
||||
std::map<QString, std::vector<std::vector<double>>> m_connectionResults;
|
||||
std::map<RigEclipseResultAddress, QString> m_resultAddrToNNCDataType;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user