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

Function with parameters

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 16, 2011, 09:42
Default Function with parameters
  #1
Disabled
 
Join Date: Aug 2011
Posts: 10
Rep Power: 14
foo7 is on a distinguished road
Hello guys.

I'm trying to simulate a multicomponent gas flow.
The gas has more than 20 different components, each one with different properties.
The heat capacity of each component follows the following law:

Cp(a,b,c,d,e,T) = a*T +b*(T^2)+c*(T^-1) +d*(e)

Where a,b,c,d and e are parameters which differ from component to component and T is the gas temperature.

I'd like to know if there's a way within CFX for me to write this function Cp(a,b,c,d,e,T) and call it within the materials properties.

This way, when I'm setting each components properties I don't need to write the whole expression, just call the Cp(a,b,c,d,e,T) with the appropriate parameters a,b,c,d and e.

thanks a lot
foo7 is offline   Reply With Quote

 

Tags
cel, expression, function


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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 09:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 04:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00


All times are GMT -4. The time now is 11:25.