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

Cp as a function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2008, 08:08
Default Cp as a function
  #1
Mareike
Guest
 
Posts: n/a
Hi there,

I try to set the ideal gas Cp as a function of Cp. Therefore I wrote a fortran user routine which calculates a cp for a specific temperature. How can I manage this? Each time I try to set my function NOT as interpolation data the solver crashes. If I interpolate data with a function everything is fine. Is there something wrong with the code? I have a (for testing) fixed value of 2000.0 which I return.

Any ideas? Plz help me
  Reply With Quote

Old   April 4, 2008, 08:32
Default Re: Cp as a function
  #2
andy2O
Guest
 
Posts: n/a
"Cp as a function of Cp"...

Is that a typo? Surely Cp cannot depend on Cp! You would get in a real mess!

Do you really need to use Fortran? If you can do the job using CEL expressions I think your life would be made much easier.

andy
  Reply With Quote

Old   April 4, 2008, 09:06
Default Re: Cp as a function
  #3
Mareike
Guest
 
Posts: n/a
Hi,

sorry, I meant Cp as a function of (T,Pressure).

I really need fortran.

  Reply With Quote

Old   April 5, 2008, 12:49
Default Re: Cp as a function
  #4
Rogerio Fernandes Brito
Guest
 
Posts: n/a
CFX has already this function (CP) inside!
  Reply With Quote

Old   April 8, 2008, 05:55
Default Re: Cp as a function
  #5
HekLeR
Guest
 
Posts: n/a
So this is a real gas then?
  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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 03:19.