CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Access mesh data/fluid properties in parallel computing (https://www.cfd-online.com/Forums/openfoam-pre-processing/231650-access-mesh-data-fluid-properties-parallel-computing.html)

chenu November 12, 2020 20:01

Access mesh data/fluid properties in parallel computing
 
Hello,
I try run my case by parallel computing in OpenFOAM. Velocity of some cells will be specified in my case. For example:
I have 10 mesh cells, 0 1 2 3 4 5 6 7 8 9 and I divide it into 2 region
region 1 contains 0 1 2 3 4 and 5 6 7 8 9 belong to region 2
In each time step I have to read velocity of cell 1 and cell 7 and specify a new value for them.
My question is, does "scatter/gather" achieve my purpose?
And my second question is: Is mesh data also decomposed? Could I access mesh data like serial computing?

Thank you and I will appreciate if you could provide me some useful information or literature.

olesen November 13, 2020 08:43

The mesh is decomposed. So each processor has local cell numbers starting at zero.
I think you will need more help than you can reasonably expect on via the forum, since there are many details.

chenu November 24, 2020 20:04

Hello,
Thank you for your reply. I have found some interesting example and I will try to figure out.


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