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