|
[Sponsors] |
User Field Function - interpolatePositionTable |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 14, 2012, 08:00 |
User Field Function - interpolatePositionTable
|
#1 |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
I have a table(x,y,z) with the 4th column of temperature and i want to assign it to my body's wall.
The number of the table'e coordinates is less than my cell's coordinates and a little bit different. Therefore i defined a user field function to interpolate it. I used the below code but unfortunately no interpolation can be seen in the temperature distribution(the cells which has not been addressed in table,get a default(300'K) and different temperature of its nearest cells) interpolatePositionTable(@Table("xx"), "Temperature") I appreciate any idea. Thank you in advance. |
|
May 14, 2012, 11:20 |
|
#2 | |
Senior Member
Ryne Whitehill
Join Date: Aug 2009
Posts: 312
Rep Power: 19 |
Quote:
Using a table should do the interpolation for you, so there is no need to go through a field function step. |
||
May 16, 2012, 07:59 |
|
#3 | |
Senior Member
Join Date: Dec 2011
Posts: 121
Rep Power: 15 |
Quote:
I have a table of a X machine with a coarser mesh and i want to import it to the X machine with a finer mesh. Due to generating the coarser mesh,there is a little difference between the position of cells in two cases.also there is difference in the number of coordinates. For simplicity im trying to test it in a sample case. you can see in the attachment the imported temperature on the finer mesh ,many of blue cells(defualt temperature-300) has not been addressed in the table and it has been set by the software to 300 automatically! neither using table,nor user field function(as i said above) do any interpolation between the cells. e.g assume we have 3 cells in a line,,the right one is 600"K and the left one is 400. i expect the middle cell would be interpolated to 500. but as you can see in the picture the software use the default value(300) for any unaddressed cells without any interpolation. Last edited by fshak92; May 16, 2012 at 08:39. |
||
May 16, 2012, 12:24 |
|
#4 | |
Senior Member
Ryne Whitehill
Join Date: Aug 2009
Posts: 312
Rep Power: 19 |
Quote:
Hmm. I have always had it interpolate without issues, though I always have planar surfaces (i.e. an inlet/exhaust plane), not complex geometry like yours. Perhaps try using data mappers? You can export your solution from the coarse file, and import it as a CAE model into the finer mesh. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Field function | lcg44 | STAR-CCM+ | 1 | November 30, 2011 00:13 |
channelFoam for a 3D pipe | AlmostSurelyRob | OpenFOAM | 3 | June 24, 2011 14:06 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13:21 |
mean, variance and covariance statistics of any field function on any part. | Subhadeep | STAR-CCM+ | 8 | February 18, 2010 18:19 |
User Field Function | hannow | STAR-CCM+ | 3 | November 24, 2009 21:20 |