|
[Sponsors] |
April 4, 2008, 08:08 |
Cp as a function
|
#1 |
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 |
|
April 4, 2008, 08:32 |
Re: Cp as a function
|
#2 |
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 |
|
April 4, 2008, 09:06 |
Re: Cp as a function
|
#3 |
Guest
Posts: n/a
|
Hi,
sorry, I meant Cp as a function of (T,Pressure). I really need fortran. |
|
April 5, 2008, 12:49 |
Re: Cp as a function
|
#4 |
Guest
Posts: n/a
|
CFX has already this function (CP) inside!
|
|
April 8, 2008, 05:55 |
Re: Cp as a function
|
#5 |
Guest
Posts: n/a
|
So this is a real gas then?
|
|
|
|
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 |