mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6424 Fracture Model: Export Perfs.frk file.
This commit is contained in:
committed by
Magne Sjaastad
parent
1b0a5d85f0
commit
85ba3a3bc9
@@ -79,6 +79,17 @@ void caf::AppEnum<RimFractureModel::ExtractionType>::setUp()
|
||||
|
||||
setDefault( RimFractureModel::ExtractionType::TRUE_VERTICAL_THICKNESS );
|
||||
}
|
||||
|
||||
template <>
|
||||
void caf::AppEnum<RimFractureModel::FractureOrientation>::setUp()
|
||||
{
|
||||
addItem( RimFractureModel::FractureOrientation::ALONG_WELL_PATH, "ALONG_WELL_PATH", "Along Well Path" );
|
||||
addItem( RimFractureModel::FractureOrientation::TRANSVERSE_WELL_PATH,
|
||||
"TRANSVERSE_WELL_PATH",
|
||||
"Transverse (normal) to Well Path" );
|
||||
|
||||
setDefault( RimFractureModel::FractureOrientation::TRANSVERSE_WELL_PATH );
|
||||
}
|
||||
}; // namespace caf
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -206,6 +217,15 @@ RimFractureModel::RimFractureModel()
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitScriptableField( &m_perforationLength, "PerforationLength", 10.0, "Perforation Length [m]", "", "", "" );
|
||||
CAF_PDM_InitScriptableField( &m_fractureOrientation,
|
||||
"FractureOrientation",
|
||||
caf::AppEnum<FractureOrientation>( FractureOrientation::ALONG_WELL_PATH ),
|
||||
"Fracture Orientation",
|
||||
"",
|
||||
"",
|
||||
"" );
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_elasticProperties, "ElasticProperties", "Elastic Properties", "", "", "" );
|
||||
m_elasticProperties.uiCapability()->setUiHidden( true );
|
||||
m_elasticProperties.uiCapability()->setUiTreeHidden( true );
|
||||
@@ -557,6 +577,10 @@ void RimFractureModel::defineUiOrdering( QString uiConfigName, caf::PdmUiOrderin
|
||||
temperatureGroup->add( &m_referenceTemperature );
|
||||
temperatureGroup->add( &m_referenceTemperatureGradient );
|
||||
temperatureGroup->add( &m_referenceTemperatureDepth );
|
||||
|
||||
caf::PdmUiOrdering* perforationGroup = uiOrdering.addNewGroup( "Perforation" );
|
||||
perforationGroup->add( &m_perforationLength );
|
||||
perforationGroup->add( &m_fractureOrientation );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1019,3 +1043,19 @@ double RimFractureModel::computeDefaultStressDepth()
|
||||
// Use top of active cells as reference stress depth
|
||||
return -eclipseCase->activeCellsBoundingBox().max().z();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFractureModel::perforationLength() const
|
||||
{
|
||||
return m_perforationLength();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimFractureModel::FractureOrientation RimFractureModel::fractureOrientation() const
|
||||
{
|
||||
return m_fractureOrientation();
|
||||
}
|
||||
|
||||
@@ -53,6 +53,12 @@ public:
|
||||
TRUE_STRATIGRAPHIC_THICKNESS,
|
||||
};
|
||||
|
||||
enum class FractureOrientation
|
||||
{
|
||||
ALONG_WELL_PATH,
|
||||
TRANSVERSE_WELL_PATH
|
||||
};
|
||||
|
||||
RimFractureModel( void );
|
||||
~RimFractureModel( void ) override;
|
||||
|
||||
@@ -92,6 +98,9 @@ public:
|
||||
|
||||
bool useDetailedFluidLoss() const;
|
||||
|
||||
double perforationLength() const;
|
||||
FractureOrientation fractureOrientation() const;
|
||||
|
||||
// RimWellPathCompletionsInterface overrides.
|
||||
RiaDefines::WellPathComponentType componentType() const override;
|
||||
QString componentLabel() const override;
|
||||
@@ -172,4 +181,7 @@ protected:
|
||||
caf::PdmField<double> m_poroElasticConstantDefault;
|
||||
caf::PdmField<double> m_thermalExpansionCoeffientDefault;
|
||||
caf::PdmField<bool> m_useDetailedFluidLoss;
|
||||
|
||||
caf::PdmField<caf::AppEnum<FractureOrientation>> m_fractureOrientation;
|
||||
caf::PdmField<double> m_perforationLength;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user