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

Unit of UDS for molar concentration

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bruno Machado

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2016, 09:23
Default Unit of UDS for molar concentration
  #1
Member
 
Tleja
Join Date: Sep 2013
Posts: 40
Rep Power: 13
Tleja is on a distinguished road
Hi everyone,

At the moment, I need to use user defined-scalar (UDS) to solve concentration balance by defining scalar as molar concentration (kmol/m^3).

I will write a source term for a user defined-scalar(concentration (kmol/m^3)), using mass flow rate as the flux function as the equation below:



According to this equation the units of each term should be kg/m^3 s*(scalar unit), Thus, the source term of molar concentration unit is kg*kmol/m^6 s. Is that right?
I'm not sure about my understanding.

Which is the units of the source terms for user defined scalar in fluent?

Can I multiply a source term whose units are kmol*m^-3*s^-1 by the density to fit the units used in Fluent?

Thanks a lot

Tleja
Tleja is offline   Reply With Quote

Old   December 28, 2016, 08:56
Default
  #2
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tleja View Post
Hi everyone,

At the moment, I need to use user defined-scalar (UDS) to solve concentration balance by defining scalar as molar concentration (kmol/m^3).

I will write a source term for a user defined-scalar(concentration (kmol/m^3)), using mass flow rate as the flux function as the equation below:



According to this equation the units of each term should be kg/m^3 s*(scalar unit), Thus, the source term of molar concentration unit is kg*kmol/m^6 s. Is that right?
I'm not sure about my understanding.

Which is the units of the source terms for user defined scalar in fluent?

Can I multiply a source term whose units are kmol*m^-3*s^-1 by the density to fit the units used in Fluent?

Thanks a lot

Tleja
it is a volumetric source term. so it is [WHATEVER THE UNIT]/m3.s
rarnaunot likes this.
Bruno Machado is offline   Reply With Quote

Old   December 29, 2016, 03:00
Default
  #3
Member
 
Tleja
Join Date: Sep 2013
Posts: 40
Rep Power: 13
Tleja is on a distinguished road
Hi Bruno

Thank you for your reply

Actually, my system is multi-phases system (gas-solid). I think i can not solve UDS transport equation by directly adding volumetric source term as you mentioned.

As my understanding, my user-defined scalar should be solved according to equation 1.3-5 in the link of http://www.afs.enea.it/project/neptu.../th/node14.htm

Thus, UDS unit in each term should be consistent with each other for solving the other transports equation.

I have derived the unit of each term. I found that if i want to solve UDS in the unit of kmol/m(s)^3, the unit of each term should be kg/m^3 s*(kmol/m(s)^3).

***m(s)^3 = volume of solid phase (this unit can make a consistence by multipying volume fraction of solid phase)***

Nevertheless, I'm not sure that it is possible to solve UDS in the unit of kmol/m(s)^3 ??????

Best regard
Tleja
Tleja is offline   Reply With Quote

Old   December 29, 2016, 08:59
Default
  #4
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tleja View Post
Hi Bruno

Thank you for your reply

Actually, my system is multi-phases system (gas-solid). I think i can not solve UDS transport equation by directly adding volumetric source term as you mentioned.

As my understanding, my user-defined scalar should be solved according to equation 1.3-5 in the link of http://www.afs.enea.it/project/neptu.../th/node14.htm

Thus, UDS unit in each term should be consistent with each other for solving the other transports equation.

I have derived the unit of each term. I found that if i want to solve UDS in the unit of kmol/m(s)^3, the unit of each term should be kg/m^3 s*(kmol/m(s)^3).

***m(s)^3 = volume of solid phase (this unit can make a consistence by multipying volume fraction of solid phase)***

Nevertheless, I'm not sure that it is possible to solve UDS in the unit of kmol/m(s)^3 ??????

Best regard
Tleja
Your source terms have to be consistent, but not necessarily the same unit. You might have a equation that is kg/m3.s and another one that is kmol/m3.s.

To make my example clear, imagine you have one equation for water vapor that its source term unit is kg/m3.s and you have one for liquid water which is in kg/m3.s.

Imagine you have one equation called FUNCTION (kg/m3.s), when creating your source terms, you need to do something like this

