#include <Segment.hpp>

Public Types

enum class  SegmentType { REGULAR , SICD , AICD , VALVE }
 

Public Member Functions

 Segment ()
 
 Segment (const Segment &src, double new_depth, double new_length, double new_volume)
 
 Segment (const Segment &src, double new_depth, double new_length)
 
 Segment (const Segment &src, double new_volume)
 
 Segment (int segment_number_in, int branch_in, int outlet_segment_in, double length_in, double depth_in, double internal_diameter_in, double roughness_in, double cross_area_in, double volume_in, bool data_ready_in, SegmentType segment_type_in)
 
 Segment (const RestartIO::RstSegment &rst_segment)
 
int segmentNumber () const
 
int branchNumber () const
 
int outletSegment () const
 
double totalLength () const
 
double depth () const
 
double internalDiameter () const
 
double roughness () const
 
double crossArea () const
 
double volume () const
 
bool dataReady () const
 
SegmentType segmentType () const
 
int ecl_type_id () const
 
const std::vector< int > & inletSegments () const
 
bool operator== (const Segment &) const
 
bool operator!= (const Segment &) const
 
const std::shared_ptr< SpiralICD > & spiralICD () const
 
const Valvevalve () const
 
void updateSpiralICD (const SpiralICD &spiral_icd)
 
void updateValve (const Valve &valve, const double segment_length)
 
void addInletSegment (const int segment_number)
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 

Static Public Member Functions

static Segment serializeObject ()
 
static double invalidValue ()
 
static SegmentType type_from_int (int ecl_id)
 

Member Enumeration Documentation

◆ SegmentType

enum class Opm::Segment::SegmentType
strong
Enumerator
REGULAR 
SICD 
AICD 
VALVE 

Constructor & Destructor Documentation

◆ Segment() [1/6]

Opm::Segment::Segment ( )

◆ Segment() [2/6]

Opm::Segment::Segment ( const Segment src,
double  new_depth,
double  new_length,
double  new_volume 
)

◆ Segment() [3/6]

Opm::Segment::Segment ( const Segment src,
double  new_depth,
double  new_length 
)

◆ Segment() [4/6]

Opm::Segment::Segment ( const Segment src,
double  new_volume 
)

◆ Segment() [5/6]

Opm::Segment::Segment ( int  segment_number_in,
int  branch_in,
int  outlet_segment_in,
double  length_in,
double  depth_in,
double  internal_diameter_in,
double  roughness_in,
double  cross_area_in,
double  volume_in,
bool  data_ready_in,
SegmentType  segment_type_in 
)

◆ Segment() [6/6]

Opm::Segment::Segment ( const RestartIO::RstSegment rst_segment)

Member Function Documentation

◆ addInletSegment()

void Opm::Segment::addInletSegment ( const int  segment_number)

◆ branchNumber()

int Opm::Segment::branchNumber ( ) const

◆ crossArea()

double Opm::Segment::crossArea ( ) const

◆ dataReady()

bool Opm::Segment::dataReady ( ) const

◆ depth()

double Opm::Segment::depth ( ) const

◆ ecl_type_id()

int Opm::Segment::ecl_type_id ( ) const

◆ inletSegments()

const std::vector< int > & Opm::Segment::inletSegments ( ) const

◆ internalDiameter()

double Opm::Segment::internalDiameter ( ) const

◆ invalidValue()

static double Opm::Segment::invalidValue ( )
static

◆ operator!=()

bool Opm::Segment::operator!= ( const Segment ) const

◆ operator==()

bool Opm::Segment::operator== ( const Segment ) const

◆ outletSegment()

int Opm::Segment::outletSegment ( ) const

◆ roughness()

double Opm::Segment::roughness ( ) const

◆ segmentNumber()

int Opm::Segment::segmentNumber ( ) const

◆ segmentType()

SegmentType Opm::Segment::segmentType ( ) const

◆ serializeObject()

static Segment Opm::Segment::serializeObject ( )
static

◆ serializeOp()

template<class Serializer >
void Opm::Segment::serializeOp ( Serializer serializer)
inline

◆ spiralICD()

const std::shared_ptr< SpiralICD > & Opm::Segment::spiralICD ( ) const

◆ totalLength()

double Opm::Segment::totalLength ( ) const

◆ type_from_int()

static SegmentType Opm::Segment::type_from_int ( int  ecl_id)
static

◆ updateSpiralICD()

void Opm::Segment::updateSpiralICD ( const SpiralICD spiral_icd)

◆ updateValve()

void Opm::Segment::updateValve ( const Valve valve,
const double  segment_length 
)

◆ valve()

const Valve * Opm::Segment::valve ( ) const

◆ volume()

double Opm::Segment::volume ( ) const

The documentation for this class was generated from the following file: