CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

How can I make an interpolated function?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2006, 05:38
Default How can I make an interpolated function?
  #1
Se-Hee
Guest
 
Posts: n/a
Dear All,

I am trying to make the heat transfer coefficient function, h(T), with respect to T. I have some sampled data sets as follows:

T:: 280 290 300 350 400

h(T):: 2 7 8 12 14

Here, I'd like to make an interpolated function of which name is 'myH.' Where can I setup this kind of function and how can I use it?

Many Thanks, Se-Hee
  Reply With Quote

Old   November 19, 2006, 18:19
Default Re: How can I make an interpolated function?
  #2
Glenn Horrocks
Guest
 
Posts: n/a
Hi,

This is a CEL 1-d interpolation expression. It is described in the documentation.

Glenn Horrocks
  Reply With Quote

Old   November 20, 2006, 04:23
Default Re: How can I make an interpolated function?
  #3
Se-Hee
Guest
 
Posts: n/a
Dear Mr. Glenn,

Thanks for your comments. I have built my own interpolated function followed by your guide as follows:

1) In CFX-Pre, Create/User function

2) My function name is 'myHCoeff'

3) Interpolation, One dimensional

4) Input data set: Temperature .vs. heat transfer coefficient

5) OK

And when I use this function as boundary condition, how can I express the function? There were some errors to express my defined function when I try to use it. My expression was 'myHCoeff(T).' Is it incorrect?

Many thanks,

Se-Hee
  Reply With Quote

Old   November 20, 2006, 12:52
Default Re: How can I make an interpolated function?
  #4
Robin
Guest
 
Posts: n/a
What were the errors?
  Reply With Quote

Old   November 22, 2006, 20:08
Default Re: Error Message
  #5
Se-Hee
Guest
 
Posts: n/a
The error message is as follows:

The variable 'T' referenced in parameter 'Heat Transfer Coefficient' in object '/Flow/Domain:Tank/Boundary:TankH/Boundary Conditions/Heat Transfer' does not have one of the required prefixes: phase or particle.

Thanks for your help.

Se-Hee
  Reply With Quote

Old   November 24, 2006, 01:44
Default what is the prefixes: phase or particle?
  #6
Se-Hee
Guest
 
Posts: n/a
As I mentioned in the above message, the error message was as follows:

The variable 'T' referenced in parameter 'Heat Transfer Coefficient' in object '/FLOW/DOMAIN:Tank/BOUNDARY:TankH/BOUNDARY CONDITIONS/HEAT TRANSFER' does not have one of the required prefixes: phase or particle.

Here, could anyone please explain 'phase or particle'? I've tried many ways for resolving my problem, but I am still stuck at this stage.

Se-Hee
  Reply With Quote

Old   November 24, 2006, 07:32
Default Re: what is the prefixes: phase or particle?
  #7
Johnny
Guest
 
Posts: n/a
If you have a multiphase flow, you need to add the phase/particle name before variables. Example:

Air Ideal Gas.Temperature

Maybe this is what the error message is referring to?
  Reply With Quote

Old   November 25, 2006, 08:30
Default Re: solved this problem with input profile.
  #8
Se-Hee
Guest
 
Posts: n/a
Considering your comments, I have solved this problem at last as follows:

1. making profile instead of table

2. retype the function -> myHCoeff.hval(WireAl.T)

where myHCoeff represents the function name of which I defined, hval represents the value of my function with reapect to temperature, and WireAl represents the material name of which I used in my simulation setup.

Thanks for all kind comments.

Se-Hee
  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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 07:51
[OpenFOAM] LibvtkFoamso fred ParaView 2 November 18, 2005 20:01


All times are GMT -4. The time now is 23:59.