STYLE: Consistency updates

This commit is contained in:
Andrew Heather
2016-09-23 16:52:46 +01:00
parent b9940cbbb1
commit 1fbcb686ff
109 changed files with 245 additions and 236 deletions

View File

@ -0,0 +1,9 @@
const dictionary& potentialFlow
(
mesh.solutionDict().subDict("potentialFlow")
);
const int nNonOrthCorr
(
potentialFlow.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0)
);

View File

@ -119,3 +119,5 @@ setRefCell
PhiRefValue
);
mesh.setFluxRequired(Phi.name());
#include "createMRF.H"

View File

@ -132,7 +132,6 @@ int main(int argc, char *argv[])
pisoControl potentialFlow(mesh, "potentialFlow");
#include "createFields.H"
#include "createMRF.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -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
);
}
*/
*/

View File

@ -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);
}