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

How to communicate std::vector<> across processor boundaries

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2014, 09:10
Question How to communicate std::vector<> across processor boundaries
  #1
New Member
 
Salman Arshad
Join Date: May 2014
Posts: 4
Rep Power: 12
saloo is on a distinguished road
Hello,

I am running a solver in parallel in OpenFOAM. in this solver I compiled the subgrid combustion model (which is not written in OpenFOAM and uses standard C++ library) with OpenFOAM.
On the faces between processor boundaries I want to read and make a local copy of std::vector<double> (contained in the subgrid combustion model on other processor). How can I do that?

Any help is highly appreciated.Thanks a lot
saloo is offline   Reply With Quote

Old   July 23, 2014, 13:36
Default std::vector<double>
  #2
Senior Member
 
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21
Fransje will become famous soon enough
Hi there Saloo,

Well, I saw your PM message, but it wasn't very clear what you are trying to do.

First of all, I recommend you try to convert your data type to a standard OpenFOAM type, to make things easier.

Then, if what you are trying to do is access/store your data on many processors, you can try to access the global object database as explained here. Look a bit lower in the post, I think I explained some other things there too.

You can also find more information about inter-processor communication here.

And a short intro to the reduce operation.

You might also want to look through the posts I've made, I might have skipped a few here which could be important for you. Come back to me once you've done that.

Good luck!
Fransje is offline   Reply With Quote

Old   March 2, 2016, 09:29
Default Find the duplicate points on different processor boundaries
  #3
New Member
 
Lu ZHOU
Join Date: Jul 2014
Location: Lyon, France
Posts: 12
Rep Power: 12
lzhou is on a distinguished road
Hello,

Sorry for using this thread to ask a related question. Given a point P on a processor boundary (say processor1to2), is it possible to find the information about the duplicated point of this point P on the other processor boundary (which is procssor2to1) ? Is the order of points and faces the same on these two processor boundaries ?

I am working on dynamic mesh moving in parallel and I have to make sure that the displacements of the duplicated points on different processor boundaries are the same in order to avoid the face match problems. Thanks for any help !

Best regards!

Lu ZHOU
lzhou is offline   Reply With Quote

Reply

Tags
parallel computing


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
Fluid Regions donot communicate via "Attach" Boundaries sdwijeya STAR-CD 0 August 28, 2009 14:26


All times are GMT -4. The time now is 05:44.