CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Problem with using UDF to modify viscosity

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By teethfish
  • 1 Post By akm

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 3, 2013, 10:15
Default Problem with using UDF to modify viscosity
  #1
New Member
 
teethfish
Join Date: Jul 2012
Posts: 7
Rep Power: 13
teethfish is on a distinguished road
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;
}
dongchao yang likes this.
teethfish is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 06:26.