CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   icoFoam: ill defined primitiveEntry starting at Keyword 'value' (https://www.cfd-online.com/Forums/openfoam-solving/164337-icofoam-ill-defined-primitiveentry-starting-keyword-value.html)

sinatahmooresi December 19, 2015 01:14

icoFoam: ill defined primitiveEntry starting at Keyword 'value'
 
Hi friends!
I am modeling a very simple example of laminar flow using OpenFoam.
there is no problem in blockMesh. but when I type "icoFoam" to solve the problem, solver stops when is reading the "U field" the error is :
ill defined primitiveEntry starting at Keyword 'value' on line ....
I've seen this message before, cause of bad definition in using small and capital letter in typing the words. but here there is no such problem I guess!
all the best!

wyldckat December 19, 2015 14:53

Quick answer: icoFoam is telling you something is wrong with the line that has a broken "value" description/definition. If you do not show us what that line has got, we cannot diagnose the problem either. Therefore, we also cannot see what you are not seeing.

sinatahmooresi December 19, 2015 15:15

the contents of U file that icoFoam exiting when is reading that, are:
...
boundryField
{
fixedwalls
{
type fixedValue;
value uniform(0 0 0);
}

inlet
{
type fixedValue;
value uniform(1 0 0);
}
.
.
.
that was the part contain of "value" word

all the best

wyldckat December 19, 2015 15:55

Quote:

Originally Posted by sinatahmooresi (Post 578160)
boundryField
{
fixedwalls
{
type fixedValue;
value uniform(0 0 0);
}

inlet
{
type fixedValue;
value uniform(1 0 0);
}
.
.
.

Quick answer: There are two flaws:
  1. "boundryField" is incorrect, it should be "boundaryField". But I'm guessing you typed this manually when posting here ;)
  2. If you didn't mistype here, then this line is incorrect:
    Code:

    value      uniform(1 0 0);
    There is a missing space and should be this:
    Code:

    value      uniform (1 0 0);
    Notice the space between "uniform" and "(".
Always keep in mind that when it comes to OpenFOAM, every single detail, no matter how small, is more important than you might want to believe!

sinatahmooresi December 20, 2015 14:14

thank u very much!
that was correct, my fault was that missing space between uniform and (0 0 0)
all the best


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