Modified to work with backported createTimeControl.H from OF 3.0.1

This commit is contained in:
Vanja Skuric 2016-05-06 23:31:48 +02:00
parent 36b4fa3811
commit 1e8bd24dc7
67 changed files with 179 additions and 74 deletions

View file

@ -77,7 +77,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -80,7 +80,7 @@ int main(int argc, char *argv[])
# include "createFields.H"
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "setInitialDeltaT.H"
scalar StCoNum = 0.0;

View file

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -46,6 +46,7 @@ int main(int argc, char *argv[])
# include "createEngineMesh.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
# include "readEngineTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -55,6 +55,7 @@ int main(int argc, char *argv[])
# include "readCombustionProperties.H"
# include "createSpray.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
# include "readEngineTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -53,7 +53,7 @@ int main(int argc, char *argv[])
# include "readCombustionProperties.H"
# include "createSpray.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -69,6 +69,7 @@ int main(int argc, char *argv[])
# include "readCombustionProperties.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
# include "readEngineTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
#include "initContinuityErrs.H"
#include "createFields.H"
#include "createRadiationModel.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -47,7 +47,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -48,7 +48,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -54,6 +54,7 @@ int main(int argc, char *argv[])
# include "createTime.H"
# include "createMesh.H"
# include "createFields.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -55,6 +55,7 @@ int main(int argc, char *argv[])
# include "createTime.H"
# include "createMesh.H"
# include "createFields.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -45,7 +45,7 @@ int main(int argc, char *argv[])
# include "createMesh.H"
# include "createFields.H"
# include "readThermophysicalProperties.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -47,6 +47,7 @@ int main(int argc, char *argv[])
#include "createMesh.H"
#include "createFields.H"
#include "initContinuityErrs.H"
#include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -43,7 +43,7 @@ int main(int argc, char *argv[])
#include "createMesh.H"
#include "createFields.H"
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -49,6 +49,7 @@ int main(int argc, char *argv[])
#include "createMesh.H"
#include "createFields.H"
#include "initContinuityErrs.H"
#include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -47,6 +47,7 @@ int main(int argc, char *argv[])
# include "createMesh.H"
# include "readThermodynamicProperties.H"
# include "createFields.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -0,0 +1,14 @@
# include "createTimeControls.H"
# include "readPIMPLEControls.H"
bool correctPhi = false;
if (pimple.found("correctPhi"))
{
correctPhi = Switch(pimple.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
if (pimple.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(pimple.lookup("checkMeshCourantNo"));
}

View file

@ -1,13 +1,13 @@
# include "readTimeControls.H"
# include "readPIMPLEControls.H"
bool correctPhi = false;
correctPhi = false;
if (pimple.found("correctPhi"))
{
correctPhi = Switch(pimple.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
checkMeshCourantNo = false;
if (pimple.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(pimple.lookup("checkMeshCourantNo"));

View file

@ -58,6 +58,7 @@ int main(int argc, char *argv[])
# include "createDynamicFvMesh.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -52,6 +52,7 @@ int main(int argc, char *argv[])
# include "createMesh.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -51,7 +51,7 @@ int main(int argc, char *argv[])
# include "createFields.H"
# include "createSolidFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -0,0 +1,6 @@
# include "createTimeControls.H"
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);

View file

@ -51,6 +51,7 @@ int main(int argc, char *argv[])
# include "initContinuityErrs.H"
# include "createFields.H"
# include "createControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,6 +1,4 @@
# include "readTimeControls.H"
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);
checkMeshCourantNo =
piso.dict().lookupOrDefault("checkMeshCourantNo", false);

View file

@ -1,3 +1,3 @@
#include "readTimeControls.H"
# include "readTimeControls.H"
maxDeltaT = runTime.userTimeToTime(maxDeltaT);

View file

@ -52,6 +52,7 @@ int main(int argc, char *argv[])
# include "readPIMPLEControls.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
# include "readEngineTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -0,0 +1,8 @@
# include "createTimeControls.H"
# include "readPISOControls.H"
bool checkMeshCourantNo = false;
if (piso.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
}

View file

@ -1,7 +1,7 @@
# include "readTimeControls.H"
# include "readPISOControls.H"
bool checkMeshCourantNo = false;
checkMeshCourantNo = false;
if (piso.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));

View file

@ -47,6 +47,7 @@ int main(int argc, char *argv[])
# include "createDynamicFvMesh.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "createControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -49,6 +49,7 @@ int main(int argc, char *argv[])
# include "readTransportProperties.H"
# include "createFaFields.H"
# include "createFvFields.H"
# include "createTimeControls.H"
Info << "\nStarting time loop\n" << endl;

View file

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -48,7 +48,7 @@ int main(int argc, char *argv[])
# include "readGravitationalAcceleration.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "compressibleCourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -55,7 +55,7 @@ int main(int argc, char *argv[])
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "readSolidTimeControls.H"

View file

@ -61,7 +61,7 @@ int main(int argc, char *argv[])
# include "initContinuityErrs.H"
# include "createFields.H"
# include "createIbMasks.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -0,0 +1,11 @@
#include "createTimeControls.H"
bool correctPhi
(
piso.dict().lookupOrDefault("correctPhi", false)
);
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);

View file

@ -50,6 +50,7 @@ int main(int argc, char *argv[])
# include "initContinuityErrs.H"
# include "initTotalVolume.H"
# include "createFields.H"
# include "createControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,11 +1,5 @@
# include "readTimeControls.H"
#include "readTimeControls.H"
bool correctPhi
(
piso.dict().lookupOrDefault("correctPhi", false)
);
correctPhi = piso.dict().lookupOrDefault("correctPhi", false);
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);
checkMeshCourantNo = piso.dict().lookupOrDefault("checkMeshCourantNo", false);

