Skip to content

Commit abe7097

Browse files
committed
Add Conditional Low-Pressure Padding of Gas Property Tables
This commit adds logic to extend gas property tables entered using the PVDG or PVTG to low pressure values if needed. When we compute well production potentials (e.g., summary vectors WxPP) and the well's bottom-hole pressure limit is defaulted we end up using pressures in the order of one atmosphere (1 atm) and this, in turn, may generate negative formation volume factors (mass densities) and/or phase viscosities. The problem is most pronounced for producing wells in history matching mode (keyword WCONHIST), but we should have guards in place to avoid negative densities regardless. If needed we extend the tables down to 1 barsa and also insert a "limiting" pressure value PLim corresponding to a maximum FVF value in the range [1, 2]. In this case we create new input tables and redo the property table initialisation with this extended input table.
1 parent 512883b commit abe7097

File tree

6 files changed

+874
-175
lines changed

6 files changed

+874
-175
lines changed

opm/input/eclipse/Deck/DeckItem.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ namespace Opm {
7676
template< typename T > const std::vector< T >& getData() const;
7777
const std::vector< double >& getSIDoubleData() const;
7878
const std::vector<value::status>& getValueStatus() const;
79+
const std::vector<Dimension>& getActiveDimensions() const
80+
{
81+
return this->active_dimensions;
82+
}
7983

8084
template< typename T>
8185
void shrink_to_fit();

0 commit comments

Comments
 (0)