View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001749 | OpenFOAM | Bug | public | 2015-06-16 12:35 | 2015-06-16 12:54 |
Reporter | wyldckat | Assigned To | henry | ||
Priority | low | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Summary | 0001749: createTurbulenceFields doesn't re-load turbulence fields after the first time step | ||||
Description | I 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 Reproduce | 1. 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 Information | Inline 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()); | ||||
Tags | No tags attached. | ||||