mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
NNC import started
This commit is contained in:
75
ApplicationCode/ReservoirDataModel/RigNNCData.h
Normal file
75
ApplicationCode/ReservoirDataModel/RigNNCData.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) Statoil ASA, Ceetron Solutions AS
|
||||
//
|
||||
// ResInsight is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
// FITNESS FOR A PARTICULAR PURPOSE.
|
||||
//
|
||||
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
||||
// for more details.
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "cvfBase.h"
|
||||
#include "cvfObject.h"
|
||||
#include "cvfVector3.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "cvfStructGrid.h"
|
||||
#include "cafFixedArray.h"
|
||||
|
||||
class RigMainGrid;
|
||||
|
||||
|
||||
class RigConnection
|
||||
{
|
||||
public:
|
||||
RigConnection( )
|
||||
: m_c1GlobIdx(cvf::UNDEFINED_SIZE_T),
|
||||
m_c1Face(cvf::StructGridInterface::POS_I),
|
||||
m_c2GlobIdx(cvf::UNDEFINED_SIZE_T),
|
||||
m_c2Face(cvf::StructGridInterface::NEG_I),
|
||||
m_hasNoSharedArea(false),
|
||||
m_transmissibility(0.0)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
bool m_hasNoSharedArea;
|
||||
size_t m_c1GlobIdx;
|
||||
cvf::StructGridInterface::FaceType m_c1Face;
|
||||
size_t m_c2GlobIdx;
|
||||
cvf::StructGridInterface::FaceType m_c2Face; //7 Probably Unused. Remove
|
||||
|
||||
double m_transmissibility;
|
||||
/* enum NNCType
|
||||
{
|
||||
|
||||
};*/
|
||||
};
|
||||
|
||||
|
||||
class RigNNCData : public cvf::Object
|
||||
{
|
||||
|
||||
public:
|
||||
RigNNCData();
|
||||
|
||||
void processConnections(const RigMainGrid& mainGrid);
|
||||
|
||||
std::vector<RigConnection>& connections() { return m_connections; }
|
||||
const std::vector<RigConnection>& connections() const { return m_connections; };
|
||||
|
||||
private:
|
||||
|
||||
std::vector<RigConnection> m_connections;
|
||||
};
|
||||
Reference in New Issue
Block a user