mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-03 04:00:57 -06:00
4f89e38334
Move msw parameters to well path Make it clear when options are taken from top level well path or well path lateral Use well path lateral custom values for diameter and roughness
101 lines
3.4 KiB
C++
101 lines
3.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2018 Equinor ASA
|
|
//
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
//
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
//
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
// for more details.
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
#pragma once
|
|
|
|
#include "RiaDefines.h"
|
|
|
|
#include "cafPdmField.h"
|
|
#include "cafPdmObject.h"
|
|
#include "cafPdmUiGroup.h"
|
|
|
|
class RimMswCompletionParameters : public caf::PdmObject
|
|
{
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
enum class ReferenceMDType
|
|
{
|
|
AUTO_REFERENCE_MD = 0,
|
|
MANUAL_REFERENCE_MD
|
|
};
|
|
|
|
enum class PressureDropType
|
|
{
|
|
HYDROSTATIC,
|
|
HYDROSTATIC_FRICTION,
|
|
HYDROSTATIC_FRICTION_ACCELERATION
|
|
};
|
|
|
|
enum class LengthAndDepthType
|
|
{
|
|
ABS,
|
|
INC
|
|
};
|
|
|
|
using ReferenceMDEnum = caf::AppEnum<ReferenceMDType>;
|
|
using PressureDropEnum = caf::AppEnum<PressureDropType>;
|
|
using LengthAndDepthEnum = caf::AppEnum<LengthAndDepthType>;
|
|
|
|
RimMswCompletionParameters();
|
|
~RimMswCompletionParameters() override;
|
|
|
|
bool isDefault() const;
|
|
RimMswCompletionParameters& operator=( const RimMswCompletionParameters& rhs );
|
|
|
|
ReferenceMDType referenceMDType() const;
|
|
double manualReferenceMD() const;
|
|
double linerDiameter( RiaDefines::EclipseUnitSystem unitSystem ) const;
|
|
static double defaultLinerDiameter( RiaDefines::EclipseUnitSystem unitSystem );
|
|
double roughnessFactor( RiaDefines::EclipseUnitSystem unitSystem ) const;
|
|
static double defaultRoughnessFactor( RiaDefines::EclipseUnitSystem unitSystem );
|
|
PressureDropEnum pressureDrop() const;
|
|
LengthAndDepthEnum lengthAndDepth() const;
|
|
double maxSegmentLength() const;
|
|
|
|
void setReferenceMDType( ReferenceMDType refType );
|
|
void setManualReferenceMD( double manualRefMD );
|
|
void setLinerDiameter( double diameter );
|
|
void setRoughnessFactor( double roughnessFactor );
|
|
void setPressureDrop( PressureDropType pressureDropType );
|
|
void setLengthAndDepth( LengthAndDepthType lengthAndDepthType );
|
|
|
|
void setUnitSystemSpecificDefaults();
|
|
|
|
void updateFromTopLevelWell( const RimMswCompletionParameters* topLevelWellParameters );
|
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
protected:
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
void initAfterRead() override;
|
|
|
|
private:
|
|
caf::PdmField<ReferenceMDEnum> m_refMDType;
|
|
caf::PdmField<double> m_refMD;
|
|
|
|
caf::PdmField<bool> m_customValuesForLateral;
|
|
caf::PdmField<double> m_linerDiameter;
|
|
caf::PdmField<double> m_roughnessFactor;
|
|
|
|
caf::PdmField<PressureDropEnum> m_pressureDrop;
|
|
caf::PdmField<LengthAndDepthEnum> m_lengthAndDepth;
|
|
|
|
caf::PdmField<bool> m_enforceMaxSegmentLength;
|
|
caf::PdmField<double> m_maxSegmentLength;
|
|
};
|