Commit 19497ce5 authored by Henry Weller's avatar Henry Weller
Browse files

interFoam, interMixingFoam, interPhaseChangeFoam: construct rho with calculated BCs

Avoids problems with inherited complex BCs for which the controlling
fields and parameters are not initialized.
parent eca605d3
......@@ -49,8 +49,7 @@ volScalarField rho
mesh,
IOobject::READ_IF_PRESENT
),
alpha1*rho1 + alpha2*rho2,
alpha1.boundaryField().types()
alpha1*rho1 + alpha2*rho2
);
rho.oldTime();
......
......@@ -50,8 +50,7 @@ volScalarField rho
mesh,
IOobject::READ_IF_PRESENT
),
alpha1*rho1 + alpha2*rho2 + alpha3*rho3,
alpha1.boundaryField().types()
alpha1*rho1 + alpha2*rho2 + alpha3*rho3
);
rho.oldTime();
......
......@@ -51,8 +51,7 @@ volScalarField rho
mesh,
IOobject::READ_IF_PRESENT
),
alpha1*rho1 + alpha2*rho2,
alpha1.boundaryField().types()
alpha1*rho1 + alpha2*rho2
);
rho.oldTime();
......
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