|
[Sponsors] | |||||
Do the cell IDs of a domain change on the fly? |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 15 ![]() |
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. |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Roman Thiele
Join Date: Aug 2009
Location: Eindhoven, NL
Posts: 374
Rep Power: 22 ![]() |
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
...
)
__________________
~roman |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 15 ![]() |
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? |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
|
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 |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 02:30 |
| Help Me, what's the Cell Above any given cell in 3D. | gomane8 | Main CFD Forum | 3 | September 11, 2011 22:29 |
| moving grid with domain size change | Hu | Main CFD Forum | 5 | May 13, 2004 22:14 |