|
[Sponsors] |
How to communicate std::vector<> across processor boundaries |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2014, 09:10 |
How to communicate std::vector<> across processor boundaries
|
#1 |
New Member
Salman Arshad
Join Date: May 2014
Posts: 4
Rep Power: 12 |
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 |
|
July 23, 2014, 13:36 |
std::vector<double>
|
#2 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
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! |
|
March 2, 2016, 09:29 |
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 |
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 |
|
Tags |
parallel computing |
|
|
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 |