2017-03-27 14:19:21 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 - Statoil ASA
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2017-03-27 14:19:21 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2017-03-27 14:19:21 +02:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-03-27 14:19:21 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cvfVector3.h"
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
|
|
|
|
///
|
2017-03-27 14:19:21 +02:00
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
class RigFractureCell
|
2017-03-27 14:19:21 +02:00
|
|
|
{
|
|
|
|
|
public:
|
2019-09-06 10:40:57 +02:00
|
|
|
RigFractureCell( std::vector<cvf::Vec3d> polygon, size_t i, size_t j );
|
2017-03-27 14:19:21 +02:00
|
|
|
|
2018-03-08 20:35:47 +01:00
|
|
|
const std::vector<cvf::Vec3d>& getPolygon() const;
|
2019-09-06 10:40:57 +02:00
|
|
|
double getConductivityValue() const;
|
|
|
|
|
size_t getI() const;
|
|
|
|
|
size_t getJ() const;
|
2017-06-20 16:40:32 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
bool hasNonZeroConductivity() const;
|
|
|
|
|
void setConductivityValue( double cond );
|
2017-04-05 14:40:54 +02:00
|
|
|
|
2019-09-06 10:40:57 +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;
|
2018-08-06 09:36:42 +02:00
|
|
|
double m_conductivityValue;
|
2017-03-27 14:19:21 +02:00
|
|
|
size_t m_i;
|
|
|
|
|
size_t m_j;
|
2017-05-26 14:10:00 +02:00
|
|
|
};
|