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

Access to all cells of the mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2022, 18:33
Default Access to all cells of the mesh
  #1
New Member
 
Anvar Gilmanov
Join Date: Oct 2022
Posts: 2
Rep Power: 0
anvar is on a distinguished road
Dear OpenFormers,

Can someone here help me to figure out how to implement a loop over my entire mesh? When I do it for only one processor I can implement my code and print "Info" without any issues for any cells, but when I run the same case on multiprocessors I am able to make a loop only over a part of my mesh that is executed in one of the processors and hence some of the cells are not reachable to print "Info" I needed. How can I get all my mesh while running on multiprocessors?

Thanks,
Anvar
anvar is offline   Reply With Quote

Old   October 20, 2022, 04:29
Default
  #2
New Member
 
Martin
Join Date: Jul 2022
Posts: 16
Rep Power: 4
skaal is on a distinguished road
Info print only on process 0, use Pout instead. That one prints from all processes.
skaal is offline   Reply With Quote

Old   October 20, 2022, 11:24
Default
  #3
New Member
 
Anvar Gilmanov
Join Date: Oct 2022
Posts: 2
Rep Power: 0
anvar is on a distinguished road
Hi Martin,
Thanks a lot!
anvar is offline   Reply With Quote

Reply

Tags
multiprocessors, running


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
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 11:11
cellZone not taking all the cells inside rahulksoni OpenFOAM Running, Solving & CFD 6 January 25, 2019 01:11
[blockMesh] Create internal faces as patch in blockMesh m.delta68 OpenFOAM Meshing & Mesh Conversion 14 July 12, 2018 15:43
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 10:03


All times are GMT -4. The time now is 00:06.