Do the cell IDs of a domain change on the fly?
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. |
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++ -*----------------------------------*\ |
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? |
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 |
All times are GMT -4. The time now is 09:34. |