CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Do the cell IDs of a domain change on the fly?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By romant

Reply
 
LinkBack Thread Tools Display Modes
Old   August 14, 2013, 04:26
Default Do the cell IDs of a domain change on the fly?
  #1
Member
 
Join Date: Aug 2012
Posts: 74
Rep Power: 6
HakikiCanakkaleli is on a distinguished road
Hi

== 1 ==

As the title indicates, I wonder whether the cell IDs of a computational domain do change or not while an OpenFOAM case is running on a single processor?

== 2 ==

* on multiple processors whilst a parallel job is executed?

Many thanks for your help.
HakikiCanakkaleli is offline   Reply With Quote

Old   August 15, 2013, 04:38
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 366
Rep Power: 13
romant is on a distinguished road
They should not change while the case is running, as they are the ID's which you can read in the different file you see in constant/polymesh.

The ID of each cell/point/face ... is the line number which you can count from the beginning of each of these field, for example this face file

Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.2.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       faceList;
    location    "constant/polyMesh";
    object      faces;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


268989
(
4(1 9 73 65)  // ID 1
4(8 72 73 9)  // ID 2
4(64 65 73 72) // ID 3
4(0 64 72 8)    // ID 4
...
)
HakikiCanakkaleli likes this.
__________________
~roman
romant is offline   Reply With Quote

Old   August 15, 2013, 04:59
Default
  #3
Member
 
Join Date: Aug 2012
Posts: 74
Rep Power: 6
HakikiCanakkaleli is on a distinguished road
My personal experience suggests that:

== 1 ==

Once a case starts running -on a single processor or on many processors-, the cell IDs remain the same whilst constant/polyMesh files do not change. So, the cell IDs do not change on the fly.

== 2 ==

However, when a computational domain is decomposed by decomposePar, the cell IDs are no longer the same with the case executed by a single processor. Namely, each processor re-numbers the cells that it contains starting from 0.

Many thanks.

== 3 ==

But all these arise a new issue to me.

Is there any parameter -like cell coordinate, cell ID or whatsoever-, that I can flag a certain cell no matter what happens -like decomposing the computational domain or rotating region?

More precisely, is there any parameter that remains the same for cells no matter what happens so that I can easily identify this/these particular cell/cells?
HakikiCanakkaleli is offline   Reply With Quote

Old   August 15, 2013, 05:00
Default
  #4
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 585
Blog Entries: 5
Rep Power: 15
elvis will become famous soon enough
Hi,

you can use the command

renumberMesh

the command Renumbers the cell list in order to reduce the bandwidth, reading and renumbering all fields from all the time directories

http://www.openfoam.com/features/mesh-manipulation.php

usually the IDs do not change
elvis is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sliding mesh and multiple cell domain simulations Akash C SU2 Shape Design 3 January 4, 2015 04:39
convergenceof natural convection prob. in cfx cpkewat CFX 15 January 31, 2014 07:29
injection problem Mark New FLUENT 0 August 4, 2013 01:30
Help Me, what's the Cell Above any given cell in 3D. gomane8 Main CFD Forum 3 September 11, 2011 21:29
moving grid with domain size change Hu Main CFD Forum 5 May 13, 2004 21:14


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