CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Problems to sample a plane (X-Y-Plane) through the Fluid (https://www.cfd-online.com/Forums/openfoam-solving/105007-problems-sample-plane-x-y-plane-through-fluid.html)

despaired student July 20, 2012 10:40

Problems to sample a plane (X-Y-Plane) through the Fluid
 
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

gschaider July 21, 2012 13:57

Quote:

Originally Posted by despaired student (Post 372597)
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)

Jaworski.Mike July 21, 2012 14:15

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.

despaired student July 21, 2012 21:00

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...

gaza September 27, 2013 07:35

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


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