CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Keyword direction is undefined in dictionary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 26, 2019, 03:32
Smile Keyword direction is undefined in dictionary
  #1
New Member
 
Outside US and Canada
Join Date: May 2019
Posts: 2
Rep Power: 0
sidvud98 is on a distinguished road
My Problem
When I use the command simpleFoam, I get the following error
================================================== ==============
Code:
No MRF models present

No finite volume options present

Starting time loop

streamLine streamlines:

--> FOAM FATAL IO ERROR: 
keyword direction is undefined in dictionary "/home/sid/CFD/lily/postrun/system/streamlines"

file: /home/sid/CFD/lily/postrun/system/streamlines from line 13 to line 20.

    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 566.
================================================== =============
What I tried
I tried to create
Code:
direction (0 0 1);
in streamlines.c to only find later it wasn't helping.

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
sidvud98 is offline   Reply With Quote

Old   October 24, 2019, 09:52
Smile Edit streamlines.cfg
  #2
New Member
 
TN
Join Date: Oct 2019
Posts: 1
Rep Power: 0
tommanuel is on a distinguished road
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.
tommanuel is offline   Reply With Quote

Reply

Tags
fatal error, fatal io error, openfoam, simplefoam, simplefoam not converged

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
keyword PISO is undefined in dictionary, Please help. TommiPLaiho OpenFOAM Pre-Processing 2 May 26, 2019 03:50
problem with turbulence models after compilation? lfgmarc OpenFOAM Programming & Development 19 November 20, 2013 00:50
keyword potentialFlow is undefined in dictionary, please help. TommiPLaiho OpenFOAM Pre-Processing 2 October 21, 2013 17:12
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35


All times are GMT -4. The time now is 07:33.