|
[Sponsors] |
February 2, 2010, 06:25 |
divergence handling
|
#1 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
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 |
|
February 3, 2010, 04:52 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
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 |
|
February 3, 2010, 07:18 |
|
#3 |
Super Moderator
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 693
Rep Power: 29 |
Thanks, that sounds like a good idea
|
|
|
|
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 04: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 10:43 |
help:spectral methods & divergence free functionsn | D. Puigjaner | Main CFD Forum | 1 | August 28, 2000 10:06 |