mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Adjust some utilities to use postCalc wrapper or timeSelector directly.
When required, also adjusted to use XXXApp.C for the source name. Adjusted some names in preparation for merge with master.
This commit is contained in:
@ -83,6 +83,7 @@ Description
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "argList.H"
|
||||
#include "timeSelector.H"
|
||||
#include "IOsampledSets.H"
|
||||
#include "IOsampledSurfaces.H"
|
||||
|
||||
@ -93,28 +94,18 @@ using namespace Foam;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
|
||||
# include "addTimeOptions.H"
|
||||
timeSelector::addOptions();
|
||||
# include "setRootCase.H"
|
||||
|
||||
# include "createTime.H"
|
||||
|
||||
// Get times list
|
||||
instantList Times = runTime.times();
|
||||
|
||||
// set startTime and endTime depending on -time and -latestTime options
|
||||
# include "checkTimeOptions.H"
|
||||
|
||||
runTime.setTime(Times[startTime], startTime);
|
||||
|
||||
instantList timeDirs = timeSelector::select0(runTime, args);
|
||||
# include "createMesh.H"
|
||||
|
||||
IOsampledSets sSets(mesh, "sampleDict", true);
|
||||
IOsampledSurfaces sSurfaces(mesh, "sampleDict", true);
|
||||
|
||||
for (label i=startTime; i<endTime; i++)
|
||||
forAll(timeDirs, timeI)
|
||||
{
|
||||
runTime.setTime(Times[i], i);
|
||||
runTime.setTime(timeDirs[timeI], timeI);
|
||||
Info<< "Time = " << runTime.timeName() << endl;
|
||||
|
||||
// Handle geometry/topology changes
|
||||
@ -129,7 +120,6 @@ int main(int argc, char *argv[])
|
||||
Info<< endl;
|
||||
}
|
||||
|
||||
|
||||
Info<< "End\n" << endl;
|
||||
|
||||
return 0;
|
||||
|
||||
@ -108,6 +108,9 @@ sets
|
||||
// Surface sampling definition: choice of
|
||||
// plane : values on plane defined by point, normal.
|
||||
// patch : values on patch.
|
||||
//
|
||||
// 1] planes are triangulated by default
|
||||
// 2] patches are not triangulated by default
|
||||
surfaces
|
||||
(
|
||||
constantPlane
|
||||
@ -141,15 +144,15 @@ surfaces
|
||||
{
|
||||
type patch;
|
||||
patchName movingWall;
|
||||
triangulate false;
|
||||
// Optional: whether to leave as faces (=default) or triangulate
|
||||
}
|
||||
|
||||
movingWall_interpolated
|
||||
{
|
||||
type patch;
|
||||
patchName movingWall;
|
||||
triangulate false;
|
||||
interpolate true;
|
||||
// Optional: whether to leave as faces (=default) or triangulate
|
||||
}
|
||||
|
||||
/* not yet (re)implemented --
|
||||
|
||||
Reference in New Issue
Block a user