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

Stop computing when bnanb

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 5, 2006, 17:28
Default Is there a switch or something
  #1
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
Is there a switch or something like that we can use to stop the computation when it blows up (i.e. nan is found in the result)?

OpenFOAM is so 'robust' that it even works so hard on these 'nan' numbers.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu is offline   Reply With Quote

Old   March 5, 2006, 17:43
Default Do: setenv FOAM_SIGFPE 1
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
Do:

setenv FOAM_SIGFPE 1

and it will fail on the first nan. You can put it into your .cshrc (or do the equivalent thing in the .bashrc if you're running bash).

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

Old   March 5, 2006, 18:33
Default Thank you. That will be ver
  #3
liu
Senior Member
 
Xiaofeng Liu
Join Date: Mar 2009
Location: State College, PA, USA
Posts: 118
Rep Power: 17
liu is on a distinguished road
Thank you.

That will be very helpful.
__________________
Xiaofeng Liu, Ph.D., P.E.,
Assistant Professor
Department of Civil and Environmental Engineering
Penn State University
223B Sackett Building
University Park, PA 16802


Web: http://water.engr.psu.edu/liu/
liu 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
Stop without res? Camilo Costa CFX 5 April 17, 2008 23:48
How to stop iteration with TUI? sophie FLUENT 4 November 23, 2006 06:18
Should I stop the run? Need urgent help. Sam CFX 4 October 20, 2005 19:50
phoenics stop Olfa Daboussi Phoenics 0 May 26, 2005 05:14


All times are GMT -4. The time now is 21:12.