CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

erros when running sample command

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 9, 2012, 12:08
Default sampledict error "keyword surfaces is undefined in dictionary"
  #1
Member
 
Join Date: May 2010
Posts: 55
Rep Power: 7
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? is it necesury to add surface? and how to do it, since I just need the lines infos? thank you very much!
Wei

Last edited by hewei; April 9, 2012 at 13:29.
hewei is offline   Reply With Quote

Old   April 13, 2012, 10:36
Default
  #2
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 5
0.1 watts is on a distinguished road
Hi, just add the following to the end:

surfaces ();
0.1 watts is offline   Reply With Quote

Old   April 13, 2012, 10:36
Default
  #3
New Member
 
Join Date: Nov 2011
Posts: 13
Rep Power: 5
0.1 watts is on a distinguished road
Hi, just add the following to the end:

surfaces ();
0.1 watts is offline   Reply With Quote

Old   April 15, 2012, 04:50
Smile
  #4
Member
 
Join Date: May 2010
Posts: 55
Rep Power: 7
hewei is on a distinguished road
Hi, Watts,

it works very well.Thank you!
Wei
Quote:
Originally Posted by 0.1 watts View Post
Hi, just add the following to the end:

surfaces ();
hewei is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sample issues MikePo OpenFOAM Post-Processing 1 February 7, 2010 20:20
Installation OF1.5-dev ttdtud OpenFOAM Installation 46 May 5, 2009 02:32
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 05:41
Running Star From Command Line in HPC A.S. CD-adapco 4 May 19, 2005 08:28


All times are GMT -4. The time now is 13:50.