|
[Sponsors] |
July 23, 2012, 08:31 |
UDF compilation problem
|
#1 |
New Member
Join Date: Jul 2012
Posts: 19
Rep Power: 14 |
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; } } |
|
Tags |
volume fraction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
Problem in UDF compilation | iitgbim | Fluent UDF and Scheme Programming | 14 | September 19, 2014 07:20 |
UDF problem | mansha goraya | FLUENT | 0 | October 29, 2007 01:31 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 07:56 |