|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 6 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
code is correct
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 6 ![]() |
thanks a lot..really appreciated your help
|
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 12:13 |
GPU acceleration in Ansys Fluent | flotus1 | Hardware | 63 | May 12, 2023 03:48 |
AMD Epyc CFD benchmarks with Ansys Fluent | flotus1 | Hardware | 55 | November 12, 2018 06:33 |
Creating UDF and loading it in ANSYS Fluent | singingfish | Fluent UDF and Scheme Programming | 1 | February 7, 2014 13:10 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 23:56 |