applications/solvers: Added -postProcess option

See also commit 30e2f912e5
This commit is contained in:
Henry Weller
2016-05-09 14:08:15 +01:00
parent a4ac0f06fd
commit 15545786b4
40 changed files with 104 additions and 82 deletions

View File

@ -39,15 +39,15 @@ Description
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifndef CREATE_MESH
#define CREATE_MESH createMesh.H
#define CREATE_MESH createMesh.H
#endif
#ifndef CREATE_FIELDS
#define CREATE_FIELDS createFields.H
#define CREATE_FIELDS createFields.H
#endif
#ifndef CREATE_CONTROL
#define CREATE_CONTROL createControl.H
#define CREATE_CONTROL createControl.H
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -55,6 +55,8 @@ Description
#define INCLUDE_FILE(X) INCLUDE_FILE2(X)
#define INCLUDE_FILE2(X) #X
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Foam::argList::addBoolOption
(
argList::postProcessOptionName,
@ -71,7 +73,10 @@ if (argList::postProcess(argc, argv))
#include "createTime.H"
Foam::instantList timeDirs = Foam::timeSelector::select0(runTime, args);
#include INCLUDE_FILE(CREATE_MESH)
#ifndef NO_CONTROL
#include INCLUDE_FILE(CREATE_CONTROL)
#endif
// Externally stored dictionary for functionObjectList
// if not constructed from runTime

View File

@ -0,0 +1 @@
pimpleControl pimple(mesh);

View File

@ -0,0 +1 @@
pisoControl piso(mesh);

View File

@ -0,0 +1 @@
simpleControl simple(mesh);

View File

@ -0,0 +1,8 @@
#if defined(NO_CONTROL)
#elif defined(PISO_CONTROL)
#include "createPisoControl.H"
#elif defined(PIMPLE_CONTROL)
#include "createPimpleControl.H"
#elif defined(SIMPLE_CONTROL)
#include "createSimpleControl.H"
#endif

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -38,6 +38,9 @@ Description
#include "solutionControl.H"
//- Declare that pimpleControl will be used
#define PIMPLE_CONTROL
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View File

@ -34,6 +34,10 @@ Description
#include "pimpleControl.H"
//- Declare that pisoControl will be used
#define PISO_CONTROL
#undef PIMPLE_CONTROL
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam

View File

@ -35,6 +35,9 @@ Description
#include "solutionControl.H"
//- Declare that pimpleControl will be used
#define SIMPLE_CONTROL
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam