mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 08:54:53 -05:00
Fixed bug with VFPPROD tables
This commit is contained in:
1 parent
c513ed4a17
commit
748440eea6
1 file changed
+4
-3
@@ -1468,10 +1468,11 @@ namespace detail {
|
||||
}
|
||||
|
||||
//Calculate BHP target from THP
|
||||
const ADB thp = ADB::constant(thp_inj_v);
|
||||
const ADB thp_inj = ADB::constant(thp_inj_v);
|
||||
const ADB thp_prod = ADB::constant(thp_prod_v);
|
||||
const ADB alq = ADB::constant(alq_v);
|
||||
const ADB thp_inj_targets = vfp_properties_->getInj()->bhp(inj_table_id, aqua, liquid, vapour, thp);
|
||||
const ADB thp_prod_targets = vfp_properties_->getProd()->bhp(prod_table_id, aqua, liquid, vapour, thp, alq);
|
||||
const ADB thp_inj_targets = vfp_properties_->getInj()->bhp(inj_table_id, aqua, liquid, vapour, thp_inj);
|
||||
const ADB thp_prod_targets = vfp_properties_->getProd()->bhp(prod_table_id, aqua, liquid, vapour, thp_prod, alq);
|
||||
|
||||
//Calculate residuals
|
||||
const ADB thp_inj_residual = state.bhp - thp_inj_targets;
|
||||
|
||||
Reference in new issue
Block a user