mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: Consistency updates
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
const dictionary& potentialFlow
|
||||
(
|
||||
mesh.solutionDict().subDict("potentialFlow")
|
||||
);
|
||||
|
||||
const int nNonOrthCorr
|
||||
(
|
||||
potentialFlow.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0)
|
||||
);
|
||||
@ -119,3 +119,5 @@ setRefCell
|
||||
PhiRefValue
|
||||
);
|
||||
mesh.setFluxRequired(Phi.name());
|
||||
|
||||
#include "createMRF.H"
|
||||
|
||||
@ -132,7 +132,6 @@ int main(int argc, char *argv[])
|
||||
pisoControl potentialFlow(mesh, "potentialFlow");
|
||||
|
||||
#include "createFields.H"
|
||||
#include "createMRF.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
@ -1,32 +1,32 @@
|
||||
scalar CoNum = -GREAT;
|
||||
|
||||
forAll(fluidRegions, regionI)
|
||||
forAll(fluidRegions, regioni)
|
||||
{
|
||||
CoNum = max
|
||||
(
|
||||
compressibleCourantNo
|
||||
(
|
||||
fluidRegions[regionI],
|
||||
fluidRegions[regioni],
|
||||
runTime,
|
||||
rhoFluid[regionI],
|
||||
phiFluid[regionI]
|
||||
rhoFluid[regioni],
|
||||
phiFluid[regioni]
|
||||
),
|
||||
CoNum
|
||||
);
|
||||
}
|
||||
/*
|
||||
forAll(porousFluidRegions, porousI)
|
||||
forAll(porousFluidRegions, porousi)
|
||||
{
|
||||
CoNum = max
|
||||
(
|
||||
compressibleCourantNo
|
||||
(
|
||||
porousFluidRegions[porousI],
|
||||
porousFluidRegions[porousi],
|
||||
runTime,
|
||||
rhoPorous[porousI],
|
||||
phiPorous[porousI]
|
||||
rhoPorous[porousi],
|
||||
phiPorous[porousi]
|
||||
),
|
||||
CoNum
|
||||
);
|
||||
}
|
||||
*/
|
||||
*/
|
||||
|
||||
@ -204,13 +204,13 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureEThermo::he
|
||||
(
|
||||
const scalarField& p,
|
||||
const scalarField& T,
|
||||
const label patchI
|
||||
const label patchi
|
||||
) const
|
||||
{
|
||||
const scalarField& alpha1p = alpha1().boundaryField()[patchI];
|
||||
const scalarField& alpha2p = alpha2().boundaryField()[patchI];
|
||||
const scalarField& alpha1p = alpha1().boundaryField()[patchi];
|
||||
const scalarField& alpha2p = alpha2().boundaryField()[patchi];
|
||||
|
||||
const scalarField& Tp = T_.boundaryField()[patchI];
|
||||
const scalarField& Tp = T_.boundaryField()[patchi];
|
||||
|
||||
return
|
||||
(
|
||||
@ -429,11 +429,11 @@ Foam::tmp<Foam::scalarField> Foam::twoPhaseMixtureEThermo::Cpv
|
||||
(
|
||||
const scalarField& p,
|
||||
const scalarField& T,
|
||||
const label patchI
|
||||
const label patchi
|
||||
) const
|
||||
{
|
||||
// This is a e thermo (Cpv = Cv)
|
||||
return Cv(p, T, patchI);
|
||||
return Cv(p, T, patchi);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user