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

Suppress interpolationTable overflow messages

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 740
Rep Power: 28
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: 740
Rep Power: 28
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

Old   April 6, 2022, 10:52
Cool Problem in defining outOfBounds w. interpolation2DTable
  #3
New Member
 
Julian Re
Join Date: Jan 2022
Location: Germany
Posts: 11
Rep Power: 4
JuRe09 is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
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;

Basically I have the same problem! I get the Warn message that an value is out of bounds which is true. My definition (construc using dict) is as follows:
Code:
myTable = interpolation2DTable<scalar>("constant/myDict");
and in constant/myDict:
Code:
fileName "constant/myTable";
 outOfBounds clamp;
I get the following error:
1] --> FOAM FATAL IO ERROR:
[1] Expected a '(' while reading Tuple2, found on line 1: word 'fileName'
[1]
[1] file: constant/myDict at line 1.
[1]
[1] From function Foam::Istream& Foam::Istream::readBegin(const char*)
[1] in file db/IOstreams/IOstreams/Istream.C at line 92.
[1]
FOAM parallel run exiting


Note: When i use the constructor just using fName = "constant/myTable" it works fine expect the bounds handling....
JuRe09 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
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 09: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 20:24.