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

Suppress interpolationTable overflow messages

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 22, 2011, 17:01
Default Suppress interpolationTable overflow messages
  #1
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
I'm using an interpolation table and the values in my simulation run beyond the maximum value of the table. I'd still like to run the simulation until I can compile a new table; is there a way of supressing the message, preferably without recompiling the libraries (I only want this temporarily for select cases).

Thanks in advance!
mturcios777 is offline   Reply With Quote

Old   March 23, 2011, 14:04
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725
Rep Power: 18
mturcios777 will become famous soon enough
Ugh, I hate it when some simple digging will find the answer. Now I have to come here, post the answer and look silly

I was originally creating the interpolationTable by referencing the filename directly, with the constructor:

Code:
interpolationTable <scalar> myTable(fileName)
I found there to be several different constructors, including one where you can specify the outOfBounds behavior to warn, clamp, repeat

Since I do a lot of changes at run time, I found it best to use a dictionary that contains the file name and the outOfBounds behavior:

in createFields.H
Code:
interpolationTable<scalar> myTable(myDict)
in constant/myDict
Code:
fileName        "path/to/my/file.dat";
outOfBounds        clamp;

Last edited by mturcios777; March 23, 2011 at 14:10. Reason: removed caps on outOfBounds specifiers
mturcios777 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
Solution variables goes outside upper limit -how to localize fatal overflow occurance Dimone CFX 2 January 21, 2011 07:35
OVERFLOW and Horizontal Axis Wind Turbine ntonkin Main CFD Forum 1 November 19, 2009 02:40
Assembler messages when compiling on AMD64 hani OpenFOAM 4 May 22, 2006 08:08
No warning or error messages found. Atit Koonsrisuk CFX 5 January 14, 2003 12:06
linear solver overflow peggy CFX 1 February 8, 2001 02:39


All times are GMT -4. The time now is 03:41.