CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   sampleDict line errors (https://www.cfd-online.com/Forums/openfoam-bugs/99670-sampledict-line-errors.html)

hewei April 9, 2012 11:56

sampleDict line errors
 
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? thank you very much!

kid April 10, 2012 03:38

Hello,
Can you explain the problem you are solving and post checkMesh commands output?
It is not much clear from the data you have given.
Regards
CFDkid

hewei April 10, 2012 04:40

Hi CFDKid,
Thanks for you reply. I am planning to simulate 2D flat plate boundary layer flow, so I need to choose two location to check the velocity profile. After some iterations, I use the command "simple" to gain the data in the lineX1 and lineX2.
btw,I also have no idea how to export the velocity vs t curve. would you or someone could give me some hints? Thanks you again.
Wei



Quote:

Originally Posted by kid (Post 353902)
Hello,
Can you explain the problem you are solving and post checkMesh commands output?
It is not much clear from the data you have given.
Regards
CFDkid


kid April 10, 2012 05:50

Being short of time now, please refer following link for more detailed explanation.

http://www.openfoam.org/docs/user/sample.php
http://www.openfoam.org/version2.0.0...processing.php
http://www.cfd-online.com/Forums/ope...robe-data.html

Hope it helps.

Regards
CFDkid

hewei April 10, 2012 10:31

Thank you CFDKid,
I did this in another way, just defined a surface which the lines are included.
so I missed define the surface, that's the reason. the new method you introduce i will try it.
W.

Quote:

Originally Posted by kid (Post 353936)
Being short of time now, please refer following link for more detailed explanation.

http://www.openfoam.org/docs/user/sample.php
http://www.openfoam.org/version2.0.0...processing.php
http://www.cfd-online.com/Forums/ope...robe-data.html

Hope it helps.

Regards
CFDkid



All times are GMT -4. The time now is 15:22.