CFD Online Discussion Forums

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

samiam1000 April 11, 2012 07: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 08:17

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

Martin

vishal_s August 23, 2013 03:55

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

sivakumar August 23, 2013 09:39

hi just type topoSet


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