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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 10, 2020, 10:27
Default Identify viscosity as a function of temperature in FLUENT
  #1
New Member
 
amr kaood
Join Date: Nov 2013
Posts: 2
Rep Power: 0
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, 15:21
Default
  #2
Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 80
Rep Power: 6
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, 15:27
Default
  #3
New Member
 
amr kaood
Join Date: Nov 2013
Posts: 2
Rep Power: 0
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, 15:32
Default
  #4
Member
 
rupak504's Avatar
 
Lolita
Join Date: Aug 2016
Posts: 80
Rep Power: 6
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

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
Problem with divergence TDK FLUENT 13 December 14, 2018 06:00
Temperature Dependent Viscosity Fluent Tutorial msp.16191@gmail.com ANSYS 0 October 3, 2018 05:15
User defined function for backflow temperature in fluent harshit Fluent UDF and Scheme Programming 2 January 29, 2013 20:22
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59


All times are GMT -4. The time now is 14:09.