View file

@ -0,0 +1,11 @@
#include "createTimeControls.H"
bool correctPhi
(
piso.dict().lookupOrDefault("correctPhi", false)
);
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);

View file

@ -51,6 +51,7 @@ int main(int argc, char *argv[])
# include "initContinuityErrs.H"
# include "initTotalVolume.H"
# include "createFields.H"
# include "createControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View file

@ -1,11 +1,5 @@
# include "readTimeControls.H"
#include "readTimeControls.H"
bool correctPhi
(
piso.dict().lookupOrDefault("correctPhi", false)
);
correctPhi = piso.dict().lookupOrDefault("correctPhi", false);
bool checkMeshCourantNo
(
piso.dict().lookupOrDefault("checkMeshCourantNo", false)
);
checkMeshCourantNo = piso.dict().lookupOrDefault("checkMeshCourantNo", false);

View file

@ -49,6 +49,7 @@ int main(int argc, char *argv[])
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
Info<< "\nStarting time loop\n" << endl;

View file

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
#include "createClouds.H"
#include "createRadiationModel.H"
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -66,7 +66,7 @@ int main(int argc, char *argv[])
#include "createExplicitSources.H"
#include "createPorousZones.H"
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -52,7 +52,7 @@ int main(int argc, char *argv[])
#include "createClouds.H"
#include "createRadiationModel.H"
#include "initContinuityErrs.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "compressibleCourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -56,7 +56,7 @@ int main(int argc, char *argv[])
#include "initContinuityErrs.H"
#include "createFields.H"
#include "createMRFZones.H"
#include "readTimeControls.H"
#include "createTimeControls.H"
#include "correctPhi.H"
#include "CourantNo.H"
#include "setInitialDeltaT.H"

View file

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
# include "createTime.H"
# include "createMesh.H"
# include "readThermodynamicProperties.H"
# include "readControls.H"
# include "createControls.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "compressibleCourantNo.H"

View file

@ -0,0 +1,6 @@
#include "createTimeControls.H"
scalar maxAcousticCo
(
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
);

View file

@ -1,9 +1,5 @@
#include "readTimeControls.H"
scalar maxAcousticCo
(
readScalar(runTime.controlDict().lookup("maxAcousticCo"))
);
maxAcousticCo = readScalar(runTime.controlDict().lookup("maxAcousticCo"));
#include "readPISOControls.H"

View file

@ -52,7 +52,7 @@ int main(int argc, char *argv[])
#include "createTime.H"
#include "createDynamicFvMesh.H"
#include "readGravitationalAcceleration.H"
#include "readControls.H"
#include "createControls.H"
#include "initContinuityErrs.H"
#include "createFields.H"
#include "CourantNo.H"

View file

@ -0,0 +1,27 @@
#include "readPISOControls.H"
#include "createTimeControls.H"
label nAlphaSubCycles
(
readLabel(piso.lookup("nAlphaSubCycles"))
);
if (nAlphaSubCycles > 1 && nOuterCorr != 1)
{
FatalErrorIn(args.executable())
<< "Sub-cycling alpha is only allowed for PISO, "
"i.e. when the number of outer-correctors = 1"
<< exit(FatalError);
}
bool correctPhi = true;
if (piso.found("correctPhi"))
{
correctPhi = Switch(piso.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
if (piso.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));
}

