Skip to content
Snippets Groups Projects
Commit 928cef30 authored by Henry's avatar Henry
Browse files

incompressibleTwoPhaseMixture: Correct the phase name lookup in read

parent 61d1ca6c
Branches
Tags
No related merge requests found
...@@ -175,8 +175,14 @@ bool Foam::incompressibleTwoPhaseMixture::read() ...@@ -175,8 +175,14 @@ bool Foam::incompressibleTwoPhaseMixture::read()
{ {
if if
( (
nuModel1_().read(subDict(phase1Name_)) nuModel1_().read
&& nuModel2_().read(subDict(phase2Name_)) (
subDict(phase1Name_ == "1" ? "phase1": phase1Name_)
)
&& nuModel2_().read
(
subDict(phase2Name_ == "2" ? "phase2": phase2Name_)
)
) )
{ {
nuModel1_->viscosityProperties().lookup("rho") >> rho1_; nuModel1_->viscosityProperties().lookup("rho") >> rho1_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment