mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6495 Fracture Model: add facies properties.
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimElasticProperties.h"
|
||||
#include "RimEllipseFractureTemplate.h"
|
||||
#include "RimFaciesProperties.h"
|
||||
#include "RimFractureModelPlot.h"
|
||||
#include "RimModeledWellPath.h"
|
||||
#include "RimOilField.h"
|
||||
@@ -68,7 +70,7 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimFractureModel, "RimFractureModel" );
|
||||
CAF_PDM_SOURCE_INIT( RimFractureModel, "RimFractureModel" );
|
||||
|
||||
namespace caf
|
||||
{
|
||||
@@ -249,6 +251,9 @@ RimFractureModel::RimFractureModel()
|
||||
m_elasticProperties.uiCapability()->setUiTreeHidden( true );
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_barrierAnnotation, "BarrierAnnotation", "Barrier Annotation", "", "", "" );
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_faciesProperties, "FaciesProperties", "Facies Properties", "", "", "" );
|
||||
m_faciesProperties.uiCapability()->setUiHidden( true );
|
||||
m_faciesProperties.uiCapability()->setUiTreeHidden( true );
|
||||
|
||||
setDeletable( true );
|
||||
}
|
||||
@@ -957,6 +962,22 @@ void RimFractureModel::setElasticProperties( RimElasticProperties* elasticProper
|
||||
m_elasticProperties = elasticProperties;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFaciesProperties* RimFractureModel::faciesProperties() const
|
||||
{
|
||||
return m_faciesProperties;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureModel::setFaciesProperties( RimFaciesProperties* faciesProperties )
|
||||
{
|
||||
m_faciesProperties = faciesProperties;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -966,6 +987,11 @@ void RimFractureModel::loadDataAndUpdate()
|
||||
{
|
||||
m_elasticProperties->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
if ( m_faciesProperties )
|
||||
{
|
||||
m_faciesProperties->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1119,9 +1145,9 @@ double RimFractureModel::getDefaultValueForProperty( RiaDefines::CurveProperty c
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimFractureModel::hasDefaultValueForProperty( RiaDefines::CurveProperty curveProperty ) const
|
||||
{
|
||||
auto withDefaults = {RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
|
||||
RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
|
||||
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT};
|
||||
auto withDefaults = { RiaDefines::CurveProperty::RELATIVE_PERMEABILITY_FACTOR,
|
||||
RiaDefines::CurveProperty::PORO_ELASTIC_CONSTANT,
|
||||
RiaDefines::CurveProperty::THERMAL_EXPANSION_COEFFICIENT };
|
||||
return std::find( withDefaults.begin(), withDefaults.end(), curveProperty ) != withDefaults.end();
|
||||
}
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class RimElasticProperties;
|
||||
class RigEclipseCaseData;
|
||||
class RimAnnotationCollection;
|
||||
class RimUserDefinedPolylinesAnnotation;
|
||||
class RimFaciesProperties;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -136,6 +137,9 @@ public:
|
||||
double getOverburdenGradient( const QString& keyword ) const;
|
||||
double getUnderburdenGradient( const QString& keyword ) const;
|
||||
|
||||
void setFaciesProperties( RimFaciesProperties* faciesProperties );
|
||||
RimFaciesProperties* faciesProperties() const;
|
||||
|
||||
void updateReferringPlots();
|
||||
|
||||
protected:
|
||||
@@ -183,6 +187,7 @@ protected:
|
||||
caf::PdmField<double> m_boundingBoxHorizontal;
|
||||
caf::PdmPtrField<RimModeledWellPath*> m_thicknessDirectionWellPath;
|
||||
caf::PdmChildField<RimElasticProperties*> m_elasticProperties;
|
||||
caf::PdmChildField<RimFaciesProperties*> m_faciesProperties;
|
||||
caf::PdmField<double> m_defaultPorosity;
|
||||
caf::PdmField<double> m_defaultPermeability;
|
||||
caf::PdmField<double> m_verticalStress;
|
||||
|
||||
Reference in New Issue
Block a user