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

How to get global cell index in parallel computation

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By klausb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2024, 03:33
Post How to get global cell index in parallel computation
  #1
New Member
 
zzt
Join Date: Dec 2021
Posts: 7
Rep Power: 5
binnnnn is on a distinguished road
I am writing my own solvers. I have encountered some probelms in parallel computation.

1. How to get global cell index in parallel computation?

2. How to convert between global cell index and local cell index?

3. When doing some computations in cells, should I use global cell index or local cell index?

Could someone give some advice? The available methods I found are outdated
binnnnn is offline   Reply With Quote

Old   October 13, 2024, 16:12
Default
  #2
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
1. How to get global cell index in parallel computation?
2. How to convert between global cell index and local cell index?

see:
https://www.openfoam.com/documentati...x.html#details

examples:

https://github.com/mattijsjanssens/m.../amgclSolver.C

Question about globalindex

3. When doing some computations in cells, should I use global cell index or local cell index?

In general OpenFOAM uses local indices, the global index may be required e.g. when linking OpenFOAM to external libraries.
binnnnn likes this.
klausb is offline   Reply With Quote

Reply

Tags
global index, local index, parallel computation


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 6, 2023 00:48
Fluent UDF wrong number of cells in parallel - correct in serial dralexpe Fluent UDF and Scheme Programming 7 May 17, 2018 09:26
Doubt about parallel processing vishwesh OpenFOAM Programming & Development 0 November 10, 2017 07:20
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 15:06
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


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