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

Odd units on UDS for Isotropic Diffusion

Register Blogs Community New Posts Updated Threads Search

Like Tree12Likes
  • 4 Post By KristianEtienne
  • 1 Post By KristianEtienne
  • 1 Post By MASOUD
  • 5 Post By KristianEtienne
  • 1 Post By KristianEtienne

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 15, 2011, 19:59
Default Odd units on UDS for Isotropic Diffusion
  #1
New Member
 
Adam
Join Date: Jan 2011
Posts: 4
Rep Power: 15
bluemonkee is on a distinguished road
In the ANSYS FLUENT user's guide http://my.fit.edu/itresources/manual...ug/node348.htm , the units for diffusivity are kg/(m*s) as opposed to the conventional units for diffusivity (m^2/s). Can anyone help me to understand this?

Thanks!
bluemonkee is offline   Reply With Quote

Old   January 17, 2011, 06:31
Default
  #2
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 16
KristianEtienne is on a distinguished road
Hi,

The UDS equation is actually solving \rho\varphi, \rho being the fluid density and \varphi being your scalar.

Multiplying your "expected" units for diffusivity with density gives the units shown in the user guide.

Density is included "explicitly" in the transient and convective terms, and all other terms (i.e. diffusion and source terms) must have units kg/(m^3 s).

Cheers!
Mazze[ITA], chek321, KYG and 1 others like this.
KristianEtienne is offline   Reply With Quote

Old   January 17, 2011, 08:35
Default Thanks!
  #3
New Member
 
Adam
Join Date: Jan 2011
Posts: 4
Rep Power: 15
bluemonkee is on a distinguished road
Thanks for your help!
bluemonkee is offline   Reply With Quote

Old   January 28, 2011, 10:04
Default
  #4
Member
 
Neil Duffy
Join Date: Mar 2010
Posts: 34
Rep Power: 16
neilduffy1024 is on a distinguished road
Hi,

My question is quite similar. I am solving a number of UDS's, mainly for solid mass and solid temp in a single phase simulation (the multiphase options do not allow me to select the solid in the porous media as the second phase). For the temperature UDS, the diffusivity is the thermal diffusivity and is related to the solid density. My concern is that this is not the case because all UDS diffusivities are hooked into the mixture materials. The manuals are not very clear either. Can anyone shed some light on this?

Thanks,

Neil
neilduffy1024 is offline   Reply With Quote

Old   July 11, 2011, 14:11
Default question about UDS diff
  #5
Senior Member
 
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 17
MASOUD is on a distinguished road
Quote:
Originally Posted by KristianEtienne View Post
Hi,

The UDS equation is actually solving \rho\varphi, \rho being the fluid density and \varphi being your scalar.

Multiplying your "expected" units for diffusivity with density gives the units shown in the user guide.

Density is included "explicitly" in the transient and convective terms, and all other terms (i.e. diffusion and source terms) must have units kg/(m^3 s).

Cheers!
Hi Kristian,

How about if the scalar something other than 'mass fraction'? Precisely, if the scalar is electronic conductivity (1/ohm.meter), should it be multiplied by fluid density?

Thanks
MASOUD is offline   Reply With Quote

Old   July 11, 2011, 14:37
Default
  #6
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 16
KristianEtienne is on a distinguished road
Hi Masoud,

I assume from your question that you are interested in modelling an electrical potential? The electrical potential is then your "scalar", while the electrical conductivity is the "diffusivity". Anyway, ss long as you solve for UDS without modifying this, it is on the form posted previously, i.e. density weighted.

As long as all your values (i.e. fields, conductivity and source-terms) are consistent, this should be ok. However, for clarity, I would take the time to re-write the UDS equations (thorugh the DEFINE_UDS_UNSTEADY and DEFINE_UDS_FLUX) so that you can specify the electrical conductivity directly. This is especially crucial in a multiphase setting, where your density varies, but not necessarily the conductivity.

Good luck!

-KE
chek321 likes this.
KristianEtienne is offline   Reply With Quote

Old   July 11, 2011, 15:26
Default
  #7
Senior Member
 
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 17
MASOUD is on a distinguished road
Quote:
Originally Posted by KristianEtienne View Post
Hi Masoud,

I assume from your question that you are interested in modelling an electrical potential? The electrical potential is then your "scalar", while the electrical conductivity is the "diffusivity". Anyway, ss long as you solve for UDS without modifying this, it is on the form posted previously, i.e. density weighted.

