|
[Sponsors] |
How to let OpenFOAM abort a simulation when values exceed a given range? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 29, 2012, 08:01 |
How to let OpenFOAM abort a simulation when values exceed a given range?
|
#1 |
New Member
notyet
Join Date: Jun 2012
Posts: 9
Rep Power: 14 |
When the absolute pressure becomes negative or U exceeds the speed of light, things have pretty obviously gone wrong (be that bad boundary conditions, a too coarse mesh, a too large timestep etc.).
So, is there any way to have a simulation abort with an error message when values exceed definable non-physical ranges? -- I also asked this question at the Computational Science StackExchange (http://scicomp.stackexchange.com/q/2654/1669), please have a look at their Q&A system which offers a more ordered system for answers (none of these <<oh, I haz similar prob, plz send codez>> "answers") |
|
June 29, 2012, 22:45 |
|
#2 | |
Senior Member
|
Quote:
if(max(mag(U)).value()>3e8) { FatalErrorIn("Function name")<<"error message"<<abort(FatalError); } If the velocity exceed 3e8, there should be a problem, and program should abort after a short time itself. Regards, Junwei |
||
July 2, 2012, 03:10 |
|
#3 | |
New Member
notyet
Join Date: Jun 2012
Posts: 9
Rep Power: 14 |
Quote:
I assume you mean putting that in the used solver? But is there any other solution that does not require recompilation? Maybe something like a #codeStream statement in controlDict? Cheers |
||
Tags |
limits |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
particle parallel run crashes - values out of range | heavy_user | OpenFOAM Running, Solving & CFD | 0 | November 2, 2011 13:31 |
max node values exceed max element values in contour plot | jason_t | FLUENT | 0 | August 19, 2009 12:32 |
Monitor point values in a steady state simulation | Kushagra | CFX | 2 | July 13, 2008 21:03 |
transonic simulation with OpenFoam | Shyam | Main CFD Forum | 0 | June 12, 2008 03:39 |
Numerical values from simulation | Ravi | FLUENT | 0 | February 11, 2003 10:02 |