CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to write UDF for Dynamic Viscosity

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By amod_kumar

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2018, 22:05
Default How to write UDF for Dynamic Viscosity
  #1
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 130
Rep Power: 16
ramakant is on a distinguished road
Dear All

I need your comments and suggestions for the given equation. Please find the attached file herewith.

Thank you

Ramakant
Attached Images
File Type: jpg Dyanamic.JPG (27.1 KB, 21 views)
ramakant is offline   Reply With Quote

Old   August 18, 2018, 11:33
Default How to write UDF for Dynamic Viscosity
  #2
Member
 
Amod Kumar
Join Date: Jan 2010
Location: Delhi, India
Posts: 39
Rep Power: 16
amod_kumar is on a distinguished road
You can find an example in UDF manual, following should work.

DEFINE_PROPERTY(visc_T, c, Tp) {
real mu; real a = C_T(c,t);
mu = 2.414e-05 * pow(10, 247.8/(Tp - 140));
return mu;
}

The linkhttp://cfdyna.com/CFDHT/scriptsMacros.html#UDF might help you understand how UDFs are written.
ramakant likes this.
amod_kumar is offline   Reply With Quote

Old   August 19, 2018, 00:04
Default
  #3
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 130
Rep Power: 16
ramakant is on a distinguished road
Thank you very much...
ramakant is offline   Reply With Quote

Old   May 10, 2019, 06:44
Default
  #4
New Member
 
dogan sublimis
Join Date: May 2019
Posts: 3
Rep Power: 7
dsub5 is on a distinguished road
hello everyone. i have to create udf for dynamic viscosity and thermal conductivity coefficient. but have no idea about codes.

here is the formulas. if anyone can help me, i wii be glad.



mu=(3.4*10^-7*T^2)-(2.3*10^-4*T)+(3.9*10^-2)

k=0.004961*T-0.8078
dsub5 is offline   Reply With Quote

Reply


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
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh elvis OpenFOAM Community Contributions 210 January 30, 2017 18:57
Help - UDF for solid shear viscosity nbh2801 FLUENT 0 April 21, 2006 07:49
Trying to Write pitch and Plunge UDF Alex FLUENT 0 March 18, 2006 16:14
How to write UDF for pitching&plunging airfoil? Alex FLUENT 0 March 17, 2006 12:37
Turbulent Viscosity UDF Raphael FLUENT 2 January 23, 2006 04:04


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