diff --git a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C index 98046c9b76f028ba8a65b41fc4f934d0c50760f6..397f9566b1def1682e93662b0352e8a2006f8a7e 100644 --- a/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C +++ b/src/transportModels/incompressible/incompressibleTwoPhaseMixture/incompressibleTwoPhaseMixture.C @@ -175,8 +175,14 @@ bool Foam::incompressibleTwoPhaseMixture::read() { if ( - nuModel1_().read(subDict(phase1Name_)) - && nuModel2_().read(subDict(phase2Name_)) + nuModel1_().read + ( + subDict(phase1Name_ == "1" ? "phase1": phase1Name_) + ) + && nuModel2_().read + ( + subDict(phase2Name_ == "2" ? "phase2": phase2Name_) + ) ) { nuModel1_->viscosityProperties().lookup("rho") >> rho1_;