[fluidsystems] TwoPImmiscible returns the same phase name when used with two OnePLiquid<ConstantComponent> systems
When using
template<class TypeTag>
struct FluidSystem<TypeTag, TTag::MyProblem>
{
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
using Component1 = Components::Constant<1, Scalar>;
using Component2 = Components::Constant<2, Scalar>;
using Phase1 = Dumux::FluidSystems::OnePLiquid<Scalar, Component1>;
using Phase2 = Dumux::FluidSystems::OnePLiquid<Scalar, Component2>;
using type = Dumux::FluidSystems::TwoPImmiscible<Scalar, Phase1, Phase2>;
};
The phase name returned by TwoPImmiscible
is always napl
due to the trait
template <class Component>
struct IsAqueous : public std::false_type {};
defined in dumux/material/components/constant.hh
This makes the fluid system unusable, because ParaView segfaults when attempting to load to vtk file.
Should we include the choice to specify names as runtime parameters?