Re-formatting loop statements

This commit is contained in:
Hrvoje Jasak 2011-10-12 11:41:39 +01:00
parent d6de60b9bd
commit 893b7eec1a
35 changed files with 53 additions and 53 deletions

View file

@ -77,7 +77,7 @@ int main(int argc, char *argv[])
#include "fuhsEqn.H" #include "fuhsEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -79,7 +79,7 @@ int main(int argc, char *argv[])
#include "hEqn.H" #include "hEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
#include "hEqn.H" #include "hEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -72,7 +72,7 @@ int main(int argc, char *argv[])
# include "setDeltaT.H" # include "setDeltaT.H"
for (int outerCorr=0; outerCorr<nOuterCorr; outerCorr++) for (int outerCorr = 0; outerCorr < nOuterCorr; outerCorr++)
{ {
magRhoU = mag(rhoU); magRhoU = mag(rhoU);
H = (rhoE + p)/rho; H = (rhoE + p)/rho;
@ -118,7 +118,7 @@ int main(int argc, char *argv[])
psi = 1.0/(R*T); psi = 1.0/(R*T);
p = rho/psi; p = rho/psi;
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rrhoUA = 1.0/rhoUEqn.A(); volScalarField rrhoUA = 1.0/rhoUEqn.A();
surfaceScalarField rrhoUAf("rrhoUAf", fvc::interpolate(rrhoUA)); surfaceScalarField rrhoUAf("rrhoUAf", fvc::interpolate(rrhoUA));

View file

@ -65,7 +65,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
U = UEqn.H()/UEqn.A(); U = UEqn.H()/UEqn.A();

View file

@ -70,7 +70,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();
U = rUA*UEqn.H(); U = rUA*UEqn.H();

View file

@ -92,7 +92,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();

View file

@ -89,7 +89,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
rUA = 1.0/UEqn.A(); rUA = 1.0/UEqn.A();

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
rUA = 1.0/UEqn.A(); rUA = 1.0/UEqn.A();

View file

@ -71,7 +71,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
# include "TEqn.H" # include "TEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -8,7 +8,7 @@ if (oCorr == 0)
#include "hEqn.H" #include "hEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -80,7 +80,7 @@ int main(int argc, char *argv[])
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
U = rUA*UEqn.H(); U = rUA*UEqn.H();
phi = (fvc::interpolate(U) & mesh.Sf()) phi = (fvc::interpolate(U) & mesh.Sf())

View file

@ -90,7 +90,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
rAU = 1.0/UEqn.A(); rAU = 1.0/UEqn.A();

View file

@ -65,7 +65,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();

View file

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();

View file

@ -95,7 +95,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
rAU = 1.0/UEqn.A(); rAU = 1.0/UEqn.A();

View file

@ -71,7 +71,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -78,7 +78,7 @@ int main(int argc, char *argv[])
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
volScalarField rUA = 1.0/UEqn.A(); volScalarField rUA = 1.0/UEqn.A();

View file

@ -88,7 +88,7 @@ int main(int argc, char *argv[])
} }
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
surfaceScalarField hf = fvc::interpolate(h); surfaceScalarField hf = fvc::interpolate(h);
volScalarField rUA = 1.0/hUEqn.A(); volScalarField rUA = 1.0/hUEqn.A();

View file

@ -96,7 +96,7 @@ int main(int argc, char *argv[])
#include "hsEqn.H" #include "hsEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -42,16 +42,16 @@ Description
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
#include "setRootCase.H" # include "setRootCase.H"
#include "createTime.H" # include "createTime.H"
#include "createMesh.H" # include "createMesh.H"
#include "readThermodynamicProperties.H" # include "readThermodynamicProperties.H"
#include "readControls.H" # include "readControls.H"
#include "createFields.H" # include "createFields.H"
#include "initContinuityErrs.H" # include "initContinuityErrs.H"
#include "compressibleCourantNo.H" # include "compressibleCourantNo.H"
#include "setInitialDeltaT.H" # include "setInitialDeltaT.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -59,22 +59,22 @@ int main(int argc, char *argv[])
while (runTime.run()) while (runTime.run())
{ {
#include "readControls.H" # include "readControls.H"
#include "CourantNo.H" # include "CourantNo.H"
#include "setDeltaT.H" # include "setDeltaT.H"
runTime++; runTime++;
Info<< "Time = " << runTime.timeName() << nl << endl; Info<< "Time = " << runTime.timeName() << nl << endl;
for (int outerCorr=0; outerCorr<nOuterCorr; outerCorr++) for (int outerCorr = 0; outerCorr < nOuterCorr; outerCorr++)
{ {
#include "rhoEqn.H" # include "rhoEqn.H"
#include "gammaPsi.H" # include "gammaPsi.H"
#include "UEqn.H" # include "UEqn.H"
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" # include "pEqn.H"
} }
} }

View file

@ -118,7 +118,7 @@ int main(int argc, char *argv[])
#include "UEqn.H" #include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -81,7 +81,7 @@ int main(int argc, char *argv[])
#include "UEqn.H" #include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -110,7 +110,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -83,7 +83,7 @@ int main(int argc, char *argv[])
#include "UEqn.H" #include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
#include "pEqn.H" #include "pEqn.H"
} }

View file

@ -89,7 +89,7 @@ int main(int argc, char *argv[])
#include "UEqn.H" #include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -74,7 +74,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -85,7 +85,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
# include "correctViscosity.H" # include "correctViscosity.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"
} }

View file

@ -76,7 +76,7 @@ int main(int argc, char *argv[])
# include "UEqn.H" # include "UEqn.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "p_rghEqn.H" # include "p_rghEqn.H"
} }

View file

@ -79,7 +79,7 @@ int main(int argc, char *argv[])
# include "UEqns.H" # include "UEqns.H"
// --- PISO loop // --- PISO loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
# include "pEqn.H" # include "pEqn.H"

View file

@ -1,7 +1,7 @@
{ {
// SIMPLE loop // SIMPLE loop
for (int corr=0; corr<nCorr; corr++) for (int corr = 0; corr < nCorr; corr++)
{ {
fvVectorMatrix UEqn fvVectorMatrix UEqn
( (