|
[Sponsors] |
December 2, 2016, 17:51 |
Copy the data vector from a reference cell
|
#1 |
Member
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13 |
Hey!
I would like to create a reference cell in my domain and then would like to copy a data vector, which values change in time, from the reference cell to large number of cells elsewhere in the domain. Now I'm just wondering how this should be implemented in parallel domain decomposed case. Can all the processors efficiently access the data if I just inquire the data vector from the reference cell when looping through cells in my solver? So I would like to do something like this and be sure it works in parallel efficiently? Code:
forAll(cells,i) { if(condition=true) { dataVectors[i]=dataVectors[refCell]; } else computeNewDataVector; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Setting the height of the stream in the free channel | kevinmccartin | CFX | 12 | October 13, 2022 22:43 |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 22:58 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |