mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
More integration of VFP tables
This commit is contained in:
parent
92628187b0
commit
25155aefbb
@ -73,6 +73,7 @@ namespace Opm
|
|||||||
{
|
{
|
||||||
const int first_cell = wells->well_cells[wells->well_connpos[w]];
|
const int first_cell = wells->well_cells[wells->well_connpos[w]];
|
||||||
bhp_[w] = state.pressure()[first_cell];
|
bhp_[w] = state.pressure()[first_cell];
|
||||||
|
thp_[w] = -1e100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -122,10 +123,13 @@ namespace Opm
|
|||||||
// pressure in first perforation cell.
|
// pressure in first perforation cell.
|
||||||
switch (well_controls_get_current_type(ctrl)) {
|
switch (well_controls_get_current_type(ctrl)) {
|
||||||
case BHP:
|
case BHP:
|
||||||
|
bhp_[w] = well_controls_get_current_target( ctrl );
|
||||||
|
thp_[w] = -1e100;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case THP:
|
case THP:
|
||||||
//bhp_[w] = thp_[w]; //< TODO: ARB Adding this produces identical results as without THP control for artificial test case
|
bhp_[w] = -1e100;
|
||||||
//Already taken care of above in 2.
|
thp_[w] = well_controls_get_current_target( ctrl );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -133,7 +137,7 @@ namespace Opm
|
|||||||
const int first_cell = wells->well_cells[wells->well_connpos[w]];
|
const int first_cell = wells->well_cells[wells->well_connpos[w]];
|
||||||
const double safety_factor = (wells->type[w] == INJECTOR) ? 1.01 : 0.99;
|
const double safety_factor = (wells->type[w] == INJECTOR) ? 1.01 : 0.99;
|
||||||
bhp_[w] = safety_factor*state.pressure()[first_cell];
|
bhp_[w] = safety_factor*state.pressure()[first_cell];
|
||||||
// thp_[w] = -1e100;
|
thp_[w] = -1e100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user