2017-06-08 15:54:06 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 - Statoil ASA
|
2018-09-11 06:22:57 -05:00
|
|
|
//
|
2017-06-08 15:54:06 -05: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.
|
2018-09-11 06:22:57 -05:00
|
|
|
//
|
2017-06-08 15:54:06 -05: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.
|
2018-09-11 06:22:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-06-08 15:54:06 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
2017-06-14 05:44:08 -05:00
|
|
|
|
2017-06-08 15:54:06 -05:00
|
|
|
#include "cafPdmField.h"
|
2018-09-11 06:22:57 -05:00
|
|
|
#include "cafPdmObject.h"
|
2017-06-08 15:54:06 -05:00
|
|
|
|
2017-06-20 04:18:19 -05:00
|
|
|
class RigMainGrid;
|
|
|
|
|
2018-05-25 01:13:11 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-09-11 06:22:57 -05:00
|
|
|
///
|
2018-05-25 01:13:11 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2018-09-11 06:22:57 -05:00
|
|
|
class RimFractureContainment : public caf::PdmObject
|
2017-06-08 15:54:06 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimFractureContainment();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimFractureContainment() override;
|
2017-06-08 15:54:06 -05:00
|
|
|
|
2018-05-25 01:13:11 -05:00
|
|
|
bool isEnabled() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
bool isEclipseCellOpenForFlow( const RigMainGrid* mainGrid,
|
|
|
|
size_t globalCellIndex,
|
|
|
|
const std::set<size_t>& reservoirCellIndicesOpenForFlow ) const;
|
2017-06-14 05:44:08 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setTopKLayer( int topKLayer );
|
2018-09-11 06:22:57 -05:00
|
|
|
int topKLayer() const;
|
2018-06-29 03:57:26 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setBaseKLayer( int baseKLayer );
|
2018-09-11 06:22:57 -05:00
|
|
|
int baseKLayer() const;
|
2018-03-05 07:17:18 -06:00
|
|
|
|
2018-06-25 02:24:48 -05:00
|
|
|
double minimumFaultThrow() const; // Negative value means do not test for fault throw
|
2018-06-04 04:16:34 -05:00
|
|
|
|
2018-05-25 01:13:11 -05:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2017-06-08 15:54:06 -05:00
|
|
|
|
|
|
|
private:
|
2018-06-07 09:50:50 -05:00
|
|
|
caf::PdmField<bool> m_useContainment;
|
2017-06-14 05:44:08 -05:00
|
|
|
caf::PdmField<int> m_topKLayer;
|
2017-06-20 04:18:19 -05:00
|
|
|
caf::PdmField<int> m_baseKLayer;
|
2017-06-08 15:54:06 -05:00
|
|
|
|
2018-09-11 06:22:57 -05:00
|
|
|
caf::PdmField<bool> m_truncateAtFaults;
|
|
|
|
caf::PdmField<float> m_minimumFaultThrow;
|
2017-06-08 15:54:06 -05:00
|
|
|
};
|