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

DEFINE_MASS_TRANSFER UDF

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 11, 2005, 08:42
Default DEFINE_MASS_TRANSFER UDF
  #1
Maciej
Guest
 
Posts: n/a
I want to use the DEFINE_MASS_TRANSFER UDF to compute the mass transfer across phase interface.

The documentation about that UDF is very unclear and actually doesn't provide what in fact that function compute.

In chapter 4.4.4 we have: "The mass transfer rate specified using a DEFINE_MASS_TRANSFER UDF..." - so it means that it computes the mass transfer rate [kmol/(m^3s)]

In chapter 24.7 in the definition equation (24.7-1) source/sink terms are also expressed in [kmol/(m^3s)]

BUT:

Also in chapter 4.4.4 (a few lines down) we have: "The following UDF, named liq_gas_source, specifies a simple mass transfer coefficient..." - so it seems to be the mass transfer coefficient - but this is different quantity and is expressed in [m/s]

In appendix B.1 "VOF Model" in Table B.1.2 (3 position form the bottom): "mass transfer coefficient | DEFINE_MASS_TRANSFER | phase interaction" so again mass transfer coefficient [m/s]

Does anyone know what quantity in fact that UDF computes?

regards

Maciej
  Reply With Quote

Old   November 11, 2005, 09:14
Default Re: DEFINE_MASS_TRANSFER UDF
  #2
RoM
Guest
 
Posts: n/a
I just copied the first part of the sample udf from the manual

m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)* fabs(C_T(cell,liq)-T_SAT)/T_SAT;

from units we see

C_VOF is m3_liquid/m3_cell

C_R is kg_liquid/m3_liquid

0.1 is the time factor in 1/s (you could read it as 10 percent per second)

so the return value of m_lg is kg_liquid/m3_cell/second which is the total mass transfer and not the transfer coefficient as stated in the manual.I think its simply an documentation error.

RoM
  Reply With Quote

Old   November 11, 2005, 10:15
Default Re: DEFINE_MASS_TRANSFER UDF
  #3
Maciej
Guest
 
Posts: n/a
Thanks for the answer - now I am sure what I should compute in that UDF.

In fact the units for mass transfer rate can be set in Define/Units/mass-transfer-rate so it can be kmol/m^3s or kmol/cm^3s or kmol/ft^3s - so its probably not kg/m^3s.

best regards

Maciej
  Reply With Quote

Old   November 11, 2005, 10:33
Default Re: DEFINE_MASS_TRANSFER UDF
  #4
RoM
Guest
 
Posts: n/a
The units from define->units dont apply to udfs. UDFs only use SI units and mass transfer is usually handled as kg/m^3/s. I can remember only two udf that require kmol/m^3/s (DEFINE_VR_RATE and DEFINE_HET_RXN_RATE).

RoM
  Reply With Quote

Old   November 11, 2005, 11:01
Default Re: DEFINE_MASS_TRANSFER UDF
  #5
Maciej
Guest
 
Posts: n/a
Oh, I didn't know about it. Thanks for that. I was sure the units from Define menu apply to every Fluent feature. I have to study the documentation more thoroughly.

Maciej
  Reply With Quote

Old   December 2, 2005, 21:03
Default Re: DEFINE_MASS_TRANSFER UDF
  #6
Maciej
Guest
 
Posts: n/a
Hello,

I have a question concerning DEFINE_MASS_TRANSFER UDF. Do you have any example other of that in manual? I am trying to make simulation with mass transfer accross interface and it seems to me that I need a cell geometry (volume) to make this. Also is that UDF applied to all cells or only these which defines the interface?

regards, Maciej
  Reply With Quote

Reply

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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 04:41.