diff --git a/opm/material/fluidsystems/Co2BrineFluidSystem.hh b/opm/material/fluidsystems/Co2BrineFluidSystem.hh index e346216d6..dceb0818c 100644 --- a/opm/material/fluidsystems/Co2BrineFluidSystem.hh +++ b/opm/material/fluidsystems/Co2BrineFluidSystem.hh @@ -7,7 +7,7 @@ #include #include -#include +#include namespace Opm { /*! @@ -87,7 +87,6 @@ namespace Opm { switch (compIdx) { case Comp0Idx: return Comp0::criticalVolume(); case Comp1Idx: return Comp1::criticalVolume(); - // case Comp2Idx: return Comp2::criticalVolume(); default: throw std::runtime_error("Illegal component index for criticalVolume"); } } @@ -98,7 +97,6 @@ namespace Opm { switch (compIdx) { case Comp0Idx: return Comp0::molarMass(); case Comp1Idx: return Comp1::molarMass(); - // case Comp2Idx: return Comp2::molarMass(); default: throw std::runtime_error("Illegal component index for molarMass"); } } @@ -128,7 +126,6 @@ namespace Opm { static const char* name[] = { Comp0::name(), Comp1::name(), - // Comp2::name(), }; assert(0 <= compIdx && compIdx < 3); @@ -146,26 +143,27 @@ namespace Opm { LhsEval dens; if (phaseIdx == oilPhaseIdx || phaseIdx == gasPhaseIdx) { - // paramCache.updatePhase(fluidState, phaseIdx); dens = fluidState.averageMolarMass(phaseIdx) / paramCache.molarVolume(phaseIdx); } return dens; } - //! \copydoc BaseFluidSystem::viscosity + /*! + * \copydoc BaseFluidSystem::viscosity + */ template static LhsEval viscosity(const FluidState& fluidState, const ParameterCache& paramCache, unsigned phaseIdx) { // Use LBC method to calculate viscosity - // LhsEval mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); - // LhsEval mu = LBCviscosity::LBC(fluidState, paramCache, phaseIdx); LhsEval mu; - mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); + // mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); + // mu = LBCviscosity::LBC(fluidState, paramCache, phaseIdx); + mu = LBCviscosity::LBCJulia(fluidState, paramCache, phaseIdx); - // LhsEval mu = LBCviscosity::LBCJulia(fluidState, paramCache, phaseIdx); + return mu; } @@ -180,11 +178,8 @@ namespace Opm { assert(0 <= phaseIdx && phaseIdx < numPhases); assert(0 <= compIdx && compIdx < numComponents); - // TODO: here the derivatives for the phi are dropped. Should we keep the derivatives against the pressure - // and temperature? LhsEval phi = PengRobinsonMixture::computeFugacityCoefficient(fluidState, paramCache, phaseIdx, compIdx); - //Scalar phi = Opm::getValue( - // PengRobinsonMixture::computeFugacityCoefficient(fluidState, paramCache, phaseIdx, compIdx)); + return phi; } diff --git a/opm/material/fluidsystems/PTFlashParameterCache.hpp b/opm/material/fluidsystems/PTFlashParameterCache.hpp index 2fb1e76f1..026d6ad99 100644 --- a/opm/material/fluidsystems/PTFlashParameterCache.hpp +++ b/opm/material/fluidsystems/PTFlashParameterCache.hpp @@ -29,9 +29,7 @@ #include -#include #include - #include #include diff --git a/opm/material/fluidsystems/ThreeComponentFluidSystem.hh b/opm/material/fluidsystems/ThreeComponentFluidSystem.hh index 706601bb8..df6143c23 100644 --- a/opm/material/fluidsystems/ThreeComponentFluidSystem.hh +++ b/opm/material/fluidsystems/ThreeComponentFluidSystem.hh @@ -9,7 +9,7 @@ // TODO: this is something else need to check #include -#include +#include namespace Opm { /*! @@ -170,13 +170,10 @@ namespace Opm { unsigned phaseIdx) { // Use LBC method to calculate viscosity - // LhsEval mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); - // LhsEval mu = LBCviscosity::LBC(fluidState, paramCache, phaseIdx); LhsEval mu; - mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); - - // LhsEval mu = LBCviscosity::LBCJulia(fluidState, paramCache, phaseIdx); - return mu; + // mu = LBCviscosity::LBCmod(fluidState, paramCache, phaseIdx); + //mu = LBCviscosity::LBC(fluidState, paramCache, phaseIdx); + mu = LBCviscosity::LBCJulia(fluidState, paramCache, phaseIdx); } diff --git a/opm/material/fluidsystems/chifluid/LBCviscosity.hpp b/opm/material/viscositymodels/LBCviscosity.hpp similarity index 100% rename from opm/material/fluidsystems/chifluid/LBCviscosity.hpp rename to opm/material/viscositymodels/LBCviscosity.hpp