From fe42b8a5b3aefe0b093a401dcb690b01ab8c637e Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 1 Dec 2021 14:59:54 +0100 Subject: [PATCH] some cleaning up, no functionality change --- opm/material/constraintsolvers/ChiFlash.hpp | 26 +++++++++---------- .../chifluid/twophasefluidsystem.hh | 5 +--- 2 files changed, 14 insertions(+), 17 deletions(-) diff --git a/opm/material/constraintsolvers/ChiFlash.hpp b/opm/material/constraintsolvers/ChiFlash.hpp index fb30aa10c..169dd04b6 100644 --- a/opm/material/constraintsolvers/ChiFlash.hpp +++ b/opm/material/constraintsolvers/ChiFlash.hpp @@ -64,7 +64,7 @@ class ChiFlash // enum { Comp1Idx = FluidSystem::Comp1Idx }; //rename for generic ? enum { oilPhaseIdx = FluidSystem::oilPhaseIdx}; enum { gasPhaseIdx = FluidSystem::gasPhaseIdx}; - enum { numMiscibleComponents = 2}; //octane, co2 + enum { numMiscibleComponents = 2}; //octane, co2 // should be brine instead of brine here. enum { numMisciblePhases = 2}; //oil, gas enum { numEq = @@ -72,12 +72,12 @@ class ChiFlash numMisciblePhases*numMiscibleComponents };//pressure, saturation, composition - enum { - p0PvIdx = 0, // pressure first phase primary variable index - S0PvIdx = 1, // saturation first phase primary variable index - x00PvIdx = S0PvIdx + 1, // molefraction first phase first component primary variable index + /* enum { + // p0PvIdx = 0, // pressure first phase primary variable index + // S0PvIdx = 1, // saturation first phase primary variable index + // x00PvIdx = S0PvIdx + 1, // molefraction first phase first component primary variable index //numMiscibleComponennets*numMisciblePhases-1 molefractions/primvar follow - }; + }; */ public: /*! @@ -526,8 +526,8 @@ protected: } } - int phaseIdx = (isGas?gasPhaseIdx:oilPhaseIdx); - int phaseIdx2 = (isGas?oilPhaseIdx:gasPhaseIdx); + int phaseIdx = (isGas ? static_cast(gasPhaseIdx) : static_cast(oilPhaseIdx)); + int phaseIdx2 = (isGas ? static_cast(oilPhaseIdx) : static_cast(gasPhaseIdx)); for (int compIdx=0; compIdx > { using ThisType = TwoPhaseThreeComponentFluidSystem; - using Base = Opm::BaseFluidSystem; using PengRobinsonMixture = typename Opm::PengRobinsonMixture; using LBCviscosity = typename Opm::LBCviscosity; - using H2O = typename Opm::H2O; - using Brine = typename Opm::Brine; public: //! \copydoc BaseFluidSystem::ParameterCache @@ -347,7 +344,7 @@ public: * \brief Returns the interaction coefficient for two components. *. */ - static Scalar interactionCoefficient(unsigned comp1Idx, unsigned comp2Idx) + static Scalar interactionCoefficient(unsigned /*comp1Idx*/, unsigned /*comp2Idx*/) { return 0.0; //-0.101;//0.1089; }