mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-23 07:53:29 -06:00
Merge pull request #4317 from akva2/adjust_enums
Adjust to upstream enum entry changes
This commit is contained in:
commit
bb649097b9
@ -177,24 +177,24 @@ static void initDefaultFluidSystem()
|
||||
FluidSystem::setReferenceDensities(rhoRefO, rhoRefW, rhoRefG, /*regionIdx=*/0);
|
||||
|
||||
auto gasPvt = std::make_shared<Opm::GasPvtMultiplexer<double>>();
|
||||
gasPvt->setApproach(Opm::GasPvtApproach::DryGasPvt);
|
||||
auto& dryGasPvt = gasPvt->getRealPvt<Opm::GasPvtApproach::DryGasPvt>();
|
||||
gasPvt->setApproach(Opm::GasPvtApproach::DryGas);
|
||||
auto& dryGasPvt = gasPvt->getRealPvt<Opm::GasPvtApproach::DryGas>();
|
||||
dryGasPvt.setNumRegions(/*numPvtRegion=*/1);
|
||||
dryGasPvt.setReferenceDensities(/*regionIdx=*/0, rhoRefO, rhoRefG, rhoRefW);
|
||||
dryGasPvt.setGasFormationVolumeFactor(/*regionIdx=*/0, Bg);
|
||||
dryGasPvt.setGasViscosity(/*regionIdx=*/0, mug);
|
||||
|
||||
auto oilPvt = std::make_shared<Opm::OilPvtMultiplexer<double>>();
|
||||
oilPvt->setApproach(Opm::OilPvtApproach::DeadOilPvt);
|
||||
auto& deadOilPvt = oilPvt->getRealPvt<Opm::OilPvtApproach::DeadOilPvt>();
|
||||
oilPvt->setApproach(Opm::OilPvtApproach::DeadOil);
|
||||
auto& deadOilPvt = oilPvt->getRealPvt<Opm::OilPvtApproach::DeadOil>();
|
||||
deadOilPvt.setNumRegions(/*numPvtRegion=*/1);
|
||||
deadOilPvt.setReferenceDensities(/*regionIdx=*/0, rhoRefO, rhoRefG, rhoRefW);
|
||||
deadOilPvt.setInverseOilFormationVolumeFactor(/*regionIdx=*/0, Bo);
|
||||
deadOilPvt.setOilViscosity(/*regionIdx=*/0, muo);
|
||||
|
||||
auto waterPvt = std::make_shared<Opm::WaterPvtMultiplexer<double>>();
|
||||
waterPvt->setApproach(Opm::WaterPvtApproach::ConstantCompressibilityWaterPvt);
|
||||
auto& ccWaterPvt = waterPvt->getRealPvt<Opm::WaterPvtApproach::ConstantCompressibilityWaterPvt>();
|
||||
waterPvt->setApproach(Opm::WaterPvtApproach::ConstantCompressibilityWater);
|
||||
auto& ccWaterPvt = waterPvt->getRealPvt<Opm::WaterPvtApproach::ConstantCompressibilityWater>();
|
||||
ccWaterPvt.setNumRegions(/*numPvtRegions=*/1);
|
||||
ccWaterPvt.setReferenceDensities(/*regionIdx=*/0, rhoRefO, rhoRefG, rhoRefW);
|
||||
ccWaterPvt.setViscosity(/*regionIdx=*/0, 1);
|
||||
|
Loading…
Reference in New Issue
Block a user