interFoam, interMixingFoam, interPhaseChangeFoam: construct rho with calculated BCs

Avoids problems with inherited complex BCs for which the controlling
fields and parameters are not initialized.
This commit is contained in:
Henry Weller
2016-02-18 21:26:25 +00:00
parent 9162fedfc4
commit 8b71babfdd
3 changed files with 3 additions and 6 deletions

View File

@ -49,8 +49,7 @@ volScalarField rho
mesh, mesh,
IOobject::READ_IF_PRESENT IOobject::READ_IF_PRESENT
), ),
alpha1*rho1 + alpha2*rho2, alpha1*rho1 + alpha2*rho2
alpha1.boundaryField().types()
); );
rho.oldTime(); rho.oldTime();

View File

@ -50,8 +50,7 @@ volScalarField rho
mesh, mesh,
IOobject::READ_IF_PRESENT IOobject::READ_IF_PRESENT
), ),
alpha1*rho1 + alpha2*rho2 + alpha3*rho3, alpha1*rho1 + alpha2*rho2 + alpha3*rho3
alpha1.boundaryField().types()
); );
rho.oldTime(); rho.oldTime();

View File

@ -51,8 +51,7 @@ volScalarField rho
mesh, mesh,
IOobject::READ_IF_PRESENT IOobject::READ_IF_PRESENT
), ),
alpha1*rho1 + alpha2*rho2, alpha1*rho1 + alpha2*rho2
alpha1.boundaryField().types()
); );
rho.oldTime(); rho.oldTime();