View file

@ -1,10 +1,7 @@
#include "readPISOControls.H"
#include "readTimeControls.H"
label nAlphaSubCycles
(
readLabel(piso.lookup("nAlphaSubCycles"))
);
nAlphaSubCycles = readLabel(piso.lookup("nAlphaSubCycles"));
if (nAlphaSubCycles > 1 && nOuterCorr != 1)
{
@ -14,13 +11,13 @@
<< exit(FatalError);
}
bool correctPhi = true;
correctPhi = true;
if (piso.found("correctPhi"))
{
correctPhi = Switch(piso.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
checkMeshCourantNo = false;
if (piso.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(piso.lookup("checkMeshCourantNo"));

View file

@ -50,7 +50,7 @@ int main(int argc, char *argv[])
#include "createTime.H"
#include "createMesh.H"
#include "readGravitationalAcceleration.H"
#include "readControls.H"
#include "createControls.H"
#include "initContinuityErrs.H"
#include "createFields.H"
#include "CourantNo.H"

View file

@ -0,0 +1,15 @@
#include "readPISOControls.H"
#include "createTimeControls.H"
label nAlphaSubCycles
(
readLabel(piso.lookup("nAlphaSubCycles"))
);
if (nAlphaSubCycles > 1 && nOuterCorr != 1)
{
FatalErrorIn(args.executable())
<< "Sub-cycling alpha is only allowed for PISO, "
"i.e. when the number of outer-correctors = 1"
<< exit(FatalError);
}

View file

@ -1,10 +1,7 @@
#include "readPISOControls.H"
#include "readTimeControls.H"
label nAlphaSubCycles
(
readLabel(piso.lookup("nAlphaSubCycles"))
);
nAlphaSubCycles = readLabel(piso.lookup("nAlphaSubCycles"));
if (nAlphaSubCycles > 1 && nOuterCorr != 1)
{

View file

@ -0,0 +1,13 @@
# include "createTimeControls.H"
bool correctPhi = true;
if (pimple.found("correctPhi"))
{
correctPhi = Switch(pimple.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
if (pimple.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(pimple.lookup("checkMeshCourantNo"));
}

View file

@ -51,7 +51,7 @@ int main(int argc, char *argv[])
# include "readPIMPLEControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -1,13 +1,13 @@
# include "readTimeControls.H"
# include "readPIMPLEControls.H"
bool correctPhi = true;
correctPhi = true;
if (pimple.found("correctPhi"))
{
correctPhi = Switch(pimple.lookup("correctPhi"));
}
bool checkMeshCourantNo = false;
checkMeshCourantNo = false;
if (pimple.found("checkMeshCourantNo"))
{
checkMeshCourantNo = Switch(pimple.lookup("checkMeshCourantNo"));

View file

@ -55,7 +55,7 @@ int main(int argc, char *argv[])
# include "readPIMPLEControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -48,7 +48,7 @@ int main(int argc, char *argv[])
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"
# include "correctPhi.H"

View file

@ -58,7 +58,7 @@ int main(int argc, char *argv[])
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -43,11 +43,11 @@ int main(int argc, char *argv[])
# include "setRootCase.H"
# include "createTime.H"
# include "createMesh.H"
#include "readGravitationalAcceleration.H"
# include "readGravitationalAcceleration.H"
# include "readPISOControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -58,7 +58,7 @@ int main(int argc, char *argv[])
# include "initContinuityErrs.H"
# include "createFields.H"
# include "createPorousZones.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "correctPhi.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -46,7 +46,7 @@ int main(int argc, char *argv[])
# include "readPIMPLEControls.H"
# include "initContinuityErrs.H"
# include "createFields.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -54,7 +54,7 @@ int main(int argc, char *argv[])
# include "createFields.H"
# include "readPPProperties.H"
# include "initContinuityErrs.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "CourantNo.H"
# include "setInitialDeltaT.H"

View file

@ -56,7 +56,7 @@ int main(int argc, char *argv[])
# include "createStressFields.H"
# include "readMechanicalProperties.H"
# include "readCouplingProperties.H"
# include "readTimeControls.H"
# include "createTimeControls.H"
# include "initContinuityErrs.H"

View file

@ -46,6 +46,7 @@ int main(int argc, char *argv[])
# include "createMesh.H"
# include "createFields.H"
# include "initContinuityErrs.H"
# include "createTimeControls.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //