CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

topoSetDict

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By latvietis

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2012, 07:49
Default topoSetDict
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   April 11, 2012, 08:17
Default
  #2
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 15
latvietis is on a distinguished road
The error means it needs 'name' instead of 'set'.

Martin
wyldckat and Owais Shabbir like this.
latvietis is offline   Reply With Quote

Old   August 23, 2013, 03:55
Default
  #3
Member
 
vishal
Join Date: Mar 2013
Posts: 73
Rep Power: 13
vishal_s is on a distinguished road
Hello Samuele Z, can you kindly tell me what is the command to run the "toposet dict file"??
vishal_s is offline   Reply With Quote

Old   August 23, 2013, 09:39
Default
  #4
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
hi just type topoSet
sivakumar is offline   Reply With Quote

Old   February 1, 2018, 08:11
Default toposet
  #5
New Member
 
mohan
Join Date: Jun 2011
Posts: 1
Rep Power: 0
mohan.labade is on a distinguished road
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
mohan.labade is offline   Reply With Quote

Old   July 23, 2019, 12:45
Default
  #6
Member
 
Owais Shabbir
Join Date: May 2019
Posts: 48
Rep Power: 7
Owais Shabbir is on a distinguished road
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
Owais Shabbir is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
topoSetDict in simpleFOAM Goutam OpenFOAM Running, Solving & CFD 2 August 13, 2012 08:47


All times are GMT -4. The time now is 09:51.