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

UDF for coding CFD ANSYS FLUENT

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 2, 2020, 03:08
Default UDF for coding CFD ANSYS FLUENT
  #1
New Member
 
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 5
zuraidah rasep is on a distinguished road
Hye

I have question related with coding of UDF that used in ANSYS FLUENT. Viscosity fluid (SAE20W40) change with temperature.

EQUATION: y=438.13e^-0.036x

THE CODING IS:
/************************************************** *******************
UDF for specifying a temperature-dependent viscosity property
************************************************** ********************/

#include "udf.h"

DEFINE_PROPERTY(cell_viscosity, cell, thread)
{
real mu_lam;
real temp = C_T(cell, thread);
mu_lam = 438.13*exp(-0.036*temp);
return mu_lam;
}


is it correct the coding..need advice from here.Thanks again.
zuraidah rasep 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
Looking for a CFD Multiphysics Expert In Comsol or Ansys Fluent tausifultimate CFD Freelancers 4 July 11, 2023 11:13
GPU acceleration in Ansys Fluent flotus1 Hardware 63 May 12, 2023 02:48
AMD Epyc CFD benchmarks with Ansys Fluent flotus1 Hardware 55 November 12, 2018 05:33
Creating UDF and loading it in ANSYS Fluent singingfish Fluent UDF and Scheme Programming 1 February 7, 2014 12:10
The fluent stopped and errors with "Emergency: received SIGHUP signal" yuyuxuan FLUENT 0 December 3, 2013 22:56


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