2017-03-27 14:19:21 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 - Statoil ASA
|
|
|
|
|
//
|
|
|
|
|
// 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 "cvfVector3.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2017-05-30 11:52:19 +02:00
|
|
|
class RigFractureCell
|
2017-03-27 14:19:21 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public:
|
2017-05-30 11:52:19 +02:00
|
|
|
RigFractureCell(std::vector<cvf::Vec3d> polygon, size_t i, size_t j);
|
2017-03-27 14:19:21 +02:00
|
|
|
|
2017-05-26 14:10:00 +02:00
|
|
|
const std::vector<cvf::Vec3d>& getPolygon() const { return m_polygon; }
|
2017-04-25 16:08:44 +02:00
|
|
|
double getConductivtyValue() const { return m_concutivityValue; }
|
2017-05-22 12:46:57 +02:00
|
|
|
size_t getI() const { return m_i; }
|
|
|
|
|
size_t getJ() const { return m_j; }
|
2017-06-20 16:40:32 +02:00
|
|
|
|
|
|
|
|
bool hasNonZeroConductivity() const { return m_concutivityValue > 1e-7; }
|
2017-04-19 14:12:47 +02:00
|
|
|
void setConductivityValue(double cond) { m_concutivityValue = cond; }
|
2017-04-05 14:40:54 +02:00
|
|
|
|
2017-04-25 16:08:44 +02:00
|
|
|
double cellSizeX() const;
|
|
|
|
|
double cellSizeZ() const;
|
2017-09-07 21:06:45 +02:00
|
|
|
|
2017-03-27 14:19:21 +02:00
|
|
|
private:
|
|
|
|
|
std::vector<cvf::Vec3d> m_polygon;
|
2017-04-06 09:34:38 +02:00
|
|
|
double m_concutivityValue;
|
2017-03-27 14:19:21 +02:00
|
|
|
size_t m_i;
|
|
|
|
|
size_t m_j;
|
2017-05-26 14:10:00 +02:00
|
|
|
};
|
2017-05-26 16:27:48 +02:00
|
|
|
|