CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF for specific heat - error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2013, 07:30
Question UDF for specific heat - error
  #1
New Member
 
Join Date: Oct 2013
Posts: 1
Rep Power: 0
tarui23 is on a distinguished road
Hi everyone,
I have got a probelm with a UDF describing the specific heat of species. When I compile the udf it gives some error.

The udf is shown below.

#include "udf.h"
DEFINE_SPECIFIC_HEAT(ar_spec,T,Tref,h,yi)
{
real cp1,cp2,cp;
if (T<765)
{
cp1=0.95*T+436.65;
cp2=T+10;
}
else
{
cp1=5*T+436;
cp2=50*T+10;
}
cp=C_YI(cell,thread,0)*cp1+C_YI(cell,thread,1)*cp2 ;
*h=cp*(T-Tref);
return cp;
}

Any help would be great.
Thanks.
tarui23 is offline   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
[OpenFOAM] an error in Calculator's equation immortality ParaView 12 June 29, 2021 01:10
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38
user subroutine error CFDUSER CFX 2 December 9, 2006 07:31
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 17:14.