|
[Sponsors] |
Access patch points (on different processor) in parallel |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2011, 12:57 |
Access patch points (on different processor) in parallel
|
#1 |
Senior Member
Arne Stahlmann
Join Date: Nov 2009
Location: Hanover, Germany
Posts: 209
Rep Power: 17 |
Hi all,
I have made an implementation to modify the z values of my mesh points within my solver according to some distance function during runtime. This all works well in serial mode. Now I have to make the functionality working in parallel: I'm looping over all mesh points, and inside, I'm looping over the mesh points on a bottom boundary patch, like Code:
forAll (mesh.points(), pointi) { forAll(mesh.boundaryMesh()[patchi].localPoints(), dhPointi) { -> calculating some dependencies between pointi and dhPointi } } Within the calculation, the point to patch points dependencies are stored in a vector (std::vector<std::vector<std:air<label, double> > >) at the beginning of the simulation. During the simulation, all processors then have to have access to this vector (or at least to their 'part' containing their processor points). Unfortunately I'm not familiar with parallel processes, so I need your help in this case! Arne |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 15:33 |
How to probe all points on a patch? | strikeraj | OpenFOAM Running, Solving & CFD | 10 | April 24, 2012 13:45 |
mapFields : internal edges | Gearb0x | OpenFOAM Running, Solving & CFD | 3 | April 19, 2010 09:02 |
[blockMesh] BlockMeshmergePatchPairs | hjasak | OpenFOAM Meshing & Mesh Conversion | 11 | August 15, 2008 07:36 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |