CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF compilation problem (http://www.cfd-online.com/Forums/fluent-udf/105102-udf-compilation-problem.html)

ravindra July 23, 2012 07:31

UDF compilation problem
 
hello friends,
i m trying to include volume fraction of secondary phase in rate expression through UDF but error is coming while compilation.
error is :
Deleted old libudf\ntx86\2ddp\libudf.dll
The system cannot find the file specified.
(system "copy c:\fluent.inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2ddp\makefile")
1 file(s) copied.
(chdir "libudf")()
(chdir "ntx86\2ddp")()

kindly help me out its urgent.

this is my UDF
#include "udf.h"

DEFINE_VR_RATE(vol_reac_rate,c,t,r,wk,yk,rate,rr_t )
{
real ci, prod;
int i;
/* Calculate Arrhenius reaction rate */
prod = 1.;

if(STREQ(r->name, "reaction-1"))
{
for(i = 0; i < r->n_reactants; i++)
{
ci = C_R(c,t) * yk[r->reactant[i]] / wk[r->reactant[i]];
prod *= pow(ci, r->exp_reactant[i]);
}
*rate = r->A * exp( - r->E / (UNIVERSAL_GAS_CONSTANT * C_T(c,t))) *(1-C_VOF(c,t))* prod;
}
elseif (STREQ(r->name, "reaction-2"))
{
for(i = 0; i < r->n_reactants; i++)
{
ci = C_R(c,t) * yk[r->reactant[i]] / wk[r->reactant[i]];
prod *= pow(ci, r->exp_reactant[i]);
}
*rate = r->A * exp( - r->E / (UNIVERSAL_GAS_CONSTANT * C_T(c,t))) *(1-C_VOF(c,t))* prod;
}
elseif (STREQ(r->name, "reaction-3"))
{
for(i = 0; i < r->n_reactants; i++)
{
ci = C_R(c,t) * yk[r->reactant[i]] / wk[r->reactant[i]];
prod *= pow(ci, r->exp_reactant[i]);
}
*rate = r->A * exp( - r->E / (UNIVERSAL_GAS_CONSTANT * C_T(c,t))) *(1-C_VOF(c,t))* prod;
}
}


All times are GMT -4. The time now is 15:24.