|
[Sponsors] |
Problem with UDF on a Linux machine (Red Hat) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 9, 2009, 10:55 |
Problem with UDF on a Linux machine (Red Hat)
|
#1 |
New Member
Iaroslav
Join Date: May 2009
Posts: 16
Rep Power: 17 |
Hello everyone,
I have written a simple UDF (DEFINE_TURBULENT_VISCOSITY) to modify the eddy viscosity calculated by the standard k-e model. I have run several simulations in Windows Vista with Fluent interpreting my UDF with no problems at all. However, when I try to run the same simulation on the Linux machine (Red Hat) I am getting an eeror message that informs me of a syntax error on line 2. Here is my UDF: #include "udf.h" DEFINE_TURBULENT_VISCOSITY(custom_mu_t, c, t) { real mu_t; real s_11; real s_12; real s_22; real s_g; real div_vel; real mach_g; real l_g; real alpha; real c_mu; real rho = C_R(c,t); real k = C_K(c,t); real d = C_D(c,t); real temper = C_T(c,t); real dudx = C_DUDX(c,t); real dvdy = C_DVDY(c,t); real dudy = C_DUDY(c,t); real dvdx = C_DVDX(c,t); s_11 = dudx; s_22 = dvdy; s_12 = 0.5*(dudy+dvdx); div_vel = dudx+dvdy; s_g = sqrt(2*((SQR(s_11)+2*SQR(s_12)+SQR(s_22))-1/3*SQR(div_vel))); alpha = sqrt(1.4*287*temper); l_g = 0.09*pow(k,1.5)/d; mach_g = s_g*l_g/alpha; c_mu = 0.07*exp(-0.4*mach_g); mu_t = c_mu*rho*SQR(k)/d; return mu_t; } Any help would really be appreciated as my Linux machine is much better at running simulations than my Windows laptop. Thank you, Iaroslav |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Compiled UDF problem 4 Wave tank tutorial | Shane | FLUENT | 1 | September 3, 2010 02:32 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 10:16 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 06:56 |
Running Fluent on Red Hat Linux WS version 4 | Bob | FLUENT | 1 | September 4, 2005 05:01 |
Works in Red Hat Linux 6.2 with Alpha Processer? | hongchan | FLUENT | 1 | December 24, 2001 17:32 |