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

Processor shared point operation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 9, 2021, 12:23
Default Processor shared point operation
  #1
Member
 
Jun
Join Date: Nov 2015
Posts: 57
Rep Power: 10
mykkujinu2201 is on a distinguished road
Dear Forums,

Currently, I am trying to sum distance between mesh vertex and face center of nearby faces.

For parallel computing, only points and faces within processor are considered.
Therefore, the distance between point at processor boundaries and the nearby faces at the other processor can not be considered.

If the summed value of points at processor boundaries can be exchange with the value of corresponding points in the other processor, it seems easy to solve.
However, I do not how to do it practically.

If you have any idea, it would be helpful.

Thank you in advance.

Best,
Jun
mykkujinu2201 is offline   Reply With Quote

Old   July 11, 2021, 21:01
Default It is solved.
  #2
Member
 
Jun
Join Date: Nov 2015
Posts: 57
Rep Power: 10
mykkujinu2201 is on a distinguished road
Dear Forums,

Using syncTools, it is solved.

Code:
syncTools::syncPointList (mesh, pointField, plusEqOp<scalar>(), 0.0);
It is not necessary for the values of shared points to be "literally" exchanged.
I only need to sum operation.

If it is not the proper answer, please let me know.

Best,
Jun
mykkujinu2201 is offline   Reply With Quote

Reply


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
solids4Foam + sixDoFRigidBodyDisplacement Michael@UW OpenFOAM CC Toolkits for Fluid-Structure Interaction 30 January 17, 2024 09:00
The CoP Does not exist: Validating Aerodynamic forces through a "line of action" ds4719 Main CFD Forum 14 February 18, 2022 18:05
CFD-post: defining (or projecting) point on surface bongbang CFX 1 April 1, 2015 12:16
matching variable data with grid point data anfho OpenFOAM Programming & Development 0 May 6, 2011 15:28
Floating Point Operation Count and Scalability mchurchf OpenFOAM 0 June 23, 2010 12:56


All times are GMT -4. The time now is 20:43.