|
[Sponsors] |
May 31, 2011, 15:38 |
Openfoam optimization question
|
#1 |
Member
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15 |
Hello folks,
I've been doing some simulations in openfoam using the rhoSimpleFoam solver. The geometry is a convergent-divergent nozzle with approximate dimensions of 20 mm by 4 mm by 2 mm. Air is blown in through the inlet on one side and there is an outlet on the other side and I observe the results. The issue I am having is that with a mesh of a million cells, it takes four days for my simulation to give good results. That's far too long. I know that the same simulation takes 8 hours in solidWorks using 8 processors. I am also using 8 processors using the 'simple' decomposition scheme. Can anybody think of any optimizations I can make? Or Is there a general consensus that OF is slower than solidWorks or other CFD packages? Any help of comments would be appreciated. Please let me know if you would like me to post additional information. Thank you! -Ammar. |
|
May 31, 2011, 16:17 |
|
#2 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Four days!!!
You are doing something seriously wrong. First off, I would decompose it with scotch. Even 8 hours sounds a bit long to me, but then again I dont know your hardware. |
|
May 31, 2011, 17:18 |
Thank you!
|
#3 |
Member
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15 |
Dear Niklas,
Thanks for saying that, It gives me a lot more hope. I'm using the mac port of openfoam (OF 1.7.x) so I'm not quite sure how I'll get the scotch decomposition scheme running here, but I think I should be able to figure it out. What I just did that was a little eye opening was that I increased my relaxation factors by a lot and it gave me an improvement by a factor of ~ 300!!! Now I just have to figure out how to chose optimal relaxation factors for different mesh sizes. Any suggestions? Thanks again! -Ammar. |
|
June 1, 2011, 09:36 |
|
#4 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
depends on scheme, flow and mesh quality how aggressive you can be.
I prefer slow convergence before the oscillating behavior you get with too high under-relaxation. I usally use p 0.1 and the rest 0.3 check the convergence history with foamLog logFile gnuplot set logscale y plot "logs/p_0" using 1:2 with lines N |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Optimization Sensitivity | rohtav | OpenFOAM | 1 | June 16, 2010 08:46 |
[mesh manipulation] createPatch / cyclicGgi / OpenFoam 1.5-dev | OFU | OpenFOAM Meshing & Mesh Conversion | 0 | June 16, 2010 05:36 |
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 | linnemann | OpenFOAM Installation | 7 | July 30, 2009 04:14 |
Questions for the bdivb function in OpenFOAM | gkang | OpenFOAM Running, Solving & CFD | 3 | May 13, 2006 12:11 |
OpenFOAM Training and Workshop Zagreb 2628Jan2006 | hjasak | OpenFOAM | 1 | February 2, 2006 22:07 |