mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Resolve various unimportant warning messages from Gcc, Clang and Icpc
This commit is contained in:
@ -0,0 +1,9 @@
|
|||||||
|
const dictionary& potentialFlow
|
||||||
|
(
|
||||||
|
mesh.solutionDict().subDict("potentialFlow")
|
||||||
|
);
|
||||||
|
|
||||||
|
const int nNonOrthCorr
|
||||||
|
(
|
||||||
|
potentialFlow.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0)
|
||||||
|
);
|
||||||
@ -1,5 +0,0 @@
|
|||||||
const dictionary& potentialFlow =
|
|
||||||
mesh.solutionDict().subDict("potentialFlow");
|
|
||||||
|
|
||||||
const int nNonOrthCorr =
|
|
||||||
potentialFlow.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
|
||||||
@ -94,7 +94,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -83,7 +83,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createSingleCellMesh.H"
|
#include "createSingleCellMesh.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "readInitialConditions.H"
|
#include "readInitialConditions.H"
|
||||||
|
#include "createControls.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,8 @@
|
|||||||
|
if (runTime.controlDict().lookupOrDefault("suppressSolverInfo", false))
|
||||||
|
{
|
||||||
|
lduMatrix::debug = 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
Switch adjustTimeStep(runTime.controlDict().lookup("adjustTimeStep"));
|
||||||
|
|
||||||
|
scalar maxDeltaT(readScalar(runTime.controlDict().lookup("maxDeltaT")));
|
||||||
@ -1,8 +1,3 @@
|
|||||||
if (runTime.controlDict().lookupOrDefault("suppressSolverInfo", false))
|
runTime.controlDict().lookup("adjustTimeStep") >> adjustTimeStep;
|
||||||
{
|
|
||||||
lduMatrix::debug = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Switch adjustTimeStep(runTime.controlDict().lookup("adjustTimeStep"));
|
maxDeltaT = readScalar(runTime.controlDict().lookup("maxDeltaT"));
|
||||||
|
|
||||||
scalar maxDeltaT(readScalar(runTime.controlDict().lookup("maxDeltaT")));
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
maxDeltaT = runTime.userTimeToTime(maxDeltaT);
|
maxDeltaT = runTime.userTimeToTime(maxDeltaT);
|
||||||
|
|||||||
@ -62,7 +62,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createPyrolysisModel.H"
|
#include "createPyrolysisModel.H"
|
||||||
#include "createRadiationModel.H"
|
#include "createRadiationModel.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
#include "readPyrolysisTimeControls.H"
|
#include "readPyrolysisTimeControls.H"
|
||||||
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "solidRegionDiffusionNo.H"
|
#include "solidRegionDiffusionNo.H"
|
||||||
#include "setMultiRegionDeltaT.H"
|
#include "setMultiRegionDeltaT.H"
|
||||||
|
|||||||
@ -48,6 +48,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
@ -57,7 +58,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -50,6 +50,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
@ -58,7 +59,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -49,6 +49,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
@ -58,7 +59,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,6 +47,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createDynamicFvMesh.H"
|
#include "createDynamicFvMesh.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
|
|||||||
@ -48,6 +48,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
bool correctPhi
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("correctPhi", true)
|
||||||
|
);
|
||||||
|
|
||||||
|
bool checkMeshCourantNo
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false)
|
||||||
|
);
|
||||||
@ -1,7 +1,6 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
bool correctPhi =
|
correctPhi = pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
||||||
pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
|
||||||
|
|
||||||
bool checkMeshCourantNo =
|
checkMeshCourantNo =
|
||||||
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);
|
||||||
|
|||||||
@ -64,10 +64,10 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "createRhoUf.H"
|
#include "createRhoUf.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
|
#include "createControls.H"
|
||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,6 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
@ -60,7 +61,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readControls.H"
|
#include "createControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -56,7 +56,6 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
|
|
||||||
solve(fvm::ddt(rho) + fvc::div(phi));
|
solve(fvm::ddt(rho) + fvc::div(phi));
|
||||||
|
|||||||
@ -68,7 +68,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
Info<< "Time = " << runTime.timeName() << nl << endl;
|
Info<< "Time = " << runTime.timeName() << nl << endl;
|
||||||
|
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "createRadiationModel.H"
|
#include "createRadiationModel.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -63,7 +63,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createSolidFields.H"
|
#include "createSolidFields.H"
|
||||||
|
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "readSolidTimeControls.H"
|
#include "readSolidTimeControls.H"
|
||||||
|
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "readSolidTimeControls.H"
|
#include "readSolidTimeControls.H"
|
||||||
#include "readPIMPLEControls.H"
|
#include "readPIMPLEControls.H"
|
||||||
|
|
||||||
@ -89,7 +89,6 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
forAll(fluidRegions, i)
|
forAll(fluidRegions, i)
|
||||||
{
|
{
|
||||||
#include "setRegionFluidFields.H"
|
|
||||||
#include "storeOldFluidFields.H"
|
#include "storeOldFluidFields.H"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
const dictionary& simple = solidRegions[i].solutionDict().subDict("SIMPLE");
|
const dictionary& simple = mesh.solutionDict().subDict("SIMPLE");
|
||||||
|
|
||||||
const int nNonOrthCorr =
|
const int nNonOrthCorr =
|
||||||
simple.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
simple.lookupOrDefault<int>("nNonOrthogonalCorrectors", 0);
|
||||||
|
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
p_rgh.storePrevIter();
|
p_rghFluid[i].storePrevIter();
|
||||||
rho.storePrevIter();
|
rhoFluid[i].storePrevIter();
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
fvMesh& mesh = solidRegions[i];
|
fvMesh& mesh = solidRegions[i];
|
||||||
solidThermo& thermo = thermos[i];
|
solidThermo& thermo = thermos[i];
|
||||||
const radiation::radiationModel& radiation = radiations[i];
|
|
||||||
|
|
||||||
tmp<volScalarField> trho = thermo.rho();
|
tmp<volScalarField> trho = thermo.rho();
|
||||||
const volScalarField& rho = trho();
|
const volScalarField& rho = trho();
|
||||||
|
|||||||
@ -49,6 +49,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
bool correctPhi
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault("correctPhi", false)
|
||||||
|
);
|
||||||
|
|
||||||
|
bool checkMeshCourantNo
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault("checkMeshCourantNo", false)
|
||||||
|
);
|
||||||
@ -56,7 +56,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createUf.H"
|
#include "createUf.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "readTimeControls.H"
|
#include "createControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
const bool correctPhi =
|
correctPhi = pimple.dict().lookupOrDefault("correctPhi", false);
|
||||||
pimple.dict().lookupOrDefault("correctPhi", false);
|
|
||||||
|
|
||||||
const bool checkMeshCourantNo =
|
checkMeshCourantNo = pimple.dict().lookupOrDefault("checkMeshCourantNo", false);
|
||||||
pimple.dict().lookupOrDefault("checkMeshCourantNo", false);
|
|
||||||
|
|||||||
@ -51,6 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
|
|||||||
@ -60,6 +60,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
|
|||||||
@ -58,6 +58,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
@ -69,7 +70,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,7 +59,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createRadiationModel.H"
|
#include "createRadiationModel.H"
|
||||||
#include "createSurfaceFilmModel.H"
|
#include "createSurfaceFilmModel.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setMultiRegionDeltaT.H"
|
#include "setMultiRegionDeltaT.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|||||||
@ -54,6 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
@ -64,7 +65,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readTimeControls.H"
|
#include "createControls.H"
|
||||||
#include "readGravitationalAcceleration.H"
|
#include "readGravitationalAcceleration.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createRhoUf.H"
|
#include "createRhoUf.H"
|
||||||
@ -104,6 +104,11 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mesh.changing() && checkMeshCourantNo)
|
||||||
|
{
|
||||||
|
#include "meshCourantNo.H"
|
||||||
|
}
|
||||||
|
|
||||||
parcels.evolve();
|
parcels.evolve();
|
||||||
|
|
||||||
#include "rhoEqn.H"
|
#include "rhoEqn.H"
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
maxDeltaT = runTime.userTimeToTime(maxDeltaT);
|
maxDeltaT = runTime.userTimeToTime(maxDeltaT);
|
||||||
|
|||||||
@ -57,7 +57,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createClouds.H"
|
#include "createClouds.H"
|
||||||
#include "createRadiationModel.H"
|
#include "createRadiationModel.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "compressibleCourantNo.H"
|
#include "compressibleCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -48,12 +48,11 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
#include "createDynamicFvMesh.H"
|
#include "createDynamicFvMesh.H"
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readThermodynamicProperties.H"
|
#include "readThermodynamicProperties.H"
|
||||||
#include "readControls.H"
|
#include "createControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createUf.H"
|
#include "createUf.H"
|
||||||
#include "createPcorrTypes.H"
|
#include "createPcorrTypes.H"
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
scalar maxAcousticCo
|
||||||
|
(
|
||||||
|
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
|
||||||
|
);
|
||||||
|
|
||||||
|
bool correctPhi
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("correctPhi", true)
|
||||||
|
);
|
||||||
@ -1,9 +1,4 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
scalar maxAcousticCo
|
maxAcousticCo = readScalar(runTime.controlDict().lookup("maxAcousticCo"));
|
||||||
(
|
correctPhi = pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
||||||
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
|
|
||||||
);
|
|
||||||
|
|
||||||
bool correctPhi =
|
|
||||||
pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
|
||||||
|
|||||||
@ -50,9 +50,8 @@ int main(int argc, char *argv[])
|
|||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readThermodynamicProperties.H"
|
#include "readThermodynamicProperties.H"
|
||||||
#include "readControls.H"
|
#include "createControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
scalar maxAcousticCo
|
||||||
|
(
|
||||||
|
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
|
||||||
|
);
|
||||||
@ -1,6 +1,3 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
scalar maxAcousticCo
|
maxAcousticCo = readScalar(runTime.controlDict().lookup("maxAcousticCo"));
|
||||||
(
|
|
||||||
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
|
|
||||||
);
|
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
|
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
||||||
|
|
||||||
|
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||||
@ -62,7 +62,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createUf.H"
|
#include "createUf.H"
|
||||||
#include "readControls.H"
|
#include "createControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,11 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
bool correctPhi
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("correctPhi", true)
|
||||||
|
);
|
||||||
|
|
||||||
|
bool checkMeshCourantNo
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false)
|
||||||
|
);
|
||||||
@ -1,7 +1,6 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
bool correctPhi =
|
correctPhi = pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
||||||
pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
|
||||||
|
|
||||||
bool checkMeshCourantNo =
|
checkMeshCourantNo =
|
||||||
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);
|
||||||
|
|||||||
@ -56,8 +56,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
@ -68,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -51,8 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
@ -63,7 +62,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "alphaCourantNo.H"
|
#include "alphaCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|||||||
@ -0,0 +1,15 @@
|
|||||||
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
|
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
||||||
|
|
||||||
|
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||||
|
|
||||||
|
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
||||||
|
|
||||||
|
// Apply the compression correction from the previous iteration
|
||||||
|
// Improves efficiency for steady-simulations but can only be applied
|
||||||
|
// once the alpha field is reasonably steady, i.e. fully developed
|
||||||
|
bool alphaApplyPrevCorr
|
||||||
|
(
|
||||||
|
alphaControls.lookupOrDefault<Switch>("alphaApplyPrevCorr", false)
|
||||||
|
);
|
||||||
@ -57,6 +57,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
|
|||||||
@ -0,0 +1,16 @@
|
|||||||
|
#include "createTimeControls.H"
|
||||||
|
|
||||||
|
bool correctPhi
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("correctPhi", true)
|
||||||
|
);
|
||||||
|
|
||||||
|
bool checkMeshCourantNo
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false)
|
||||||
|
);
|
||||||
|
|
||||||
|
bool moveMeshOuterCorrectors
|
||||||
|
(
|
||||||
|
pimple.dict().lookupOrDefault<Switch>("moveMeshOuterCorrectors", false)
|
||||||
|
);
|
||||||
@ -59,6 +59,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
@ -83,7 +84,6 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,9 @@
|
|||||||
#include "readTimeControls.H"
|
#include "readTimeControls.H"
|
||||||
|
|
||||||
bool correctPhi
|
correctPhi = pimple.dict().lookupOrDefault<Switch>("correctPhi", true);
|
||||||
(
|
|
||||||
pimple.dict().lookupOrDefault<Switch>("correctPhi", true)
|
|
||||||
);
|
|
||||||
|
|
||||||
bool checkMeshCourantNo
|
checkMeshCourantNo =
|
||||||
(
|
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false);
|
||||||
pimple.dict().lookupOrDefault<Switch>("checkMeshCourantNo", false)
|
|
||||||
);
|
|
||||||
|
|
||||||
bool moveMeshOuterCorrectors
|
moveMeshOuterCorrectors =
|
||||||
(
|
pimple.dict().lookupOrDefault<Switch>("moveMeshOuterCorrectors", false);
|
||||||
pimple.dict().lookupOrDefault<Switch>("moveMeshOuterCorrectors", false)
|
|
||||||
);
|
|
||||||
|
|||||||
@ -62,6 +62,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
|
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
||||||
|
|
||||||
|
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||||
@ -52,6 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
|
|||||||
@ -0,0 +1,21 @@
|
|||||||
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
|
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
|
||||||
|
|
||||||
|
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||||
|
|
||||||
|
bool MULESCorr(alphaControls.lookupOrDefault<Switch>("MULESCorr", false));
|
||||||
|
|
||||||
|
// Apply the compression correction from the previous iteration
|
||||||
|
// Improves efficiency for steady-simulations but can only be applied
|
||||||
|
// once the alpha field is reasonably steady, i.e. fully developed
|
||||||
|
//bool alphaApplyPrevCorr
|
||||||
|
//(
|
||||||
|
// alphaControls.lookupOrDefault<Switch>("alphaApplyPrevCorr", false)
|
||||||
|
//);
|
||||||
|
|
||||||
|
// Isotropic compression coefficient
|
||||||
|
scalar icAlpha
|
||||||
|
(
|
||||||
|
alphaControls.lookupOrDefault<scalar>("icAlpha", 0)
|
||||||
|
);
|
||||||
@ -1,6 +1,13 @@
|
|||||||
{
|
{
|
||||||
surfaceScalarField phic(mag(phi/mesh.magSf()));
|
// Standard face-flux compression coefficient
|
||||||
phic = min(interface.cAlpha()*phic, max(phic));
|
surfaceScalarField phic(interface.cAlpha()*mag(phi/mesh.magSf()));
|
||||||
|
|
||||||
|
// Add the optional isotropic compression contribution
|
||||||
|
if (icAlpha > 0)
|
||||||
|
{
|
||||||
|
phic *= (1.0 - icAlpha);
|
||||||
|
phic += (interface.cAlpha()*icAlpha)*fvc::interpolate(mag(U));
|
||||||
|
}
|
||||||
|
|
||||||
volScalarField divU(fvc::div(phi));
|
volScalarField divU(fvc::div(phi));
|
||||||
|
|
||||||
|
|||||||
@ -63,10 +63,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "../interFoam/interDyMFoam/createControls.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "readTimeControls.H"
|
|
||||||
|
|
||||||
volScalarField rAU
|
volScalarField rAU
|
||||||
(
|
(
|
||||||
|
|||||||
@ -60,10 +60,9 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -73,7 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -56,7 +56,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRFZones.H"
|
#include "createMRFZones.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "correctPhi.H"
|
#include "correctPhi.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
@ -67,7 +67,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -52,10 +52,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "readTimeControls.H"
|
|
||||||
|
|
||||||
volScalarField rAU
|
volScalarField rAU
|
||||||
(
|
(
|
||||||
|
|||||||
@ -54,7 +54,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "correctPhi.H"
|
#include "correctPhi.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
@ -65,7 +65,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "alphaCourantNo.H"
|
#include "alphaCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|||||||
@ -57,6 +57,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
|
|||||||
@ -52,6 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
|
|||||||
@ -52,13 +52,12 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
pimpleControl pimple(mesh);
|
pimpleControl pimple(mesh);
|
||||||
|
|
||||||
|
#include "createTimeControls.H"
|
||||||
#include "createRDeltaT.H"
|
#include "createRDeltaT.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "initContinuityErrs.H"
|
|
||||||
|
|
||||||
if (!LTS)
|
if (!LTS)
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,3 @@
|
|||||||
|
const dictionary& alphaControls = mesh.solverDict(alpha1.name());
|
||||||
|
|
||||||
|
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
|
||||||
@ -51,7 +51,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#include "initContinuityErrs.H"
|
#include "initContinuityErrs.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNo.H"
|
#include "CourantNo.H"
|
||||||
#include "alphaCourantNo.H"
|
#include "alphaCourantNo.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|||||||
@ -52,8 +52,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
#include "createMRF.H"
|
#include "createMRF.H"
|
||||||
#include "createFvOptions.H"
|
#include "createFvOptions.H"
|
||||||
#include "initContinuityErrs.H"
|
#include "createTimeControls.H"
|
||||||
#include "readTimeControls.H"
|
|
||||||
#include "CourantNos.H"
|
#include "CourantNos.H"
|
||||||
#include "setInitialDeltaT.H"
|
#include "setInitialDeltaT.H"
|
||||||
|
|
||||||
@ -79,7 +78,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (runTime.run())
|
while (runTime.run())
|
||||||
{
|
{
|
||||||
#include "readTimeControls.H"
|
#include "createTimeControls.H"
|
||||||
#include "CourantNos.H"
|
#include "CourantNos.H"
|
||||||
#include "setDeltaT.H"
|
#include "setDeltaT.H"
|
||||||
|
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
|
||||||
|
|
||||||
|
int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
|
||||||
|
|
||||||
|
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));
|
||||||
|
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));
|
||||||
@ -1,6 +1,3 @@
|
|||||||
const dictionary& stressControl = mesh.solutionDict().subDict("stressAnalysis");
|
nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
|
||||||
|
convergenceTolerance = readScalar(stressControl.lookup("D"));
|
||||||
const int nCorr = stressControl.lookupOrDefault<int>("nCorrectors", 1);
|
stressControl.lookup("compactNormalStress") >> compactNormalStress;
|
||||||
|
|
||||||
scalar convergenceTolerance(readScalar(stressControl.lookup("D")));
|
|
||||||
Switch compactNormalStress(stressControl.lookup("compactNormalStress"));
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -48,7 +48,7 @@ int main(int argc, char *argv[])
|
|||||||
#include "createMesh.H"
|
#include "createMesh.H"
|
||||||
#include "readMechanicalProperties.H"
|
#include "readMechanicalProperties.H"
|
||||||
#include "readThermalProperties.H"
|
#include "readThermalProperties.H"
|
||||||
#include "readSolidDisplacementFoamControls.H"
|
#include "createSolidDisplacementFoamControls.H"
|
||||||
#include "createFields.H"
|
#include "createFields.H"
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
@ -12,7 +12,7 @@ EXE_INC = \
|
|||||||
${CGAL_EXACT} \
|
${CGAL_EXACT} \
|
||||||
${CGAL_INEXACT} \
|
${CGAL_INEXACT} \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
${c++CGALWARN} \
|
${c++LESSWARN} \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \
|
-I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude \
|
||||||
|
|||||||
@ -12,7 +12,7 @@ EXE_INC = \
|
|||||||
${CGAL_EXACT} \
|
${CGAL_EXACT} \
|
||||||
${CGAL_INEXACT} \
|
${CGAL_INEXACT} \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
${c++CGALWARN} \
|
${c++LESSWARN} \
|
||||||
-I../conformalVoronoiMesh/lnInclude \
|
-I../conformalVoronoiMesh/lnInclude \
|
||||||
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
-I$(LIB_SRC)/finiteVolume/lnInclude \
|
||||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||||
|
|||||||
@ -7,7 +7,7 @@ EXE_INC = \
|
|||||||
${ROUNDING_MATH} \
|
${ROUNDING_MATH} \
|
||||||
${EXE_NDEBUG} \
|
${EXE_NDEBUG} \
|
||||||
${CGAL_INC} \
|
${CGAL_INC} \
|
||||||
${c++CGALWARN} \
|
${c++LESSWARN} \
|
||||||
-I$(FOAM_APP)/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/lnInclude \
|
-I$(FOAM_APP)/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/lnInclude \
|
||||||
-I../conformalVoronoi2DMesh/lnInclude \
|
-I../conformalVoronoi2DMesh/lnInclude \
|
||||||
-I../conformalVoronoiMesh/lnInclude \
|
-I../conformalVoronoiMesh/lnInclude \
|
||||||
|
|||||||
@ -51,7 +51,6 @@ Description
|
|||||||
#include "zoltanRenumber.H"
|
#include "zoltanRenumber.H"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
|
|
||||||
@ -635,7 +634,6 @@ int main(int argc, char *argv[])
|
|||||||
"calculate the rms of the frontwidth"
|
"calculate the rms of the frontwidth"
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
// Force linker to include zoltan symbols. This section is only needed since
|
// Force linker to include zoltan symbols. This section is only needed since
|
||||||
// Zoltan is a static library
|
// Zoltan is a static library
|
||||||
#ifdef FOAM_USE_ZOLTAN
|
#ifdef FOAM_USE_ZOLTAN
|
||||||
@ -643,7 +641,6 @@ int main(int argc, char *argv[])
|
|||||||
(void)zoltanRenumber::typeName;
|
(void)zoltanRenumber::typeName;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "setRootCase.H"
|
#include "setRootCase.H"
|
||||||
#include "createTime.H"
|
#include "createTime.H"
|
||||||
runTime.functionObjects().off();
|
runTime.functionObjects().off();
|
||||||
@ -651,7 +648,7 @@ int main(int argc, char *argv[])
|
|||||||
// Get times list
|
// Get times list
|
||||||
instantList Times = runTime.times();
|
instantList Times = runTime.times();
|
||||||
|
|
||||||
// set startTime and endTime depending on -time and -latestTime options
|
// Set startTime and endTime depending on -time and -latestTime options
|
||||||
#include "checkTimeOptions.H"
|
#include "checkTimeOptions.H"
|
||||||
|
|
||||||
runTime.setTime(Times[startTime], startTime);
|
runTime.setTime(Times[startTime], startTime);
|
||||||
|
|||||||
@ -18,9 +18,9 @@ int USERD_get_part_coords
|
|||||||
|
|
||||||
for (label indx=0; indx<nPoints; indx++)
|
for (label indx=0; indx<nPoints; indx++)
|
||||||
{
|
{
|
||||||
coord_array[0][indx+1] = (float)points[indx].x();
|
coord_array[0][indx+1] = float(points[indx].x());
|
||||||
coord_array[1][indx+1] = (float)points[indx].y();
|
coord_array[1][indx+1] = float(points[indx].y());
|
||||||
coord_array[2][indx+1] = (float)points[indx].z();
|
coord_array[2][indx+1] = float(points[indx].z());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (part_number < nPatches+2)
|
else if (part_number < nPatches+2)
|
||||||
@ -32,9 +32,9 @@ int USERD_get_part_coords
|
|||||||
|
|
||||||
for (label indx=0; indx<nPoints; indx++)
|
for (label indx=0; indx<nPoints; indx++)
|
||||||
{
|
{
|
||||||
coord_array[0][indx+1] = (float)points[indx].x();
|
coord_array[0][indx+1] = float(points[indx].x());
|
||||||
coord_array[1][indx+1] = (float)points[indx].y();
|
coord_array[1][indx+1] = float(points[indx].y());
|
||||||
coord_array[2][indx+1] = (float)points[indx].z();
|
coord_array[2][indx+1] = float(points[indx].z());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -44,9 +44,9 @@ int USERD_get_part_coords
|
|||||||
|
|
||||||
forAllConstIter(Cloud<passiveParticle>, *sprayPtr, iter)
|
forAllConstIter(Cloud<passiveParticle>, *sprayPtr, iter)
|
||||||
{
|
{
|
||||||
coord_array[0][indx] = (float)iter().position().x();
|
coord_array[0][indx] = float(iter().position().x());
|
||||||
coord_array[1][indx] = (float)iter().position().y();
|
coord_array[1][indx] = float(iter().position().y());
|
||||||
coord_array[2][indx] = (float)iter().position().z();
|
coord_array[2][indx] = float(iter().position().z());
|
||||||
indx++;
|
indx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -28,7 +28,7 @@ int USERD_set_filenames
|
|||||||
// remove the last '/' from rootDir
|
// remove the last '/' from rootDir
|
||||||
if (the_path[lRoot-1] == '/')
|
if (the_path[lRoot-1] == '/')
|
||||||
{
|
{
|
||||||
the_path[lRoot-1] = (char)NULL;
|
the_path[lRoot-1] = char(NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -182,9 +182,9 @@ int USERD_set_filenames
|
|||||||
IOobjectList objects(*meshPtr, runTime.timeName(), cloud::prefix);
|
IOobjectList objects(*meshPtr, runTime.timeName(), cloud::prefix);
|
||||||
|
|
||||||
lagrangianScalarNames =
|
lagrangianScalarNames =
|
||||||
(const wordList&)objects.names(sprayScalarFieldName);
|
objects.names(sprayScalarFieldName);
|
||||||
lagrangianVectorNames =
|
lagrangianVectorNames =
|
||||||
(const wordList&)objects.names(sprayVectorFieldName);
|
objects.names(sprayVectorFieldName);
|
||||||
|
|
||||||
isSpray[fieldNames.size()] = true;
|
isSpray[fieldNames.size()] = true;
|
||||||
|
|
||||||
|
|||||||
@ -426,7 +426,7 @@ case SYSTEMMPI:
|
|||||||
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.csh:"
|
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.csh:"
|
||||||
echo " MPI_ARCH_INC is not set. Example:"
|
echo " MPI_ARCH_INC is not set. Example:"
|
||||||
echo
|
echo
|
||||||
echo ' setenv MPI_ARCH_INC "-I$MPI_ROOT/include"'
|
echo ' setenv MPI_ARCH_INC "-isystem $MPI_ROOT/include"'
|
||||||
echo
|
echo
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@ -453,7 +453,7 @@ SYSTEMMPI)
|
|||||||
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.sh:" 1>&2
|
echo "Warning in $WM_PROJECT_DIR/etc/config/settings.sh:" 1>&2
|
||||||
echo " MPI_ARCH_INC is not set. Example:" 1>&2
|
echo " MPI_ARCH_INC is not set. Example:" 1>&2
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
echo " export MPI_ARCH_INC=\"-I\$MPI_ROOT/include\"" 1>&2
|
echo " export MPI_ARCH_INC=\"-isystem \$MPI_ROOT/include\"" 1>&2
|
||||||
echo 1>&2
|
echo 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,13 @@
|
|||||||
//
|
//
|
||||||
// checkTimeOption.H
|
// checkTimeOption.H
|
||||||
// ~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~
|
||||||
// check -time and -latestTime options
|
// Check -time and -latestTime options
|
||||||
|
|
||||||
if (args.optionFound("time"))
|
if (args.optionFound("time"))
|
||||||
{
|
{
|
||||||
Foam::scalar timeValue = args.optionRead<scalar>("time");
|
Foam::scalar timeValue = args.optionRead<scalar>("time");
|
||||||
|
|
||||||
startTime = Foam::Time::findClosestTimeIndex(Times, timeValue);
|
startTime = Foam::Time::findClosestTimeIndex(Times, timeValue);
|
||||||
endTime = startTime + 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.optionFound("latestTime"))
|
if (args.optionFound("latestTime"))
|
||||||
|
|||||||
@ -3,10 +3,9 @@
|
|||||||
// ~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Foam::label startTime = 0;
|
Foam::label startTime = 0;
|
||||||
Foam::label endTime = Times.size();
|
|
||||||
|
|
||||||
// unless -constant is present, skip startTime if it is "constant"
|
// Unless -constant is present, skip startTime if it is "constant"
|
||||||
#include "checkConstantOption.H"
|
#include "checkConstantOption.H"
|
||||||
|
|
||||||
// check -time and -latestTime options
|
// Check -time and -latestTime options
|
||||||
#include "checkTimeOption.H"
|
#include "checkTimeOption.H"
|
||||||
|
|||||||
@ -3,7 +3,6 @@
|
|||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Foam::label startTime = 0;
|
Foam::label startTime = 0;
|
||||||
Foam::label endTime = Times.size();
|
|
||||||
|
|
||||||
// check -time and -latestTime options
|
// Check -time and -latestTime options
|
||||||
#include "checkTimeOption.H"
|
#include "checkTimeOption.H"
|
||||||
|
|||||||
@ -34,9 +34,6 @@ wmake $targetType dummy
|
|||||||
case "$WM_MPLIB" in
|
case "$WM_MPLIB" in
|
||||||
*MPI*)
|
*MPI*)
|
||||||
set +x
|
set +x
|
||||||
echo
|
|
||||||
echo "Note: ignore spurious warnings about missing mpicxx.h headers"
|
|
||||||
echo
|
|
||||||
wmakeMpiLib mpi
|
wmakeMpiLib mpi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
@ -0,0 +1,41 @@
|
|||||||
|
/*---------------------------------------------------------------------------*\
|
||||||
|
========= |
|
||||||
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
|
\\ / O peration |
|
||||||
|
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||||
|
\\/ M anipulation |
|
||||||
|
-------------------------------------------------------------------------------
|
||||||
|
License
|
||||||
|
This file is part of OpenFOAM.
|
||||||
|
|
||||||
|
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Global
|
||||||
|
readTimeControls
|
||||||
|
|
||||||
|
Description
|
||||||
|
Read the control parameters used by setDeltaT
|
||||||
|
|
||||||
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
bool adjustTimeStep =
|
||||||
|
runTime.controlDict().lookupOrDefault("adjustTimeStep", false);
|
||||||
|
|
||||||
|
scalar maxCo =
|
||||||
|
runTime.controlDict().lookupOrDefault<scalar>("maxCo", 1.0);
|
||||||
|
|
||||||
|
scalar maxDeltaT =
|
||||||
|
runTime.controlDict().lookupOrDefault<scalar>("maxDeltaT", GREAT);
|
||||||
|
|
||||||
|
// ************************************************************************* //
|
||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -29,13 +29,13 @@ Description
|
|||||||
|
|
||||||
\*---------------------------------------------------------------------------*/
|
\*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
const bool adjustTimeStep =
|
adjustTimeStep =
|
||||||
runTime.controlDict().lookupOrDefault("adjustTimeStep", false);
|
runTime.controlDict().lookupOrDefault("adjustTimeStep", false);
|
||||||
|
|
||||||
scalar maxCo =
|
maxCo =
|
||||||
runTime.controlDict().lookupOrDefault<scalar>("maxCo", 1.0);
|
runTime.controlDict().lookupOrDefault<scalar>("maxCo", 1.0);
|
||||||
|
|
||||||
scalar maxDeltaT =
|
maxDeltaT =
|
||||||
runTime.controlDict().lookupOrDefault<scalar>("maxDeltaT", GREAT);
|
runTime.controlDict().lookupOrDefault<scalar>("maxDeltaT", GREAT);
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -39,7 +39,7 @@ if (adjustTimeStep)
|
|||||||
min
|
min
|
||||||
(
|
(
|
||||||
maxCo*runTime.deltaTValue()/CoNum,
|
maxCo*runTime.deltaTValue()/CoNum,
|
||||||
runTime.deltaTValue()
|
min(runTime.deltaTValue(), maxDeltaT)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
SUFFIXES += .L
|
SUFFIXES += .L
|
||||||
|
|
||||||
Ltoo = flex -+ -o$(@D)/$(<F).C -f $< ; $(CC) $(c++FLAGS) -c $(@D)/$(<F).C -o $@
|
Ltoo = flex -+ -o$(@D)/$(<F).C -f $< ; $(CC) $(c++FLAGS) $(c++LESSWARN) -c $(@D)/$(<F).C -o $@
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include
|
PINC = -isystem $(MPI_ARCH_PATH)/include
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -lrt
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS =
|
PFLAGS =
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include
|
PINC = -isystem $(MPI_ARCH_PATH)/include
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpich -L$(GM_LIB_PATH) -lgm
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS = -DOMPI_SKIP_MPICXX
|
PFLAGS = -DOMPI_SKIP_MPICXX
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include
|
PINC = -isystem $(MPI_ARCH_PATH)/include
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpi
|
PLIBS = -L$(MPI_ARCH_PATH)/lib$(WM_COMPILER_LIB_ARCH) -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
PFLAGS =
|
PFLAGS =
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include
|
PINC = -isystem $(MPI_ARCH_PATH)/include
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS = -DSGIMPI -DMPI_NO_CPPBIND
|
PFLAGS = -DSGIMPI -DMPI_NO_CPPBIND
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include
|
PINC = -isystem $(MPI_ARCH_PATH)/include
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
PLIBS = -L$(MPI_ARCH_PATH)/lib -lmpi
|
||||||
|
|||||||
@ -2,8 +2,8 @@ SUFFIXES += .C
|
|||||||
|
|
||||||
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-c++11-extensions
|
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-c++11-extensions
|
||||||
|
|
||||||
# Suppress CGAL warnings
|
# Suppress some warnings for flex++ and CGAL
|
||||||
c++CGALWARN = -Wno-old-style-cast -Wno-unused-local-typedefs
|
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-tautological-undefined-compare
|
||||||
|
|
||||||
CC = clang++ -m64
|
CC = clang++ -m64
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS =
|
PFLAGS =
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include -D_MPICC_H
|
PINC = -isystem $(MPI_ARCH_PATH)/include -D_MPICC_H
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
PLIBS = -L$(MPI_ARCH_PATH)/lib/linux_amd64 -lmpi
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
PFLAGS = -DMPICH_SKIP_MPICXX
|
PFLAGS = -DMPICH_SKIP_MPICXX
|
||||||
PINC = -I$(MPI_ARCH_PATH)/include64
|
PINC = -isystem $(MPI_ARCH_PATH)/include64
|
||||||
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
PLIBS = -L$(MPI_ARCH_PATH)/lib64 -lmpi
|
||||||
|
|||||||
@ -2,8 +2,8 @@ SUFFIXES += .C
|
|||||||
|
|
||||||
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof
|
c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof
|
||||||
|
|
||||||
# Suppress CGAL warnings
|
# Suppress some warnings for flex++ and CGAL
|
||||||
c++CGALWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
|
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
|
||||||
|
|
||||||
CC = g++ -m64
|
CC = g++ -m64
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user