twoPhaseMixture: Updated support for re-reading of phaseProperties

This commit is contained in:
Henry Weller
2021-10-11 14:21:56 +01:00
parent 1a6b662b41
commit 2fe74a5bd2
3 changed files with 13 additions and 7 deletions

View File

@ -82,7 +82,7 @@ incompressibleTwoPhaseInteractingMixture
bool Foam::incompressibleTwoPhaseInteractingMixture::read()
{
if (regIOobject::read())
if (twoPhaseMixture::read())
{
if (muModel_->read() || nucModel_->read())
{

View File

@ -139,7 +139,7 @@ Foam::incompressibleTwoPhaseMixture::nuf() const
bool Foam::incompressibleTwoPhaseMixture::read()
{
if (regIOobject::read())
if (twoPhaseMixture::read())
{
nuModel1_->lookup("rho") >> rho1_;
nuModel2_->lookup("rho") >> rho2_;

View File

@ -47,7 +47,7 @@ Foam::IOdictionary Foam::twoPhaseMixture::readPhasePropertiesDict
obr,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE,
false
true
);
if (phasePropertiesIO.headerOk())
@ -63,7 +63,7 @@ Foam::IOdictionary Foam::twoPhaseMixture::readPhasePropertiesDict
obr,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE,
false
true
);
if (thermophysicalPropertiesIO.headerOk())
@ -81,7 +81,7 @@ Foam::IOdictionary Foam::twoPhaseMixture::readPhasePropertiesDict
obr,
IOobject::MUST_READ_IF_MODIFIED,
IOobject::NO_WRITE,
false
true
);
if (transportPropertiesIO.headerOk())
@ -106,7 +106,7 @@ Foam::IOdictionary Foam::twoPhaseMixture::readPhasePropertiesDict
obr,
IOobject::NO_READ,
IOobject::NO_WRITE,
false
true
)
);
@ -196,8 +196,14 @@ Foam::twoPhaseMixture::twoPhaseMixture(const fvMesh& mesh)
),
1.0 - alpha1_
)
{}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool Foam::twoPhaseMixture::read()
{
checkIn();
return regIOobject::read();
}