mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 14:03:18 -06:00
#3397 non-darcy perforations. Add getters
This commit is contained in:
parent
565201741d
commit
9a3b1c528a
@ -68,6 +68,94 @@ RimNonDarcyPerforationParameters::~RimNonDarcyPerforationParameters()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimNonDarcyPerforationParameters::NonDarcyFlowEnum RimNonDarcyPerforationParameters::nonDarcyFlowType() const
|
||||
{
|
||||
return m_nonDarcyFlowType();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::userDefinedDFactor() const
|
||||
{
|
||||
return m_userDefinedDFactor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::unitConstant() const
|
||||
{
|
||||
return m_unitConstant;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::inertialCoefficient() const
|
||||
{
|
||||
return m_inertialCoefficient;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::effectivePermeability() const
|
||||
{
|
||||
return m_effectivePermeability;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::wellRadius() const
|
||||
{
|
||||
return m_wellRadius;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::relativeGasDensity() const
|
||||
{
|
||||
return m_relativeGasDensity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::gasViscosity() const
|
||||
{
|
||||
return m_gasViscosity;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::inertialCoefficientBeta0() const
|
||||
{
|
||||
return m_inertialCoefficientBeta0;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::permeabilityScalingFactor() const
|
||||
{
|
||||
return m_permeabilityScalingFactor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimNonDarcyPerforationParameters::porosityScalingFactor() const
|
||||
{
|
||||
return m_porosityScalingFactor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -111,30 +199,3 @@ void RimNonDarcyPerforationParameters::defineUiOrdering(QString uiConfigName, ca
|
||||
}
|
||||
uiOrdering.skipRemainingFields(true);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimNonDarcyPerforationParameters::initAfterRead()
|
||||
{
|
||||
//if (m_linerDiameter() == std::numeric_limits<double>::infinity() &&
|
||||
// m_roughnessFactor() == std::numeric_limits<double>::infinity())
|
||||
//{
|
||||
// setUnitSystemSpecificDefaults();
|
||||
//}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimNonDarcyPerforationParameters::setUnitSystemSpecificDefaults()
|
||||
{
|
||||
RimWellPath* wellPath;
|
||||
firstAncestorOrThisOfType(wellPath);
|
||||
if (wellPath)
|
||||
{
|
||||
//m_linerDiameter = defaultLinerDiameter(wellPath->unitSystem());
|
||||
//m_roughnessFactor = defaultRoughnessFactor(wellPath->unitSystem());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -38,14 +38,23 @@ public:
|
||||
RimNonDarcyPerforationParameters();
|
||||
~RimNonDarcyPerforationParameters();
|
||||
|
||||
void setUnitSystemSpecificDefaults();
|
||||
NonDarcyFlowEnum nonDarcyFlowType() const;
|
||||
double userDefinedDFactor() const;
|
||||
double unitConstant() const;
|
||||
double inertialCoefficient() const;
|
||||
double effectivePermeability() const;
|
||||
double wellRadius() const;
|
||||
double relativeGasDensity() const;
|
||||
double gasViscosity() const;
|
||||
double inertialCoefficientBeta0() const;
|
||||
double permeabilityScalingFactor() const;
|
||||
double porosityScalingFactor() const;
|
||||
|
||||
protected:
|
||||
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
const QVariant& newValue);
|
||||
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
||||
virtual void initAfterRead() override;
|
||||
|
||||
private:
|
||||
caf::PdmField<caf::AppEnum<NonDarcyFlowEnum>> m_nonDarcyFlowType;
|
||||
|
Loading…
Reference in New Issue
Block a user