|
[Sponsors] |
February 3, 2013, 10:15 |
Problem with using UDF to modify viscosity
|
#1 |
New Member
teethfish
Join Date: Jul 2012
Posts: 7
Rep Power: 13 |
Hi, I want to modify the viscosity in K-W SST model in Fluent 13.0. But I met a problem that my UDF cannot initiate and it shows that:
Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: #f I have tried initialise without using "compute from" ....but the error was still there, I pasted my UDF here, if anone can help me with that? #include "udf.h" DEFINE_TURBULENT_VISCOSITY(user_mu_t,c,t) { real mu_t; real a; real rho; real k; real d; a=(C_R(c,t)-0.5542)/997.6458; rho = 0.5542+a*a*997.6458; k = C_K(c,t); d = C_D(c,t); mu_t = M_keCmu*rho*k*k/d; return mu_t; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 06:00 |
Problem UDF for Turbulen viscosity | fevi84 | Fluent UDF and Scheme Programming | 2 | June 25, 2017 18:25 |
Help !! UDF for second phase viscosity. | yong | FLUENT | 2 | January 24, 2007 11:11 |
parallel UDF problem | kerem | FLUENT | 2 | June 20, 2006 06:56 |
Help - UDF for solid shear viscosity | nbh2801 | FLUENT | 0 | April 21, 2006 07:49 |