CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

sampleDict line errors

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2012, 11:56
Default sampleDict line errors
  #1
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
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!

Last edited by hewei; April 9, 2012 at 12:07. Reason: i wanna delete it, wrong colum
hewei is offline   Reply With Quote

Old   April 10, 2012, 03:38
Default
  #2
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
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 is offline   Reply With Quote

Old   April 10, 2012, 04:40
Default
  #3
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Old   April 10, 2012, 05:50
Default
  #4
kid
Senior Member
 
cfdkid
Join Date: Mar 2009
Posts: 133
Rep Power: 17
kid is on a distinguished road
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

Last edited by kid; April 10, 2012 at 05:53. Reason: few more links
kid is offline   Reply With Quote

Old   April 10, 2012, 10:31
Default
  #5
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
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 View Post
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 is offline   Reply With Quote

Reply

Tags
line, sample, surfaces

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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


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