As long as all your values (i.e. fields, conductivity and source-terms) are consistent, this should be ok. However, for clarity, I would take the time to re-write the UDS equations (thorugh the DEFINE_UDS_UNSTEADY and DEFINE_UDS_FLUX) so that you can specify the electrical conductivity directly. This is especially crucial in a multiphase setting, where your density varies, but not necessarily the conductivity.

Good luck!

-KE
Thanks for the prompt reply.

That's right. It's a single phase fuel cell model with two UDSs for the 'electronic potential' and 'ionic potential'. The scalars unit is (Volt) and the diffusivity is (1/(ohm.m)). Also, I am going to model species transport using 5 UDS for the 5 existing species, instead of Fluent species model.

I tried to contact Ansys customer support but didn't get any clear answer for these questions:

1. In the material properties panel, Fluent asks for the diffusivity in terms of (Kg/m.s). Is this applicable to all scalars?

2. If the answer is yes, then have a look at the Eq. 9.1.1 of the user guide please. By ignoring the transient and convective terms (that's the case in my simulation), I'll have just diffusive and source terms. The source term unit is (Amp/m3). To be consistent, diffusivity must be (1/(ohm.m)) which is the realistic unit. Then why should I multiply the UDS diffusivity by the fluid density which makes the equation inconsistent?

3. And for the species transport modeling through UDS, again, should I multiply it by density?

I appreciate your time answering these questions in advance.

Masoud
Attached Images
File Type: jpg UDS 9.1.1.jpg (8.3 KB, 96 views)
File Type: jpg Species 7.1.1.jpg (5.5 KB, 90 views)
chek321 likes this.
MASOUD is offline   Reply With Quote

Old   July 13, 2011, 04:08
Default
  #8
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 16
KristianEtienne is on a distinguished road
Hello again,

Your attached equation (9.1-1) is the generic UDS equation solved by FLUENT, if no modifications are made. Hence, by dimensional analysis, the diffusivity is the mass-diffusivity with dimensions kg/m.s. So, as long as you do not make use of the DEFINE_UDS_UNSTEADY and DEFINE_UDS_FLUX-macros, this will apply to all scalars. This means that you will be solving an equation for \rho \phi, where \phi is the electrical potential.

Consequently, for an unmodified UDS, the source term sould have units kg*(scalar unit)/m3.s.

However, if you disable the unsteady and convection term, you can specify the electrical conductivity directly as the diffusivity (ignore the units given in the materials panel in this case). The source term for electrical potential should then be in its expected units, i.e. Volt/ohm.m3.

To be sure that there isn't any "hidden" weighting within FLUENT, I would recommend that you run two (simple) simulations with different densities, and check that your electrical potential doesn't change.

When modelling species transport with an equation of the form of 7.1-1, assuming that Fick's law is applicable to your system, the diffusive mass flux should be \vec{J_i} = D_i \nabla Y_i, where D_i is the mass-diffusivity, with dimensions kg/m.s.

Good luck!
MASOUD, Tleja, chek321 and 2 others like this.
KristianEtienne is offline   Reply With Quote

Old   July 14, 2011, 01:48
Default
  #9
Senior Member
 
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 17
MASOUD is on a distinguished road
Quote:
Originally Posted by KristianEtienne View Post
Hello again,

Your attached equation (9.1-1) is the generic UDS equation solved by FLUENT, if no modifications are made. Hence, by dimensional analysis, the diffusivity is the mass-diffusivity with dimensions kg/m.s. So, as long as you do not make use of the DEFINE_UDS_UNSTEADY and DEFINE_UDS_FLUX-macros, this will apply to all scalars. This means that you will be solving an equation for \rho \phi, where \phi is the electrical potential.

Consequently, for an unmodified UDS, the source term sould have units kg*(scalar unit)/m3.s.

However, if you disable the unsteady and convection term, you can specify the electrical conductivity directly as the diffusivity (ignore the units given in the materials panel in this case). The source term for electrical potential should then be in its expected units, i.e. Volt/ohm.m3.

To be sure that there isn't any "hidden" weighting within FLUENT, I would recommend that you run two (simple) simulations with different densities, and check that your electrical potential doesn't change.

When modelling species transport with an equation of the form of 7.1-1, assuming that Fick's law is applicable to your system, the diffusive mass flux should be \vec{J_i} = D_i \nabla Y_i, where D_i is the mass-diffusivity, with dimensions kg/m.s.

Good luck!
Great! I'm now more confident about what I'm doing.

Just a quick question; this is NOT about UDS, it's species model! I need to impose a convective mass transfer B.C. to an external boundary. As you may know, Fluent doesn't allow to specify species mass flux on WALL/MASS FLOW INLET/VELOCITY INLET. We have to either use zero-flux or specified mass fraction for each species, which is not what I need. How would you deal with this? Here is the B.C.:

-D\nablaY=h*(Y0-Y)

I know the other option is to use UDS instead of species model and then specify UDS flux but it's a big headache!
MASOUD is offline   Reply With Quote

Old   July 14, 2011, 05:44
Default
  #10
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 16
KristianEtienne is on a distinguished road
Glad I could help!

Regarding the implementation for a species mass-flux at your boundaries, I believe that this is challenging. Could you maybe use Gauss-theorem to re-write your diffusive flux as a volumetric source/sink term present only in the cells adjacent to the wall in question?

As far as I can see (from dimensional considerations), the source term should then take the form

S_i = h(Y_0-Y_i) \frac{A_{cell}}{V_{cell}}

where A_{cell} is the area of the cell through which the flux occurs. In your UDF for the source you will need to check that your cell is adjacent to the boundary in question and activate the source term only in this region.

Note that this just is an idea, I am not certain that it will work as expected, but it might be worth trying out?
chek321 likes this.
KristianEtienne is offline   Reply With Quote

Old   July 14, 2011, 18:05
Default
  #11
Senior Member
 
MASOUD
Join Date: Mar 2009
Posts: 102
Rep Power: 17
MASOUD is on a distinguished road
Quote:
Originally Posted by KristianEtienne View Post
Glad I could help!

Regarding the implementation for a species mass-flux at your boundaries, I believe that this is challenging. Could you maybe use Gauss-theorem to re-write your diffusive flux as a volumetric source/sink term present only in the cells adjacent to the wall in question?

As far as I can see (from dimensional considerations), the source term should then take the form

S_i = h(Y_0-Y_i) \frac{A_{cell}}{V_{cell}}

where A_{cell} is the area of the cell through which the flux occurs. In your UDF for the source you will need to check that your cell is adjacent to the boundary in question and activate the source term only in this region.

Note that this just is an idea, I am not certain that it will work as expected, but it might be worth trying out?
Yes, you are right and I've been working on this during the past couple weeks. I've used UDMs to mark the cells adjacent to the Wall in a ADJUST macro and then imposed the sink/source terms to these cells through SOURCE macro. As usual, divergence issue exists! I'll update you again as I'm going to make some changes.

Meanwhile, isn't (Cell_Area)/(Cell_Volume)=1 in 2D case?

Also, is there any other setting I should care about or we're all set just with imposing the sink/sources to the adjacent cells? Maybe setting a velocity profile?

Thanks.
MASOUD is offline   Reply With Quote

Old   March 29, 2017, 08:16
Question
  #12
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Quote:
Originally Posted by KristianEtienne View Post

(...)

Consequently, for an unmodified UDS, the source term sould have units kg*(scalar unit)/m3.s.
(...)
Hello,

How can I set the units of my UDS??

I need kmol/m3 as UDS units to get a Source term with kmol/m3 s.... Should i express my UDS as kmol/kg (dividing kmol/m3 by the density)??

Thanks
rarnaunot is offline   Reply With Quote

Old   October 8, 2017, 05:47
Default
  #13
New Member
 
elnaz hatami
Join Date: Jul 2017
Posts: 1
Rep Power: 0
elnaz. is on a distinguished road
Quote:
Originally Posted by rarnaunot View Post
Hello,

How can I set the units of my UDS??

I need kmol/m3 as UDS units to get a Source term with kmol/m3 s.... Should i express my UDS as kmol/kg (dividing kmol/m3 by the density)??

Thanks
hello. I have the same question.
I appreciate your time answering these questions in advance.
thanks.
elnaz. is offline   Reply With Quote

Reply

Tags
diffusion, isotropic, kg/(m*s), uds, units


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
UDS source term units Ale FLUENT 3 March 29, 2017 08:08
How to define turbulent diffusion coeff. for UDS John FLUENT 4 October 16, 2015 13:38
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Help! How to calculate the diffusion flux of a UDS lzw FLUENT 0 June 18, 2008 04:50
ODD: no UDS flux across interior boundary Bob FLUENT 1 February 25, 2002 20:15


All times are GMT -4. The time now is 20:50.