createTurbulenceFields: Construct fields and turbulence model for every time step processed

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1749
This commit is contained in:
Henry Weller 2015-06-16 12:53:20 +01:00
parent 678abe2fea
commit fc9f73afc3

View file

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -50,7 +50,6 @@ int main(int argc, char *argv[])
instantList timeDirs = timeSelector::select0(runTime, args);
#include "createMesh.H"
#include "createFields.H"
forAll(timeDirs, timeI)
{
@ -58,7 +57,7 @@ int main(int argc, char *argv[])
Info<< "Time = " << runTime.timeName() << endl;
// Cache the turbulence fields
#include "createFields.H"
Info<< "\nRetrieving field k from turbulence model" << endl;
const volScalarField k(RASModel->k());
@ -133,4 +132,3 @@ int main(int argc, char *argv[])
// ************************************************************************* //