Runspec: Add Support for Parsing Limited Subset of WELLDIMS

Capture the maximum number of connections/perforations per well, the
maximum number of wells (or sub-groups) per well/node group, and the
maximum number of well/node groups in the field.

These maximum sizes are needed to correctly define the portions of
the contents of the INTEHEAD vector in a restart step.
This commit is contained in:
Bård Skaflestad
2018-03-07 20:50:08 +01:00
parent 938db7a198
commit af07812167
3 changed files with 145 additions and 1 deletions

View File

@@ -53,6 +53,31 @@ class Phases {
};
class Welldims {
public:
explicit Welldims(const Deck& deck);
int maxConnPerWell() const
{
return this->nCWMax;
}
int maxWellsPerGroup() const
{
return this->nWGMax;
}
int maxGroupsInField() const
{
return this->nGMax;
}
private:
int nCWMax { 0 };
int nWGMax { 0 };
int nGMax { 0 };
};
class Runspec {
public:
explicit Runspec( const Deck& );
@@ -60,12 +85,14 @@ class Runspec {
const Phases& phases() const noexcept;
const Tabdims& tabdims() const noexcept;
const EndpointScaling& endpointScaling() const noexcept;
const Welldims& wellDimensions() const noexcept;
int eclPhaseMask( ) const noexcept;
private:
Phases active_phases;
Tabdims m_tabdims;
EndpointScaling endscale;
Welldims welldims;
};
}