View Issue Details

IDProjectCategoryView StatusLast Update
0001749OpenFOAMBugpublic2015-06-16 12:54
Reporterwyldckat Assigned Tohenry  
PrioritylowSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0001749: createTurbulenceFields doesn't re-load turbulence fields after the first time step
DescriptionI guess this utility rarely is used or is used only for the latest or first field, hence this not having been reported yet.

The problem is that the "RASModel" variable will only load the turbulence fields for the first time and it will not reload those fields for the following time directories.

This utility could probably use a bit more work in it, but for now I'm only able to provide a quick fix, shown in the "Additional Information" entry.
Steps To Reproduce1. Run the tutorial "incompressible/simpleFoam/pitzDaily"

2. Run the utility createTurbulenceFields

3. Run paraFoam

4. Inspect the omega field, which will remain the same throughout the whole simulation.
Additional InformationInline patch for a quick fix:

--- a/applications/utilities/postProcessing/turbulence/createTurbulenceFields/createTurbulenceFields.C
+++ b/applications/utilities/postProcessing/turbulence/createTurbulenceFields/createTurbulenceFields.C
@@ -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,8 @@ int main(int argc, char *argv[])
 
         Info<< "Time = " << runTime.timeName() << endl;
 
- // Cache the turbulence fields
+ // Create and cache relevant fields
+ #include "createFields.H"
 
         Info<< "\nRetrieving field k from turbulence model" << endl;
         const volScalarField k(RASModel->k());
TagsNo tags attached.

Activities

henry

2015-06-16 12:54

manager   ~0004955

Thanks for the bug-report
Resolved by commit fc9f73afc302eab949845398dce092ddbd820813

Issue History

Date Modified Username Field Change
2015-06-16 12:35 wyldckat New Issue
2015-06-16 12:54 henry Note Added: 0004955
2015-06-16 12:54 henry Status new => resolved
2015-06-16 12:54 henry Resolution open => fixed
2015-06-16 12:54 henry Assigned To => henry