CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Writing parallel code (http://www.cfd-online.com/Forums/openfoam-solving/60285-writing-parallel-code.html)

hartinger August 9, 2005 13:41

Hi, I've written my own me
 
Hi,

I've written my own mesh deformation routine and want to run it in parallel, but doesn't work yet. I have no experience in that either. Could you give me a hint, where to start. And probably list some DOs and DONTs.

Thank you
Markus

mattijs August 9, 2005 15:07

Since you only are moving poin
 
Since you only are moving points (and not changing topology) you only have to make sure the point positions on processor patches are synchronized.

This is all done for you already in the motionSolver (see e.g. icoFoamAutoMotion.C) which determines internal point positions given boundary conditions.

If you want to do it yourself:
a. there are points on the processor patches shared between two processors only.
b. there are points shared between more than two processors.

a. is handled by sending one half to the other half and averaging so that both halves have the same value

b. is usually handled by sending all these coordinates to the master which determines a single value for all and sends it back.

Use motionSolver is my advice ;-)

hartinger August 9, 2005 15:20

thanks, i have a look on motio
 
thanks, i have a look on motionSolver
markus

skherad March 11, 2006 08:30

Dear all is it possible to ru
 
Dear all
is it possible to run engine cases(geometry deformation ) in parallel?
thank you for your time

mattijs March 13, 2006 14:07

The geometry deformation runs
 
The geometry deformation runs in parallel. There are some parallellizations problems though with other aspects of engine cases (notably injector specification). Have a search to find that one.


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