CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Easy Fix? Input parameters for Density and Viscosity

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By macfly

LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2014, 16:55
Question Easy Fix? Input parameters for Density and Viscosity
New Member
Join Date: Sep 2013
Location: Calgary, Alberta
Posts: 19
Rep Power: 10
LiamH is on a distinguished road
Send a message via Skype™ to LiamH
Hey Everyone,

I am currently trying to match lab data and I am using the values obtained from the measured viscosity and density. Is it possible to create input parameters for these values or is it much more complicated to do so? I am having to change the fluid properties every time I run a simulation.
LiamH is offline   Reply With Quote

Old   March 15, 2014, 09:52
Senior Member
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 15
macfly is on a distinguished road
Hi Liam,

It is easy to do once you have learned the basics about using UDF macros. Look at the Ansys Fluent UDF Manual, the DEFINE_PROPERTY macro is what you're looking for. Look at example in version 15.0 of the manual, it's about temperature-dependent viscosity.

If you have never used UDFs, you will read in the UDF Manual that you have to either compile or interprete a UDF in Fluent. Don't try to compile your UDF, it's a complete headache. Interprete your UDF instead.
LiamH likes this.
macfly is offline   Reply With Quote

Old   March 17, 2014, 16:53
Senior Member
Andrew Kokemoor
Join Date: Aug 2013
Posts: 122
Rep Power: 12
Kokemoor is on a distinguished road
In v15 you can definitely set the density and viscosity to input parameters; I'm pretty sure you can in 14.5 as well. Having a hard time finding it in the manual, but it's pretty straightforward.

In the Create/Edit Material window where you set the fluid properties, click the drop down menu for 'constant' and select 'New Input Parameter'. It'll prompt you for a name and starting value, just like any other parameter. You should be able to do this for density, viscosity, and any other material properties.
Kokemoor is offline   Reply With Quote


density, fluent 14.5, parameter, viscosity, workbench

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
0 concentration specie impacting viscosity value ChrisA OpenFOAM Running, Solving & CFD 1 March 16, 2013 19:58
Too low temperature at combustor outlet romekr FLUENT 2 February 6, 2012 10:02
Eddy Viscosity Model Parameters Tristan CFX 5 January 20, 2010 15:25
Problem of Turbulent Viscosity Ratio Limited David Yang FLUENT 3 June 3, 2002 06:13

All times are GMT -4. The time now is 01:42.