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/)
-   -   erros when running sample command (http://www.cfd-online.com/Forums/openfoam-post-processing/99671-erros-when-running-sample-command.html)

hewei April 9, 2012 12:08

sampledict error "keyword surfaces is undefined in dictionary"
 
Hello everyone,

I wanna compare a 2D flow's velocity profiles at different locations, but when I run sample command, there somethings wrong:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0



--> FOAM FATAL IO ERROR:
keyword surfaces is undefined in dictionary "/Users/of/OpenFOAM/fpapcocp/system/sampleDict"

file: /Users/of/OpenFOAM/fpapcocp/system/sampleDict from line 20 to line 50.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting


the sampleDict is followed:


setFormat raw;

interpolationScheme cellPoint;

fields
(
p
U
);

sets
(
lineX1
{
type uniform;
axis distance;
start (10 0 0);
end (10 0.5 0);
nPoints 100;
}

lineX2
{
type uniform;
axis distance;
start (5 0 0);
end (5 0.5 0);
nPoints 100;
}

);

I don't know what's wrong,why there is information about surfaces? is it necesury to add surface? and how to do it, since I just need the lines infos? thank you very much!
Wei

0.1 watts April 13, 2012 10:36

Hi, just add the following to the end:

surfaces ();

0.1 watts April 13, 2012 10:36

Hi, just add the following to the end:

surfaces ();

hewei April 15, 2012 04:50

Hi, Watts,

it works very well.Thank you!
Wei
Quote:

Originally Posted by 0.1 watts (Post 354578)
Hi, just add the following to the end:

surfaces ();



All times are GMT -4. The time now is 16:52.