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

divergence handling

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2010, 07:25
Default divergence handling
  #1
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 20
niklas will become famous soon enoughniklas will become famous soon enough
Im working with ANSA and morphing and have written some scripts to do DOE's for geometry optimization using simpleFoam.
It works well...when it works.

There is a feature that I'd like to add though.
When simpleFoam diverges there is no way to tell at the moment.
There are alot of runs that just produces a number (pressure-drop) and for now
I am blindy trusting these number, hoping that it was obtained from a converged result.

What I would like to have is some feature that gives me some sort of feedback if the run didnt converge.

I was thinking along the lines of checking the residuals of the variables and if it is larger than some
given value to just abort the run and write an empty file called .diverged...or something.

Has anyone done anything on this or have any ideas on how I should go about it?

N
niklas is offline   Reply With Quote

Old   February 3, 2010, 05:52
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,763
Rep Power: 21
hjasak will become famous soon enough
Yes: write yourself a little function object which will extract the data from the solver that indicates the run is healthy. I would suggest min/max pressure and velocity, maybe a pressure drop (you know what would be reasonable).

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   February 3, 2010, 08:18
Default
  #3
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 20
niklas will become famous soon enoughniklas will become famous soon enough
Thanks, that sounds like a good idea
niklas is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF divergence of a vector cris FLUENT 3 September 4, 2014 18:06
Divergence problem for species transport model MY FLUENT 3 January 11, 2014 05:46
Role of divergence shekharc Main CFD Forum 7 July 5, 2005 12:08
divergence in MAC Method Maciej Matyka Main CFD Forum 2 December 19, 2000 11:43
help:spectral methods & divergence free functionsn D. Puigjaner Main CFD Forum 1 August 28, 2000 10:06


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