Skip to content

Commit

Permalink
updated to compatibility with OF1912
Browse files Browse the repository at this point in the history
  • Loading branch information
unicfdlab committed Jan 29, 2020
1 parent 0dd818f commit 1baf5a8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/pimpleCentral/centralMULES/centralMULES.C
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ void Foam::mulesWithDiffusionImplicitLimiter
rhoPhifCorr,
zeroField(), //Sp
Su,
1.0, //psiMax,
0.0 //psiMin,
oneField(), //psiMax,
zeroField() //psiMin,
);

Y.rename(Yname);
Expand Down Expand Up @@ -136,8 +136,8 @@ void Foam::mulesWithDiffusionImplicitLimiter
rhoPhifCorr,
zeroField(),
Su,
1.0, //psiMax,
0.0 //psiMin,
oneField(), //psiMax,
zeroField() //psiMin,
);
Y.rename(Yname);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ Foam::compressibleTwoPhaseMixtureThermo::compressibleTwoPhaseMixtureThermo
:
rhoThermo(mesh, word::null),
compressibleTwoPhaseMixture(mesh, *this),
pMin_(this->lookup("pMin")),
pMin_
(
"pMin",
dimensionSet(1,-1,-2,0,0),
0.0,
*this
),
thermoLiq_(nullptr),
thermoGas_(nullptr),
he_
Expand Down Expand Up @@ -480,6 +486,18 @@ Foam::tmp<Foam::scalarField> Foam::compressibleTwoPhaseMixtureThermo::mu(const l
return mu_.boundaryField()[patchi];
}

Foam::tmp<Foam::volScalarField> Foam::compressibleTwoPhaseMixtureThermo::alphahe() const
{
return YLiq()*thermoLiq_->alpha() + YGas()*thermoGas_->alpha();
}

Foam::tmp<Foam::scalarField> Foam::compressibleTwoPhaseMixtureThermo::alphahe(const label patchi) const
{
return
YLiq().boundaryField()[patchi]*thermoLiq_->alpha(patchi)
+ YGas().boundaryField()[patchi]*thermoGas_->alpha(patchi);
}

Foam::tmp<Foam::volScalarField> Foam::compressibleTwoPhaseMixtureThermo::rho() const
{
return rhoEff_;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ public:
//- Dynamic viscosity of mixture for patch [kg/m/s]
virtual tmp<scalarField> mu(const label patchi) const;

//- Enthalpy/energy diffusion coefficient of mixture [kg/m/s]
virtual tmp<volScalarField> alphahe() const;

//- Enthalpy/energy diffusion coefficient of mixture for patch [kg/m/s]
virtual tmp<scalarField> alphahe(const label patchi) const;

//- Mixture density
virtual tmp<volScalarField> rho() const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ public:
return alpha_;
}

//-
const fvPatchField<scalar>& alpha(const label patchi) const
{
return alpha_.boundaryField()[patchi];
}

volScalarField& rho()
{
return rho_;
Expand Down

0 comments on commit 1baf5a8

Please sign in to comment.