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

Units for User Defined Scalars

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By obscureed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 22, 2018, 09:07
Default Units for User Defined Scalars
  #1
Member
 
zobekenobe
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 72
Rep Power: 17
zobekenobe is on a distinguished road
What are the units of the User defined scalars (UDS) ?


The mass flow rate for the UDS is always in kg/s.


Are there any ways to set the UDS units?
zobekenobe is offline   Reply With Quote

Old   June 22, 2018, 14:14
Default
  #2
New Member
 
Animesh Sahoo
Join Date: May 2018
Posts: 20
Rep Power: 7
sahoo is on a distinguished road
As the name suggests its a scalar. So, whatever will be the unit of your scalar same is the unit of your UDS. When you will operate on it you will get either a scalar or a vector but unit remains same.
sahoo is offline   Reply With Quote

Old   June 23, 2018, 07:15
Default
  #3
Senior Member
 
Join Date: Sep 2017
Posts: 246
Rep Power: 11
obscureed is on a distinguished road
Hi Zobekenobe,

Fluent has no opinion on the units for a UDS -- it is user-defined, so Fluent stays out of it, and (as far as I know) there is no way to tell Fluent the units. It would not use the information for anything anyway, except maybe labelling contour plots etc.

It is worth comparing the transport equation for a UDS with the equivalent for a species mass fraction. You should find that the UDS behaves like a mass fraction -- hence, if you think of a UDS as being something like a concentration, you should think about it as "per unit mass of fluid" rather than "per unit volume of space". This difference is significant only if the fluid density changes. (I'm assuming that you select Mass Flow Rate as the flux function. Without that, there is even less connection to the flowfield, and the UDS does not even need to be concentration-like.)

While I'm on the subject: the UDS diffusivity is missing a factor of density compared to a species diffusivity. Also, UDS diffusivity does not include turbulence unless you include it in a UDF.

You say that the mass flow rate for a UDS "always" has units of [kg/s]. I guess that you're referring to the boundary condition at a velocity inlet, or a reported mass-weighted flux somewhere, for example. Well, I think you are correct *if* you are regarding the UDS as a mass fraction -- a very sensible choice, but not the only choice. I doubt that it is referred to as a mass flow rate inside Fluent. A massflowrate-weighted average will be reported with units [kg/s], with an implicit factor of the UDS unit. If a UDS has units of [mmol/kg], for example, then this kind of total flowrate will end up having units of [mmol/s] as far as the user is concerned, with Fluent remaining unconcerned.

I hope this helps.
Ed
zobekenobe and SphericalCube like this.
obscureed 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
Ansys SIG$ILL error loth ANSYS 3 December 24, 2015 05:31
Fluent User defined Scalars and UDF Anirudh_Deodhar Fluent UDF and Scheme Programming 0 February 16, 2011 20:16
Multiple user defined scalars Hassid Samuel FLUENT 3 March 27, 2001 03:12
Naming User Defined Scalars Greg Perkins FLUENT 0 March 6, 2000 23:10
To dimensionalize or not to dimensionalize !! tolani owosina Main CFD Forum 8 November 13, 1999 13:45


All times are GMT -4. The time now is 18:37.