|
[Sponsors] |
October 13, 2013, 07:30 |
UDF for specific heat - error
|
#1 |
New Member
Join Date: Oct 2013
Posts: 1
Rep Power: 0 |
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. |
|
|
|
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 |