applications/solvers: Added -postProcess option
See also commit 30e2f912e5
This commit is contained in:
@ -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
|
||||
|
||||
@ -0,0 +1 @@
|
||||
pimpleControl pimple(mesh);
|
||||
@ -0,0 +1 @@
|
||||
pisoControl piso(mesh);
|
||||
@ -0,0 +1 @@
|
||||
simpleControl simple(mesh);
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
@ -34,6 +34,10 @@ Description
|
||||
|
||||
#include "pimpleControl.H"
|
||||
|
||||
//- Declare that pisoControl will be used
|
||||
#define PISO_CONTROL
|
||||
#undef PIMPLE_CONTROL
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
@ -35,6 +35,9 @@ Description
|
||||
|
||||
#include "solutionControl.H"
|
||||
|
||||
//- Declare that pimpleControl will be used
|
||||
#define SIMPLE_CONTROL
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
|
||||
Reference in New Issue
Block a user