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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
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

Old   September 3, 2020, 01:41
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
code is correct
zuraidah rasep likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   September 5, 2020, 22:22
Default
  #3
New Member
 
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 5
zuraidah rasep is on a distinguished road
thanks a lot..really appreciated your help
zuraidah rasep is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 19:59.