|
[Sponsors] |
June 9, 2016, 15:51 |
parallel custom made code
|
#1 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
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 ? |
|
June 13, 2016, 19:45 |
|
#2 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Does your routine operates in a cell at a time, or does it involve many cells in a single calculation?
|
|
April 25, 2017, 07:14 |
|
#3 |
Member
Evangelos
Join Date: Sep 2011
Posts: 87
Rep Power: 15 |
||
April 25, 2017, 08:32 |
|
#4 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
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?
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 19:45 |
How to run custom solvers in parallel (CLUSTER) ? | iy-a | OpenFOAM Running, Solving & CFD | 0 | August 3, 2015 07:45 |
2D code in slip regim of parallel plates | RamRam | Main CFD Forum | 0 | November 20, 2011 05:43 |
Problems with MFIX code and Parallel Processing. | Fernando Pio | Main CFD Forum | 4 | August 29, 2006 15:33 |
Design Integration with CFD? | John C. Chien | Main CFD Forum | 19 | May 17, 2001 16:56 |