CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   sample error depending on the name of sampleDict element (http://www.cfd-online.com/Forums/openfoam-post-processing/115113-sample-error-depending-name-sampledict-element.html)

HakikiCanakkaleli March 24, 2013 07:45

sample error depending on the name of sampleDict element
 
Hi,

==1==

Just wondering.

==2==

When the below command is executed for an arbitrary case

Code:

sample -latestTime
for the following piece of code of sampleDict:

Code:

1D
    {
        type    uniform;
        axis    distance;
        start  ( 0 10 -184 );
        end    ( 0 -10 -184 );
        nPoints 200;        // Number of points which are sampled.
}

The following error pops up:
Code:

--> FOAM FATAL IO ERROR:
wrong token type - expected word, found on line 98 the label 3

file: ~/system/sampleDict::sets at line 98.

    From function operator>>(Istream&, word&)
    in file primitives/strings/word/wordIO.C at line 74.

FOAM exiting

==3==
When I change the name of the sampleDict element from "1D" to "downstream1D", the code can be executed.

Code:

downstream1D
    {
        type    uniform;
        axis    distance;
        start  ( 0 10 -184 );
        end    ( 0 -10 -184 );
        nPoints 200;        // Number of points which are sampled.
}

==4==
I only wonder the reasoning behind this if you like.

Many thanks in advance.

Kind regards.


All times are GMT -4. The time now is 09:31.