|
[Sponsors] |
interpolation table user function not loading data properly |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 19, 2012, 02:21 |
interpolation table user function not loading data properly
|
#1 |
New Member
Join Date: Oct 2012
Posts: 8
Rep Power: 14 |
I am loading a table of 3D data for a user function USERdensity=f(P,T,dummy) where P is absolute pressure and T is temperature and dummy is a dummy variable needed when one only wants a 2D function. But when I plot the data for a CEL function for the user function USERdensity using the plot utility in CFXpre there are all sorts of spikes in the CEL function plot, which are (a) not in the original data, (b) not in the table of data listed in the user function for USERdensity.
Anyone had similar a experience with user function as a 3D interpolation table ? |
|
November 20, 2012, 17:04 |
|
#2 |
Senior Member
Bruno
Join Date: Mar 2009
Location: Brazil
Posts: 277
Rep Power: 21 |
This is just a guess, but I'd say this is probably because the 3D table is meant to be used with coordinates, so it does a 3D interpolation to get your values based on the 3 closest points in the table. But since you're dealing with properties, the correct way to get the values from your table should be to intepolate between the four closest points, which in your case is not being done.
Also, since you have absolute pressure and temperature it is very likely that they're of different magnitudes and that might be causing additional trouble for the interpolation process. Cheers |
|
November 25, 2012, 20:37 |
|
#3 |
New Member
Join Date: Oct 2012
Posts: 8
Rep Power: 14 |
thanks brunoc, I suspect you're right, theres something fundamental to the calculation that causes the wrong gradient be calculated.
Ill keep you posted |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Bounds error for an EOS specified via an interpolation table | cfdonlineuser | CFX | 2 | September 20, 2015 12:29 |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Error with Wmake | skabilan | OpenFOAM Installation | 3 | July 28, 2009 01:35 |
solving passive scalar by user function in AVLFIRE | huyp | Main CFD Forum | 0 | September 4, 2008 11:21 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |