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

Identify viscosity as a function of temperature in FLUENT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2020, 11:27
Default Identify viscosity as a function of temperature in FLUENT
  #1
New Member
 
amr kaood
Join Date: Nov 2013
Posts: 4
Rep Power: 13
amrkaood is on a distinguished road
Dears,
How can identify the viscosity as a function of temperature in FLUENT?
By UDF or Expression
amrkaood is offline   Reply With Quote

Old   July 10, 2020, 16:21
Default
  #2
Senior Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 118
Rep Power: 10
rupak504 is on a distinguished road
use DEFINE PROPERTY macro in UDF, you can find examples online.
rupak504 is offline   Reply With Quote

Old   July 10, 2020, 16:27
Default
  #3
New Member
 
amr kaood
Join Date: Nov 2013
Posts: 4
Rep Power: 13
amrkaood is on a distinguished road
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; }
amrkaood is offline   Reply With Quote

Old   July 10, 2020, 16:32
Default
  #4
Senior Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 118
Rep Power: 10
rupak504 is on a distinguished road
Quote:
Originally Posted by amrkaood View Post
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; }
DEFINE_PROPERTY(cell_viscosity, c, t) { real mu_lam; real temp = C_T(c, t); mu_lam = (your expression as a function of temp); return mu_lam; }

compile this, then in materials, you can find mu_lam under viscosity tab of the selected material
rupak504 is offline   Reply With Quote

Reply

Tags
expression editor, udf, viscosity udf


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
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


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