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

Inconsistency of globalIndex (Possible bug??)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 23, 2019, 09:42
Default Inconsistency of globalIndex (Possible bug??)
  #1
Member
 
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10
ashishmagar600 is on a distinguished road
Hello,

I am trying to generate a list of global cellIDs for a cellSet using local cellIDs of a decomposed case.

I have tested my code for two cases; cavity and 1D straight channel.

Code:
        globalIndex globalNumbering(mesh.nCells());
        word cellSetName = "b1";
        cellSet c1(mesh, cellSetName);
        labelList channelID = c1.toc();
        labelList gloProc(channelID.size());
        labelList locProc(channelID.size());

        for(int d=0; d<channelID.size(); d++)
        {
                const label globalCId = globalNumbering.toGlobal(channelID[d]);
                gloProc[d] = globalCId;
                const label localCId = globalNumbering.toLocal(globalCId);
                locProc[d] = localCId;
        }

        Pout << "Local Lists on all Procs " << locProc << nl;
        Pout << "Global Lists on all Procs " << gloProc << nl;
Here, the global cellIDs generated from local do match with non-decomposed cellIds (i.e, in constant/polyMesh/sets/) for only the channel case.

They do not match in any way for the cavity case..!!

Am I doing something wrong, or this might be a possible bug.

Any suggestions..??

Thanks.

Ps: I am using OFv1806
ashishmagar600 is offline   Reply With Quote

Old   August 29, 2019, 11:07
Default
  #2
Member
 
Ashish Magar
Join Date: Jul 2016
Location: Mumbai, India
Posts: 81
Rep Power: 10
ashishmagar600 is on a distinguished road
Anyone wanting to know further updates, here they are:
https://develop.openfoam.com/Develop...us/issues/1412
ashishmagar600 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
mapFields major bug alchem OpenFOAM Bugs 14 September 15, 2023 13:48
Reporting a bug in Allrun script on wingMotion case i.sabahi OpenFOAM Bugs 0 June 10, 2018 10:00
Bug in Workbench CFX Pierre1 CFX 6 August 2, 2017 01:18
dieselEngineFoam bug - OpenFOAM-1.6-ext novakm OpenFOAM Bugs 1 December 5, 2013 14:18
Serious bug in LES interface fs82 OpenFOAM Bugs 21 November 16, 2009 09:15


All times are GMT -4. The time now is 22:58.