Keyword direction is undefined in dictionary
My Problem
When I use the command simpleFoam, I get the following error ================================================== ============== Code:
No MRF models present What I tried I tried to create Code:
direction (0 0 1); for reference, I'm simulating a cylinder.stl file as shown in https://youtu.be/oc4V79F78AQ?t=734 And I get the error at 12:16 |
Edit streamlines.cfg
streamlines.cfg is located in:
/opt/openfoam6/etc/caseDicts/postProcessing/visualization/ edit streamlines.cfg to look like this: /*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 6 \\/ M anipulation | \*---------------------------------------------------------------------------*/ type streamLine; libs ("libfieldFunctionObjects.so"); executeControl writeTime; writeControl writeTime; setFormat vtk; direction forward; lifeTime 10000; nSubCycle 5; cloudName particleTracks; seedSampleSet { type lineUniform; axis x; start $start; end $end; nPoints $nLines; } // ************************************************** *********************** // Why does this work? Not sure. I happened to have openfoam installed on multiple computers and this tutorial worked on one but not the other. When I traced the errors back, I noted streamlines.cfg was missing lines for the computer that didn't work. Perhaps these were put in place when I ran other simulation tutorials in the user manual. |
All times are GMT -4. The time now is 16:19. |