|
[Sponsors] |
Suppress interpolationTable overflow messages |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 22, 2011, 17:01 |
Suppress interpolationTable overflow messages
|
#1 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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! |
|
March 23, 2011, 14:04 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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) 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) 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 |
|
April 6, 2022, 10:52 |
Problem in defining outOfBounds w. interpolation2DTable
|
#3 | |
New Member
Julian Re
Join Date: Jan 2022
Location: Germany
Posts: 11
Rep Power: 4 |
Quote:
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"); Code:
fileName "constant/myTable"; outOfBounds clamp; 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.... |
||
|
|
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 |