|
[Sponsors] |
July 16, 2013, 15:08 |
Issues running custom code in parallel
|
#1 |
New Member
Scott Ripplinger
Join Date: Nov 2012
Posts: 14
Rep Power: 14 |
I am working on a solver that I've developed using the solidParticle class as a base. I've gotten the code to run properly in serial, but when I try running it in parallel it gets stuck. I've narrowed it down to where a interpolationCellPoint<vector> is declared. While I have modified the code some, this would analogous to line 79 of solidParticleCloud.C (I have lines 78 and 80 commented out). Any ideas of why the code would get stuck here when running in parallel?
|
|
October 15, 2013, 07:11 |
|
#2 | |
Member
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14 |
Hi Scott,
Sorry I cannot contribute something to your question, but I've got a code based on solidParticle as well. When I decompose a case, particles are divided onto different processors and 'positions' under /processor*/0/lagrangian/defaultCloud/ are written correctly, but there is FOAM Warning: Quote:
Just wondering have you got some progress on your parallel issue? I'd appreciate it if you could show some clue on my case. Thank you very much in advance. Sophie |
||
October 15, 2013, 09:25 |
|
#3 |
New Member
Scott Ripplinger
Join Date: Nov 2012
Posts: 14
Rep Power: 14 |
Hey, Sophie.
It's been awhile, so I don't really remember all the details of what my problem was at that point. I do know that I ended up writing a script that would start my simulation again whenever it crashed, and that seemed to get it running. As for your problem, I'm not entirely sure what the answer would be. What version of OpenFOAM are you running? Are you starting your simulation with an existing field of particles? Are you sure you have MPI installed and set up with OpenFOAM correctly? If I had to guess I'd say that decomposePar doesn't seem to be handling lagrangian distribution correctly, but I can't really tell for sure with the information I've got. |
|
October 18, 2013, 15:41 |
|
#4 |
Member
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14 |
Hi Scott,
Thank you very much for your response. Sorry for the late reply. I'm using OF 1.7.1. The standard solvers run in parallel without problem. I have particles existing from the beginning of the simulation. About the variables introduced with the particle phase, do you think special treatment are needed to get them passed and run in parallel even after I get decomposePar work correctly? I assumed it could run in parallel without new implementation as the solidParticle library is already integrated in OpenFOAM. But now I think it may be necessary. Thanks, Sophie |
|
October 23, 2013, 07:17 |
|
#5 | ||
Member
Join Date: Nov 2012
Location: Liverpool, UK
Posts: 51
Rep Power: 14 |
Hi Scott,
Sorry to be a pain, but may I ask you some questions about the decomposition of particle field please? 1. As for the input files, I only got d, U, positions in the directory of 0/lagrangian/defaultCloud. After looking at CloudIO.C, I'm wondering do I have to prepare 0/uniform/lagrangian/defaultCloud/cloudProperties? If cloudProperties is essential for a successful decomposition, what is the right format? I tried some format, but they didn't help. 2. My 0/lagrangian/defaultCloud/positions is posted here, Quote:
Thanks a lot in advance. Cheers, Sophie Quote:
|
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem running OpenFOAM 2.2.x in parallel in Centos 5 | lvalvare | OpenFOAM Running, Solving & CFD | 33 | December 9, 2020 09:44 |
Case running in serial, but Parallel run gives error | atmcfd | OpenFOAM Running, Solving & CFD | 18 | March 26, 2016 13:40 |
Problem in Running OpenFoam in Parallel | himanshu28 | OpenFOAM Running, Solving & CFD | 1 | July 11, 2013 10:19 |
How to make code run in parallel? | cwang5 | OpenFOAM Programming & Development | 1 | May 30, 2011 05:47 |
Adding Custom Tab in FLUENT using Scheme Code | dhimans | Fluent UDF and Scheme Programming | 0 | September 14, 2009 16:10 |