CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   topoSetDict error (https://www.cfd-online.com/Forums/openfoam-pre-processing/175674-toposetdict-error.html)

JohnJohn8 August 3, 2016 04:38

topoSetDict error
 
Hello all,

I am a new user of openFoam and I try to construct conjugate heat transfer problems. I have to set different topology with topoSetDict but I get the error:

"--> FOAM FATAL IO ERROR:
"ill defined primitiveEntry starting at keyword 'actions' on line 19 and ending at line 69"
file: /home/khoi/OpenFOAM/khoi-v3.0+/run/cht_firsttry/system/topoSetDict at line 69.
From function static void Foam::IOerror::SafeFatalIOError(const char*, const char*, int, const Foam::IOstream&, const Foam::string&)
in file lnInclude/IOerror.C at line 131.
"

I have included the topoSetDict file, could some please help me?

Thank you in advance
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  v3.0+                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
    // patty
    {
        name    pattyCellSet;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (20 20 0)(30 30 10);
        }
    }
    {
        name    patty;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set pattyCellSet;
        }
    }
 // surAir is all the other cells
    {
        name    surAirCellSet;
        type    cellSet;
        action  new;
        source  cellToCell;
        sourceInfo
        {
            set pattyCellSet;
        }
    }
    {
        name    surAirCellSet;
        type    cellSet;
        action  invert;
    }
    {
        name    surAir;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set surAirCellSet;
        }
    }
);
// ************************************************************************* //


JohnJohn8 August 3, 2016 05:20

Hello all,

I fixed the problem above, but I got a new one. I can run the toposetDict, then when I do splitMeshregions, OF only detects 1 region. The situation as it should be is a patty region in a column of surrounding air.

Can someone help me please?

Thanks in advance

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  v3.0+                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions
(
   
    // patty
    {
        name    pattyCellSet;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {
            box (20 20 0 )(30 30 10);
        }
    }
    {
        name    patty;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set pattyCellSet;
        }
    }
 
    // surAir is all the other cells
 
    {
        name    surAirCellSet;
        type    cellSet;
        action  new;
        source  cellToCell;
        sourceInfo
        {
            set pattyCellSet;
        }
    }
 
    {
        name    surAirCellSet;
        type    cellSet;
        action  invert;
    }
    {
        name    surAir;
        type    cellZoneSet;
        action  new;
        source  setToCellZone;
        sourceInfo
        {
            set surAirCellSet;
        }
    }
);



All times are GMT -4. The time now is 20:37.