|
[Sponsors] |
April 6, 2022, 10:21 |
outOfBounds Handling in interpolation2DTable
|
#1 |
New Member
Julian Re
Join Date: Jan 2022
Location: Germany
Posts: 11
Rep Power: 4 |
Hey Foamers,
sorry for this basic question but Iam stuck at some point where I want to apply bounds handling for interpolation2DTable. I found a few posts which are related to my question e.g.: basicaly I want to use interpolate2D Table and first I constructed it with fName: myTable = interpolate2DTable<scalar>("constant/myTable") return myTable(T, p) This works but I wasn't able to define out of bounds handling (I get the warn message). Now I want to define outOfBounds handling. I saw that there is the constructor using dict as input (fileName myTable; outOfBounds clamp. So I did the following: myTable = interpolate2DTable<scalar>("constant/myDict"); return myTable(T, p) In folder constant I added a file myDict (besides myTable) like fileName "<constant>/myTable"; outOfBounds clamp; as well as setting in into (fileName ""; outOfBounds clamp; ); Every time when I try to execute a job I get the following error: [1] --> FOAM FATAL IO ERROR: [1] Expected a '(' while reading Tuple2, found on line 2: word 'fileName' [1] [1] file: constant/myDict at line 2. [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 What is wrong with my definition...??? Thank you for your help!!!!!!!!!!!! Julian |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use interpolation2DTable feature under codedMixed type of boundary condition | silviliril | OpenFOAM Pre-Processing | 0 | July 20, 2021 07:03 |
.cvs format and interpolation2DTable | Reptider | OpenFOAM Running, Solving & CFD | 0 | November 8, 2020 11:21 |
Tips for Handling Complex Geometries, Very Large Grids | tcarrigan | Pointwise & Gridgen | 5 | August 6, 2014 15:44 |
Handling bad cells at the solver level | Akshay | OpenFOAM Running, Solving & CFD | 4 | June 18, 2014 02:35 |
macros handling vectors | sivakumar | FLUENT | 0 | January 18, 2002 17:16 |