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

loop over mesh points in parallel run

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2017, 10:10
Default loop over mesh points in parallel run
  #1
Senior Member
 
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,266
Blog Entries: 1
Rep Power: 24
nimasam is on a distinguished road
i would like to change the mesh points based on a function during run, the algorithm works fine in serial, but for parallel run, mesh.points() only returns the position of points in one processor. do you have any ideas, how to access to each processors mesh data?
__________________
My Personal Website (http://nimasamkhaniani.ir/)
Telegram channel (https://t.me/cfd_foam)
nimasam is offline   Reply With Quote

Old   October 30, 2017, 04:33
Default
  #2
Member
 
Jibran
Join Date: Oct 2012
Location: UK
Posts: 61
Blog Entries: 1
Rep Power: 14
Jibran is on a distinguished road
Quote:
Originally Posted by nimasam View Post
i would like to change the mesh points based on a function during run, the algorithm works fine in serial, but for parallel run, mesh.points() only returns the position of points in one processor. do you have any ideas, how to access to each processors mesh data?
Hi,

You can use the globalMeshData class to get this information. Specifically, I would recommend to have a look at the volPointInterpolation class where the member functions syncUntransformedData() and pushUntransformedData() use this information.
__________________
Jibran Haider
https://jibranhaider.com/
Jibran is offline   Reply With Quote

Reply

Tags
mesh data, mesh points, parallel, processor


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
[snappyHexMesh] Error snappyhexmesh - Multiple outside loops avinashjagdale OpenFOAM Meshing & Mesh Conversion 53 March 8, 2019 09:42
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 03:21
Run in parallel slow and cannot open the mesh in Paraview qjh888 OpenFOAM Running, Solving & CFD 0 July 13, 2016 04:55
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58


All times are GMT -4. The time now is 17:10.