Skip to content
Snippets Groups Projects
Commit 5c478bba authored by Henry's avatar Henry
Browse files

twoPhaseMixture: Allow construction without providing name and dimensions for rho and nu

parent 15ce7dcf
No related merge requests found
...@@ -83,8 +83,8 @@ Foam::twoPhaseMixture::twoPhaseMixture ...@@ -83,8 +83,8 @@ Foam::twoPhaseMixture::twoPhaseMixture
) )
), ),
rho1_(nuModel1_->viscosityProperties().lookup("rho")), rho1_("rho", dimDensity, nuModel1_->viscosityProperties().lookup("rho")),
rho2_(nuModel2_->viscosityProperties().lookup("rho")), rho2_("rho", dimDensity, nuModel2_->viscosityProperties().lookup("rho")),
U_(U), U_(U),
phi_(phi), phi_(phi),
......
...@@ -50,7 +50,7 @@ Foam::viscosityModels::Newtonian::Newtonian ...@@ -50,7 +50,7 @@ Foam::viscosityModels::Newtonian::Newtonian
) )
: :
viscosityModel(name, viscosityProperties, U, phi), viscosityModel(name, viscosityProperties, U, phi),
nu0_(viscosityProperties_.lookup("nu")), nu0_("nu", dimensionSet(0, 2, -1, 0, 0), viscosityProperties_.lookup("nu")),
nu_ nu_
( (
IOobject IOobject
......
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