|
[Sponsors] |
September 2, 2020, 03:08 |
UDF for coding CFD ANSYS FLUENT
|
#1 |
New Member
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 5 |
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. |
|
September 3, 2020, 01:41 |
|
#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 |
|
September 5, 2020, 22:22 |
|
#3 |
New Member
zuraidah rasep
Join Date: Sep 2020
Location: Johor, Malaysia
Posts: 4
Rep Power: 5 |
thanks a lot..really appreciated your help
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |