mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3442 UI For ICD/ICV parameters
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
#pragma once
|
||||
|
||||
#include "RiaEclipseUnitTools.h"
|
||||
|
||||
#include "RimCheckableNamedObject.h"
|
||||
#include "RimWellPathComponentInterface.h"
|
||||
|
||||
@@ -44,6 +46,13 @@ public:
|
||||
void setMeasuredDepthAndCount(double startMD, double spacing, int valveCount);
|
||||
void geometryUpdated();
|
||||
std::vector<double> valveLocations() const;
|
||||
double orificeDiameter(RiaEclipseUnitTools::UnitSystem unitSystem) const;
|
||||
double flowCoefficient() const;
|
||||
void setUnitSpecificDefaults();
|
||||
|
||||
static double convertOrificeDiameter(double orificeDiameterUi,
|
||||
RiaEclipseUnitTools::UnitSystem wellPathUnitSystem,
|
||||
RiaEclipseUnitTools::UnitSystem wantedUnitSystem);
|
||||
|
||||
// Overrides from RimWellPathCompletionInterface
|
||||
bool isEnabled() const override;
|
||||
@@ -53,7 +62,7 @@ public:
|
||||
cvf::Color3f defaultComponentColor() const override;
|
||||
double startMD() const override;
|
||||
double endMD() const override;
|
||||
|
||||
|
||||
private:
|
||||
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool* useOptionsOnly) override;
|
||||
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
||||
@@ -66,6 +75,10 @@ private:
|
||||
caf::PdmField<double> m_measuredDepth;
|
||||
caf::PdmChildField<RimMultipleValveLocations*> m_multipleValveLocations;
|
||||
|
||||
// ICD and ICVs only
|
||||
caf::PdmField<double> m_orificeDiameter;
|
||||
caf::PdmField<double> m_flowCoefficient;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user