CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   topoSetDict (https://www.cfd-online.com/Forums/openfoam/99767-toposetdict.html)

samiam1000 April 11, 2012 06:49

topoSetDict
 
Dear All,

I am working with topoSet. I have a cellZone file (generated with the fluent3DMeshToFoam) and I have this topoSetDict file:
Code:

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

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

actions
(
    {
        name    door_and_roof;
        type    cellZoneSet;
        action  new;
        source  zoneToCell;
        sourceInfo
        {
            set door;          // name of cellSet
        }
    }

    {
        name    door_and_roof;
        type    cellZoneSet;
        action  add;
        source  zoneToCell;
        sourceInfo
        {
            set roof;          // name of cellSet
        }
    }

    {
        name    internal_air;
        type    cellZoneSet;
        action  new;
        source  zoneToCell;
        sourceInfo
        {
            set internal_air;          // name of cellSet
        }
    }

    {
        name    external_air;
        type    cellZoneSet;
        action  new;
        source  zoneToCell;
        sourceInfo
        {
            set external_air;          // name of cellSet
        }
    }

    {
        name    external_air;
        type    cellZoneSet;
        action  add;
        source  zoneToCell;
        sourceInfo
        {
            set infinite_air;          // name of cellSet
        }
    }

);

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

When I try to give the command
Code:

topoSet
I get this error:
Code:

lab@lab-laptop:~/Documenti/cases_OF/OF_case11_test$ topoSet
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : topoSet
Date  : Apr 11 2012
Time  : 12:43:34
Host  : "lab-laptop"
PID    : 6253
Case  : /home/lab/Documenti/cases_OF/OF_case11_test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create polyMesh for time = 0

Reading topoSetDict

Time = 0
    mesh not changed.
Created set door_and_roof
    Applying source zoneToCell


--> FOAM FATAL IO ERROR:
keyword name is undefined in dictionary "/home/lab/Documenti/cases_OF/OF_case11_test/system/topoSetDict::actions::sourceInfo"

file: /home/lab/Documenti/cases_OF/OF_case11_test/system/topoSetDict::actions::sourceInfo from line 27 to line 27.

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

FOAM exiting

lab@lab-laptop:~/Documenti/cases_OF/OF_case11_test$

What's wrong?

Thanks for any help,

Samuele

latvietis April 11, 2012 07:17

The error means it needs 'name' instead of 'set'.

Martin

vishal_s August 23, 2013 02:55

Hello Samuele Z, can you kindly tell me what is the command to run the "toposet dict file"??

sivakumar August 23, 2013 08:39

hi just type topoSet

mohan.labade February 1, 2018 07:11

toposet
 
Hi Samuele

Can you find any solution? Only changing name it will work or not?. I am also having same issue.


Thanks for help

Mohan

Owais Shabbir July 23, 2019 11:45

Hi,


I hope you guys have found your answer. If yes please share.


to elaborate more on what Martin said, the problem is the keyword 'set', I checked the topoSetDict file at github and it should be 'name'.

When using zoneToCell the sourceInfo entity requires not to provide set but rather name of the zone.

https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict


Hope it helped anyone. If you had found an alternate solutions share as well.
If you think I am incorrect please mention it too. =)

OS


All times are GMT -4. The time now is 19:40.