twoPhaseMixture: Updated support for re-reading of phaseProperties
This commit is contained in:
@ -82,7 +82,7 @@ incompressibleTwoPhaseInteractingMixture
|
||||
|
||||
bool Foam::incompressibleTwoPhaseInteractingMixture::read()
|
||||
{
|
||||
if (regIOobject::read())
|
||||
if (twoPhaseMixture::read())
|
||||
{
|
||||
if (muModel_->read() || nucModel_->read())
|
||||
{
|
||||
|
||||
@ -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_;
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user