CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   sampleDict error Version 8 (https://www.cfd-online.com/Forums/openfoam-post-processing/234393-sampledict-error-version-8-a.html)

spegarser March 4, 2021 16:52

sampleDict error Version 8
 
Hello guys,
I`m running some simulations on a cluster with v8 OpenFOAM. I`m using a sampleDict file to output temperature of different points but i get this error

Code:

Create mesh for time = 0

--> FOAM Warning :
    From function bool Foam::functionObjectList::read()
    in file db/functionObjects/functionObjectList/functionObjectList.C at line 871
    Caught FatalError
--> FOAM FATAL ERROR:
Unknown sample set type cloud

Valid sample set types :

14
(
arcUniform
boundaryPoints
boundaryRandom
boxUniform
cellSet
circleRandom
faceSet
lineCell
lineCellFace
lineFace
lineUniform
points
sphereRandom
triSurfaceMesh
)


    From function static Foam::autoPtr<Foam::sampledSet> Foam::sampledSet::New(const Foam::word&, const Foam::polyMesh&, const Foam::meshSearch&, const Foam::dictionary&)
    in file sampledSet/sampledSet/sampledSet.C at line 176.

Also, this is my sampleDict file

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM Extend Project: Open Source CFD        |
|  \\    /  O peration    | Version:  1.6-ext                              |
|  \\  /    A nd          | Web:      www.extend-project.de                |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      sampleDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

type sets;
libs ("libsampling.so");
writeControl    adjustableRunTime;
writeInterval  0.2;

setFormat csv;

surfaceFormat vtk;

interpolationScheme cellPoint;

fields
(
    T
);

sets
(
    Centerline
    {
        type        cloud;
        axis    xyz;
        points  (
                (0.00005  0.0000005  0.00005)
(0.00005 0.00005  0.00005)
(0.00005 0.0000995  0.00005));
    }

);


surfaces ();



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

I`ve already tried to set a name to my sample using some curly braces, but it didn`t work.
Does anybody know what`s the issue here, or have any suggestion on how to solve it?
Thank you!!

kerim March 16, 2021 21:01

Hi,
Please use type points instead of type cloud;.

I had the same problem, when used type points in openFoam7.


All the best,
Kerim

spegarser March 17, 2021 13:32

Thanks for your reply kerim!!
I tried your suggestion but i get this error now:
Code:

--> FOAM FATAL IO ERROR:
keyword ordered is undefined in dictionary "controlDict/functions/sampleDict/sets"

file: controlDict/functions/sampleDict/sets from line 10 to line 10.

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

Do you have any suggestion about this one?
Thank you!

nukecrafts July 21, 2021 05:05

I have the same problem. Did anyone solved it?


All times are GMT -4. The time now is 01:06.