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

SampleDict error

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

Like Tree2Likes
  • 2 Post By kumar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 26, 2009, 09:22
Default SampleDict error
  #1
Member
 
Join Date: Sep 2009
Posts: 45
Rep Power: 16
AirS is on a distinguished road
Hi all,
I'd like to use the sampleDict in order to plot the velocity along different lines. But when I run the application sample, I've got this:

Create time

Create mesh for time = 0



keyword surfaces is undefined in dictionary "./case/system/sampleDict"

file: ./case/system/sampleDict from line 25 to line 134.

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

FOAM exiting

I can't understand why it talks about surfaces ...
So I join my sampleDict file if someone can give some hints:

setFormat gnuplot;
surfaceFormat vtk; // what is this line referred to ?
interpolationScheme cellPoint;
fields
(
UMean
);
sets
(
line1
{
type uniform;
axis distance;
start (-0.77 -0.05 0.36);
end (-0.77 1.0 0.36);
nPoints 10;
}
line2
{
type uniform;
axis distance;
start (-0.22 -0.05 0.36);
end (-0.22 1.0 0.36);
nPoints 10;
}
line3
{
type uniform;
axis distance;
start (0.0038 -0.05 0.36);
end (0.0038 1.0 0.36);
nPoints 10;
}
line4
{
type uniform;
axis distance;
start (-0.77 -0.05 0.36);
end (-0.77 1.0 0.36);
nPoints 10;
}
line5
{
type uniform;
axis distance;
start (0.81 -0.05 0.36);
end (0.81 1.0 0.36);
nPoints 10;
}
line6
{
type uniform;
axis distance;
start (1.64 -0.05 0.36);
end (1.64 1.0 0.36);
nPoints 10;
}
line7
{
type uniform;
axis distance;
start (2.25 -0.05 0.36);
end (2.25 1.0 0.36);
nPoints 10;
}
);

I'll appreciate every single idea, thank you !
AirS is offline   Reply With Quote

Old   November 27, 2009, 03:19
Default
  #2
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello ,
First of all which version of OF are you using. If you are using OF-1.5 or of-1.6.X,then the line surface format refers to the surface date that you want to extract. But if you are not extracting any surface information you should set that to null.

hope this helps
bye
Hamed1117 and ancipdp like this.
kumar is offline   Reply With Quote

Old   November 27, 2009, 07:21
Default
  #3
Member
 
Join Date: Sep 2009
Posts: 45
Rep Power: 16
AirS is on a distinguished road
Thanks kumar,
However after having done the change you suggested to me:
surfaceFormat vtk; ---> surfaceFormat null;
I've still the error. I'm using OF-1.6.
why does it talk about surfaces whereas I want to plot over a line... ?
AirS is offline   Reply With Quote

Old   November 27, 2009, 07:47
Default
  #4
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Hello airs,
I think the sample utility is written in such a way that even if you dont extract any surface information, you still have to put the keyword surface in the file SampleDict.
What I suggest you to do is add the information for surface at the end of your sampleDict file like

surfaces
(
constantPlane
{
type plane; // always triangulated
basePoint (0.0501 0.0501 0.005);
normalVector (0.1 0.1 1);

//- Optional: restrict to a particular zone
// zoneName zone1;
}
);
and since you specify the surfaceFormat to null it wont read the surface information. from your solution files. But you still need the definition for surfaces in your file. I mean that you have to specify the keyword surfaces even if you are not extracting surface information.

hope it helps
bye
K.Suresh kumar
kumar is offline   Reply With Quote

Old   November 27, 2009, 09:25
Default
  #5
Member
 
Join Date: Sep 2009
Posts: 45
Rep Power: 16
AirS is on a distinguished road
You were right! it works now.
Actually, you don't even need to specify "surfaceFormat null" : I removed it and it works. You just need to add the keyword "surfaces" at the end of the file as you said.
Thank u
AirS is offline   Reply With Quote

Old   January 19, 2017, 23:29
Default
  #6
New Member
 
Hamed
Join Date: Dec 2013
Location: Istanbul
Posts: 16
Rep Power: 12
Hamed1117 is on a distinguished road
setting '' surfaceFormat null '' worked for me !

Thanks.
Hamed1117 is offline   Reply With Quote

Reply

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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 17:38
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51
user subroutine error CFDUSER CFX 2 December 9, 2006 06:31


All times are GMT -4. The time now is 04:41.