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

Openfoam optimization question

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2011, 14:38
Default Openfoam optimization question
  #1
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
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.
atareen64 is offline   Reply With Quote

Old   May 31, 2011, 15:17
Default
  #2
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
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.
niklas is offline   Reply With Quote

Old   May 31, 2011, 16:18
Default Thank you!
  #3
Member
 
Ammar Tareen
Join Date: Jan 2011
Location: Boston University
Posts: 61
Rep Power: 15
atareen64 is on a distinguished road
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.
atareen64 is offline   Reply With Quote

Old   June 1, 2011, 08:36
Default
  #4
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29
niklas will become famous soon enoughniklas will become famous soon enough
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
niklas 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
Optimization Sensitivity rohtav OpenFOAM 1 June 16, 2010 07:46
[mesh manipulation] createPatch / cyclicGgi / OpenFoam 1.5-dev OFU OpenFOAM Meshing & Mesh Conversion 0 June 16, 2010 04:36
OpenFOAM 1.5.x package - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 7 July 30, 2009 03:14
Questions for the bdivb function in OpenFOAM gkang OpenFOAM Running, Solving & CFD 3 May 13, 2006 11:11
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 21:07


All times are GMT -4. The time now is 18:55.