graphField: Moved graphs directory into postProcessing

This commit is contained in:
Will Bainbridge
2019-05-20 10:43:36 +01:00
parent deb279aa83
commit 0889ff91c7
9 changed files with 90 additions and 13 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -35,6 +35,7 @@ Description
#include "fft.H"
#include "calcEk.H"
#include "graph.H"
#include "writeFile.H"
#include "pisoControl.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -117,7 +118,10 @@ int main(int argc, char *argv[])
{
calcEk(U, K).write
(
runTime.path()/"graphs"/runTime.timeName(),
runTime.path()
/functionObjects::writeFile::outputPrefix
/"graphs"
/runTime.timeName(),
"Ek",
runTime.graphFormat()
);

View File

@ -1,4 +1,11 @@
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance());
fileName path
(
UMean.rootPath()
/UMean.caseName()
/functionObjects::writeFile::outputPrefix
/"graphs"
/UMean.instance()
);
mkDir(path);
scalarField UMeanXvalues

View File

@ -39,6 +39,7 @@ Description
#include "volFields.H"
#include "channelIndex.H"
#include "makeGraph.H"
#include "writeFile.H"
using namespace Foam;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -36,6 +36,7 @@ Description
#include "Kmesh.H"
#include "turbGen.H"
#include "calcEk.H"
#include "writeFile.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -69,7 +70,10 @@ int main(int argc, char *argv[])
calcEk(U, K).write
(
runTime.path()/"graphs"/runTime.timeName(),
runTime.path()
/functionObjects::writeFile::outputPrefix
/"graphs"
/runTime.timeName(),
"Ek",
runTime.graphFormat()
);