Skip to content

Commit 0615b69

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 fb95c5c commit 0615b69

File tree

3 files changed

+479
-20
lines changed

3 files changed

+479
-20
lines changed

opm/input/eclipse/Deck/DeckItem.hpp

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

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

0 commit comments

Comments
 (0)