Skip to content

Commit

Permalink
Use fluid system phase indices
Browse files Browse the repository at this point in the history
  • Loading branch information
svenn-t committed Feb 5, 2025
1 parent f59834d commit 4be8a5c
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions opm/simulators/flow/FlowProblemCompProperties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,10 @@ struct MaterialLaw<TypeTag, TTag::FlowBaseProblemComp>
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;

// using Traits = ThreePhaseMaterialTraits<Scalar,
// /*wettingPhaseIdx=*/FluidSystem::waterPhaseIdx,
// /*nonWettingPhaseIdx=*/FluidSystem::oilPhaseIdx,
// /*gasPhaseIdx=*/FluidSystem::gasPhaseIdx>;

// TODO: We should be able to use FluidSystem here and using Indices to handle the active phases
// some more development is needed
using Traits = ThreePhaseMaterialTraits<Scalar,
/*wettingPhaseIdx=*/ 0,
/*nonWettingPhaseIdx=*/ 1,
/*gasPhaseIdx=*/ 2>;
/*wettingPhaseIdx=*/FluidSystem::waterPhaseIdx,
/*nonWettingPhaseIdx=*/FluidSystem::oilPhaseIdx,
/*gasPhaseIdx=*/FluidSystem::gasPhaseIdx>;

public:
using EclMaterialLawManager = ::Opm::EclMaterialLawManager<Traits>;
Expand Down

0 comments on commit 4be8a5c

Please sign in to comment.