Source for gas = FUNCTION (kg/m3.s)

Source for liquid = FUNCTION/MOLECULAR_WEIGHT (kg/m3.s * kmol/kg -> kmol/m3.s)
Bruno Machado is offline   Reply With Quote

Old   December 30, 2016, 04:21
Default
  #5
Member
 
Tleja
Join Date: Sep 2013
Posts: 40
Rep Power: 13
Tleja is on a distinguished road
Quote:
Your source terms have to be consistent, but not necessarily the same unit. You might have a equation that is kg/m3.s and another one that is kmol/m3.s.

To make my example clear, imagine you have one equation for water vapor that its source term unit is kg/m3.s and you have one for liquid water which is in kg/m3.s.

Imagine you have one equation called FUNCTION (kg/m3.s), when creating your source terms, you need to do something like this

Source for gas = FUNCTION (kg/m3.s)

Source for liquid = FUNCTION/MOLECULAR_WEIGHT (kg/m3.s * kmol/kg -> kmol/m3.s)
Hi Bruno

Thank you so much for giving me good information

As you mentioned about source for liquid, you mean that the unit of my scalar (UDS) should be kmol/kg. Is it right??

Unfortunately, the specie in my system can not be defined in term of certain molecular weight because this specie is polymer. Nevertheless, i know only amount of polymer in term of molar concentration (kmol/m3).

Do you have any idea to calculate UDS transport equation for molar concentration (kmol/m3)?

Best Regard

Tleja
Tleja is offline   Reply With Quote

Old   January 2, 2017, 06:04
Default
  #6
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Tleja View Post
Hi Bruno

Thank you so much for giving me good information

As you mentioned about source for liquid, you mean that the unit of my scalar (UDS) should be kmol/kg. Is it right??

Unfortunately, the specie in my system can not be defined in term of certain molecular weight because this specie is polymer. Nevertheless, i know only amount of polymer in term of molar concentration (kmol/m3).

Do you have any idea to calculate UDS transport equation for molar concentration (kmol/m3)?

Best Regard

Tleja
No, what I meant is that you will be taking something from one equation (gas) and adding in another (liq), but this has to respect the unit conversion.

Considering volume which is an easy unit, if you take 1m3 from one equation, you can add in a different equation as 1000 liters. You have 2 different equations, with 2 different units, but what you have taken from one, was converted to a different unit and was added into the second.
Bruno Machado is offline   Reply With Quote

Old   April 10, 2017, 12:09
Default
  #7
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Hello everyone!

I have almost the same problem: I want to define a UDS in g/m3 and the corresponding Source term in g/(m3s). To avoid the unit problems I have passed all to kg so my UDS is in kg/m3 and the source term in kg/(m3s)...but it didn't work fine.

Can I change the UDS units somewhere?

How do you "say" to Fluent that your units are g/m3 or kmol/m3?? (If I didn't missunderstand u, the default units are kg/m3)
rarnaunot is offline   Reply With Quote

Old   April 10, 2017, 17:23
Default
  #8
Member
 
Tleja
Join Date: Sep 2013
Posts: 40
Rep Power: 13
Tleja is on a distinguished road
Hi Rarnaunot

In my understanding, your UDS unit can be whatever you want.

But, you have to make sure the unit of each term in UDS transports equation is the same.

Please take a look at equation 9.3-1 or 9.3-5
https://www.sharcnet.ca/Software/Flu...ug/node385.htm

The unit for all terms have to be the same (kg/m3s)(UDS unit).

if i miss understanding, Please let me know

Best Regard
Tleja
Tleja 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
When to use User-defined Scalar (UDS) for concentration? THC FLUENT 1 May 30, 2019 10:04
Perfect sink for an UDS scalar concentration Peter023 FLUENT 8 June 28, 2018 12:48
relationship between specified flux and UDS concentration kangluyang FLUENT 0 November 16, 2016 09:42
unsteady udf for concentration uds borhan_sd@yahoo.com Fluent UDF and Scheme Programming 0 July 15, 2013 04:32
UDS: including concentration expansion coefficient Derek FLUENT 0 March 2, 2006 15:22


All times are GMT -4. The time now is 22:13.