CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Problems to sample a plane (X-Y-Plane) through the Fluid

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 09:40
Default Problems to sample a plane (X-Y-Plane) through the Fluid
  #1
Senior Member
 
Sören
Join Date: Mar 2012
Posts: 102
Rep Power: 14
despaired student is on a distinguished road
Hi,

I've tried the sample utility to get some pictures of the flow (magU) but I always get the error massage that something is wrong within the "surfaces" code.

Here is my sampleDict file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleSurfaceDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cellPoint;

surfaceFormat vtk;

surfaces
(
firstSegment
{

basePoint ( -6 6 7 );
normalVector ( 0 0 1 );
interpolate false ;
}
);

fields ( magU );


// ************************************************** *********************** //


and here is the error-message:

--> FOAM FATAL IO ERROR:
keyword type is undefined in dictionary "/apistemp/sm1/ss/Meshs/Test_2_Umlenkplatten_65_Grad/system/sampleDict::surfaces"

file: /apistemp/sm1/ss/Meshs/Test_2_Umlenkplatten_65_Grad/system/sampleDict::surfaces from line 27 to line 29.

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

FOAM exiting



Kind regards
despaired student is offline   Reply With Quote

Old   July 21, 2012, 12:57
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by despaired student View Post
Hi,

I've tried the sample utility to get some pictures of the flow (magU) but I always get the error massage that something is wrong within the "surfaces" code.

Here is my sampleDict file:

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.0.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object sampleSurfaceDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

interpolationScheme cellPoint;

surfaceFormat vtk;

surfaces
(
firstSegment
{

basePoint ( -6 6 7 );
normalVector ( 0 0 1 );
interpolate false ;
}
);

fields ( magU );


// ************************************************** *********************** //


and here is the error-message:

--> FOAM FATAL IO ERROR:
keyword type is undefined in dictionary "/apistemp/sm1/ss/Meshs/Test_2_Umlenkplatten_65_Grad/system/sampleDict::surfaces"

file: /apistemp/sm1/ss/Meshs/Test_2_Umlenkplatten_65_Grad/system/sampleDict::surfaces from line 27 to line 29.

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

FOAM exiting



Kind regards
I think the error message is a perfectly clear English sentence. Maybe if I rewrite it slightly:

The keyword "type" is undefined in your dictionary named surfaces in your file "/apistemp/sm1/ss/Meshs/Test_2_Umlenkplatten_65_Grad/system/sampleDict"

(but I think Hemingway would have preferred the way OpenFOAM say it)
gschaider is offline   Reply With Quote

Old   July 21, 2012, 13:15
Default
  #3
New Member
 
Mike Jaworski
Join Date: Jul 2012
Location: New Jersey
Posts: 6
Rep Power: 13
Jaworski.Mike is on a distinguished road
Here's another hint:

Look in the tutorial for the plateHole stress analysis. A sampleDict and sampleSurfaceDict are both available. look for your missing keyword in the sampleDict file and see what you need to do.
Jaworski.Mike is offline   Reply With Quote

Old   July 21, 2012, 20:00
Default
  #4
Senior Member
 
Sören
Join Date: Mar 2012
Posts: 102
Rep Power: 14
despaired student is on a distinguished road
I've looked in the plateHole tutorial, that's where I copied my sampleDict from - more or less. I also tried to "name a type" like the error-message says but it doesn't work...

Last edited by despaired student; July 23, 2012 at 11:40.
despaired student is offline   Reply With Quote

Old   September 27, 2013, 06:35
Default
  #5
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Hi Soren
in sampleSurfaceDict is an error. There should not be word "name" but "type"
and not "plate" but "plane". You can see correct sampleDict file in $FOAM_UTILITIES/postProcessing/sampling/sample
Of course you have to change sampleSurfaceDict on sampleDict before you execute sample command.

best
gaza is offline   Reply With Quote

Reply


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
Sample utility problems msrinath80 OpenFOAM Running, Solving & CFD 12 December 21, 2012 05:51
How to choose the mean diameter value for dispersed fluid? creddy_trddc CFX 1 October 30, 2011 04:30
How to use / How to find IPMT? camoesas CFX 2 November 23, 2010 06:36
heat conducting in a solid domain Rogerio Fernandes Brito Fidelity CFD 0 March 18, 2008 17:24
Intl Conf Computational Methods in Fluid Power Jacek Stecki Main CFD Forum 0 November 10, 2002 05:49


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