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

Parallelization of user developed solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2015, 05:30
Default Parallelization of user developed solver
  #1
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,

I have a strange problem.

I compiled a transient solver (pimpleKinematicFoam) for particle based erosion from pmpleFoam ( http://www.tfd.chalmers.se/~hani/kur...ing_report.pdf ). It runs fine on a single processor but if i try to put it in parallel it just hangs after a few iterations. Doesn't diverge/ doesn't crash just hangs at "solving 3D cloud KinematicCloud" as shown in below figure..



I also get the duplicate entry error messages as shown below while running the solver. I dont know if this error is related to the problem or not.



Please let me know if anybody has any clue

Thank you very much

With regards,
Krishna
Ananthakrishnan is offline   Reply With Quote

Old   April 7, 2016, 11:36
Default
  #2
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10
C-L is on a distinguished road
Hello,

I am currently faced with exactly the same issue, although I can't get past that 'evolving kinematic cloud' on either my own DPMFoam solver OR the unaltered one. Have you found any solution to this?

I am modelling a cyclic BC pipe and the only way I can get the code to run in parallel is to split the mesh up in the (r,theta) directions. If I split in the z direction I get this error. Have you tried decomposing the mesh in a different way?
C-L is offline   Reply With Quote

Old   April 8, 2016, 00:19
Default
  #3
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Hi,

no. strictly speaking i couldnt solve the problem because i never really understood the problem completely.. Need to check the iterations in the for loop step by step and i dont have any means to do it at my end.
I went about it by running quite a few iterations in single processor and then decomposing the latest time.
Ananthakrishnan is offline   Reply With Quote

Old   April 8, 2016, 04:51
Default
  #4
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10
C-L is on a distinguished road
Hi,

Do you think this is a bug in the solver code or are we just setting up the problem wrong? I don't really have the time to dig around in the code so I think I will just use your solution and decompose the mesh at a later time step. Thanks for the quick reply!
C-L is offline   Reply With Quote

Old   April 8, 2016, 08:08
Default
  #5
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
Now that after you have also faced the same problem in a different situation, i am inclined to think the problem lies with parallel handling of new particles being created.
Ananthakrishnan is offline   Reply With Quote

Old   April 8, 2016, 08:15
Default
  #6
C-L
Member
 
Charlie Lloyd
Join Date: Feb 2016
Posts: 57
Rep Power: 10
C-L is on a distinguished road
Well I have just tried to run the solver on serial before decomposing and I am faced with the same problem .. I have even taken out the 'particle injection' from the constant/kinematicCloudProperties but it still stops at 'evolving kinematic cloud'

I have just double checked your log file and it turns out my code is freezing before solving any fluid equations where as yours manages a couple of time steps first?
C-L is offline   Reply With Quote

Old   April 8, 2016, 09:01
Default
  #7
Senior Member
 
Ananthakrishnan.A.S
Join Date: Feb 2012
Location: Mumbai (Bombay), India
Posts: 157
Rep Power: 16
Ananthakrishnan is on a distinguished road
Send a message via Skype™ to Ananthakrishnan
yes. mine went on for a couple of iterations before freezing.

So you are saying that even though its adding 0 parcels its not proceeding!!!
I really thought the problem was with the kinematic cloud!!!!

I have no idea whats happening..May be you can keep bringing down the complexity of the case to a point where it runs perfectly and then add on the requirements.
Ananthakrishnan is offline   Reply With Quote

Old   May 24, 2018, 22:36
Default
  #8
Senior Member
 
harshawardhank
Join Date: Mar 2014
Posts: 209
Rep Power: 13
harsha_kulkarni is on a distinguished road
Quote:
Originally Posted by Ananthakrishnan View Post
Hi,

I have a strange problem.

I compiled a transient solver (pimpleKinematicFoam) for particle based erosion from pmpleFoam ( http://www.tfd.chalmers.se/~hani/kur...ing_report.pdf ). It runs fine on a single processor but if i try to put it in parallel it just hangs after a few iterations. Doesn't diverge/ doesn't crash just hangs at "solving 3D cloud KinematicCloud" as shown in below figure..



I also get the duplicate entry error messages as shown below while running the solver. I dont know if this error is related to the problem or not.




Please let me know if anybody has any clue

Thank you very much

With regards,
Krishna
Have you tried the case given in the Document. The solver works for their geometry and
predict erosion rate.

But when I tried the solve it does not solve for erosion rate.
harsha_kulkarni 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
thobois class engineTopoChangerMesh error Peter_600 OpenFOAM 4 August 2, 2014 09:52
3d vof Smaras FLUENT 2 February 19, 2013 06:58
Getting too many iterations by velocity solving (aborting). Changing U - Solver? suitup OpenFOAM Running, Solving & CFD 0 January 20, 2010 07:45
Add user define monitor in CFX Solver Zaidun CFX 0 April 17, 2006 14:57
CFX new user, problem with solver and PRE settings Vijesh Joshi CFX 1 March 13, 2006 22:42


All times are GMT -4. The time now is 13:41.