CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   MPI implementation of OpenFOAM (https://www.cfd-online.com/Forums/openfoam/81448-mpi-implementation-openfoam.html)

Jamshidi October 27, 2010 06:47

MPI implementation of OpenFOAM
 
I need some information about MPI implementation of openFOAM. I can run openFOAM in parallel but I want to know how does it work.

Any help is appreciated.

aut_iut October 27, 2010 07:06

Have you seen available tutorials yet?
Take a look at the wingMotion tutorial in pimpleDyMFoam directory.
regards,
Rasoul

nimasam October 27, 2010 08:27

look at user guide page 65 & page 84
of course it shows only how to use decompose utility in openFoam not details, if u want to have more knowledge in general about parallel processing not what modified in openFoam, you can search for key words MPI , openMP or domain decomposition

Jamshidi October 30, 2010 14:22

Thanks.

I could find some clues in "Pstream.C" by searching MPI functions in "src" folder. I have also understand that "argList" which process argument will call "init" method of "Pstream" Class. But I don't know at the end how information are gather together to reach the final answer. I should explore code more.

olesen October 31, 2010 10:33

Quote:

Originally Posted by Jamshidi (Post 281501)
Thanks.

I could find some clues in "Pstream.C" by searching MPI functions in "src" folder. I have also understand that "argList" which process argument will call "init" method of "Pstream" Class. But I don't know at the end how information are gather together to reach the final answer. I should explore code more.

You should look for OpenFOAM source that uses 'scatter'/'gather' and 'reduce'. This should help you get started the most (I think).

Jamshidi November 5, 2010 14:39

I have understand how OpenFOAM is parallelized with mpi completely. If some one else knows this implementation, let me know if he thinks I can parallelize it with openmp in the same way.

chegdan June 23, 2011 21:56

Quote:

Originally Posted by Jamshidi (Post 282374)
I have understand how OpenFOAM is parallelized with mpi completely. If some one else knows this implementation, let me know if he thinks I can parallelize it with openmp in the same way.

Jamshidi,

Where did you start? I'm curious as to how OF does this as well. Especially how OF solves the decomposed domains in parallel and passes info back and forth. Have you written this in a thesis or on the wiki somewhere? Let me know.

Dan

bongbongxanh June 25, 2011 09:19

Quote:

Originally Posted by Jamshidi (Post 282374)
I have understand how OpenFOAM is parallelized with mpi completely. If some one else knows this implementation, let me know if he thinks I can parallelize it with openmp in the same way.

Wow... an awesome work you've done !!! it's very very kind of you if you can share it with us. :)


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