Commit 928cef30 authored by Henry's avatar Henry
Browse files

incompressibleTwoPhaseMixture: Correct the phase name lookup in read

parent 61d1ca6c
......@@ -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_;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment