mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2505 Add setFractureContainment batch command
This commit is contained in:
@@ -116,6 +116,22 @@ bool RimFractureContainment::isEclipseCellWithinContainment(const RigMainGrid* m
|
||||
return true;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureContainment::setTopKLayer(int topKLayer)
|
||||
{
|
||||
m_topKLayer = topKLayer;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureContainment::setBaseKLayer(int baseKLayer)
|
||||
{
|
||||
m_baseKLayer = baseKLayer;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -41,6 +41,9 @@ public:
|
||||
bool isEnabled() const { return m_isUsingFractureContainment();}
|
||||
bool isEclipseCellWithinContainment(const RigMainGrid* mainGrid, size_t anchorEclipseCell, size_t globalCellIndex) const;
|
||||
|
||||
void setTopKLayer(int topKLayer);
|
||||
void setBaseKLayer(int baseKLayer);
|
||||
|
||||
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -683,6 +683,22 @@ void RimFractureTemplate::setScaleFactors(double width, double height, double dF
|
||||
m_conductivityScaleFactor = supportsConductivityScaling() ? conductivity : 1.0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::setContainmentTopKLayer(int topKLayer)
|
||||
{
|
||||
m_fractureContainment->setTopKLayer(topKLayer);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::setContainmentBaseKLayer(int baseKLayer)
|
||||
{
|
||||
m_fractureContainment->setBaseKLayer(baseKLayer);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -150,6 +150,9 @@ public:
|
||||
void setScaleFactors(double width, double height, double dFactor, double conductivity);
|
||||
virtual void reload() {}
|
||||
|
||||
void setContainmentTopKLayer(int topKLayer);
|
||||
void setContainmentBaseKLayer(int baseKLayer);
|
||||
|
||||
protected:
|
||||
virtual caf::PdmFieldHandle* userDescriptionField() override;
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
|
||||
Reference in New Issue
Block a user