CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Writing parallel code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2005, 12:41
Default Hi, I've written my own me
  #1
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
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
hartinger is offline   Reply With Quote

Old   August 9, 2005, 14:07
Default Since you only are moving poin
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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 ;-)
mattijs is offline   Reply With Quote

Old   August 9, 2005, 14:20
Default thanks, i have a look on motio
  #3
Senior Member
 
Markus Hartinger
Join Date: Mar 2009
Posts: 102
Rep Power: 17
hartinger is on a distinguished road
thanks, i have a look on motionSolver
markus
hartinger is offline   Reply With Quote

Old   March 11, 2006, 07:30
Default Dear all is it possible to ru
  #4
New Member
 
saeid kheradmand
Join Date: Mar 2009
Posts: 13
Rep Power: 17
skherad is on a distinguished road
Dear all
is it possible to run engine cases(geometry deformation ) in parallel?
thank you for your time
skherad is offline   Reply With Quote

Old   March 13, 2006, 13:07
Default The geometry deformation runs
  #5
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmerfriendly code writing how do you do that kar OpenFOAM Running, Solving & CFD 5 January 25, 2008 11:33
Writing a CFD code Ernesto FLUENT 2 March 27, 2007 17:38
writing a batch for a parallel run M CFX 4 December 15, 2005 00:09
writing a cfd code kelvin Main CFD Forum 13 October 13, 2005 05:41
Code writing Frank Scheuerpflug Main CFD Forum 15 May 19, 2005 06:02


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