|
[Sponsors] |
Identify viscosity as a function of temperature in FLUENT |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 10, 2020, 11:27 |
Identify viscosity as a function of temperature in FLUENT
|
#1 |
New Member
amr kaood
Join Date: Nov 2013
Posts: 4
Rep Power: 13 |
Dears,
How can identify the viscosity as a function of temperature in FLUENT? By UDF or Expression |
|
July 10, 2020, 16:21 |
|
#2 |
Senior Member
Lolita
Join Date: Aug 2016
Posts: 118
Rep Power: 10 |
use DEFINE PROPERTY macro in UDF, you can find examples online.
|
|
July 10, 2020, 16:27 |
|
#3 |
New Member
amr kaood
Join Date: Nov 2013
Posts: 4
Rep Power: 13 |
Unfortunately, i didn't work on a code before.
But, already i check on internet and i found this code. But, i can't modify it. UDF that simulates solidification by specifying a temperature- dependent viscosity property ************************************************** ********************/ DEFINE_PROPERTY(cell_viscosity, c, t) { real mu_lam; real temp = C_T(c, t); if (temp > 288.) mu_lam = 5.5e-3; else if (temp > 286.) mu_lam = 143.2135 - 0.49725 * temp; else mu_lam = 1.; return mu_lam; } |
|
July 10, 2020, 16:32 |
|
#4 | |
Senior Member
Lolita
Join Date: Aug 2016
Posts: 118
Rep Power: 10 |
Quote:
compile this, then in materials, you can find mu_lam under viscosity tab of the selected material |
||
Tags |
expression editor, udf, viscosity udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with divergence | TDK | FLUENT | 13 | December 14, 2018 07:00 |
Temperature Dependent Viscosity Fluent Tutorial | msp.16191@gmail.com | ANSYS | 0 | October 3, 2018 06:15 |
User defined function for backflow temperature in fluent | harshit | Fluent UDF and Scheme Programming | 2 | January 29, 2013 21:22 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Compilation errors in ThirdPartymallochoard | feng_w | OpenFOAM Installation | 1 | January 25, 2009 07:59 |