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 |
Quote:
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) |
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. |
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...
|
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. |