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

outOfBounds Handling in interpolation2DTable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2022, 09:21
Default outOfBounds Handling in interpolation2DTable
  #1
New Member
 
Julian Re
Join Date: Jan 2022
Location: Germany
Posts: 11
Rep Power: 4
JuRe09 is on a distinguished road
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
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
How to use interpolation2DTable feature under codedMixed type of boundary condition silviliril OpenFOAM Pre-Processing 0 July 20, 2021 06:03
.cvs format and interpolation2DTable Reptider OpenFOAM Running, Solving & CFD 0 November 8, 2020 10:21
Tips for Handling Complex Geometries, Very Large Grids tcarrigan Pointwise & Gridgen 5 August 6, 2014 14:44
Handling bad cells at the solver level Akshay OpenFOAM Running, Solving & CFD 4 June 18, 2014 01:35
macros handling vectors sivakumar FLUENT 0 January 18, 2002 16:16


All times are GMT -4. The time now is 15:08.