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

parallel custom made code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 9, 2016, 14:51
Default parallel custom made code
  #1
Member
 
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 14
Danath is on a distinguished road
Hello !

i write a routine in paramagnetic force and i want to parallel the code.

i use icouncoupled combined with icofoam to simulate the motion of particles.

It seems that i can't simulate many particles because of the time that dipole dipole forces are solved (74 sec 300 particles timestep = 1e-9)

Is there any tutorial ?
Danath is offline   Reply With Quote

Old   June 13, 2016, 18:45
Default
  #2
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Does your routine operates in a cell at a time, or does it involve many cells in a single calculation?
t.oliveira is offline   Reply With Quote

Old   April 25, 2017, 06:14
Default
  #3
Member
 
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 14
Danath is on a distinguished road
Quote:
Originally Posted by t.oliveira View Post
Does your routine operates in a cell at a time, or does it involve many cells in a single calculation?
Hello and thanks for the reply

Many cells in a single calculation
Danath is offline   Reply With Quote

Old   April 25, 2017, 07:32
Default
  #4
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
If you write call your routine from inside a pre-existing loop such as icoFoam's "while (runTime.loop()){...}" it should normally inherit the parallelization that is already implemented in OpenFOAM. By this I mean that your routine will be called simultaneously for each subdomain of your mesh. Isn't it the case for you? Do you want to parallelize it further?
t.oliveira 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
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
How to run custom solvers in parallel (CLUSTER) ? iy-a OpenFOAM Running, Solving & CFD 0 August 3, 2015 06:45
2D code in slip regim of parallel plates RamRam Main CFD Forum 0 November 20, 2011 04:43
Problems with MFIX code and Parallel Processing. Fernando Pio Main CFD Forum 4 August 29, 2006 14:33
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


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