|
[Sponsors] |
Please help me think of a clever way for parallel looping in OpenFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2017, 12:22 |
Please help me think of a clever way for parallel looping in OpenFoam
|
#1 |
Member
Victor Koppejan
Join Date: May 2015
Posts: 40
Rep Power: 10 |
Hi everyone,
The problem in short: point cloud with Np particles -> take a single particles center coordinates -> add 28 sub-volume points per particle (i.e. r_test = r_center + r_subvolpoint), where r is a (x,y,z) coordinate. sub-volume point -> findCell(subvolpoint) (using one of the many options) ->cellI, where cellI is the outcome of the findCell algorithm * outcome 1, cellI >= 0 (awesome, no problem, do stuff on partition owned by proc) * outcome 2, cellI < 0 (oops, see below) Let's say I gather all outcomes 2 into a array/vector/list or array for each proc, how can I reduce these among all procs (make a single vector/list/array out of the coordinates), do another findCell loop in parallel (preferably) where each procs only acts if cellI > 0. Thanks in advance, Victor p.s. The basic idea behind this thing is to minimize any reduce operations since they can be slow on multiple nodes on a cluster. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 11:58 |
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | January 5, 2016 03:18 |
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 1 | November 7, 2015 15:16 |
OpenFOAM Foundation Releases OpenFOAM v2.3.0 | opencfd | OpenFOAM Announcements from OpenFOAM Foundation | 3 | December 23, 2014 03:43 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 09:04 |