Author Topic: Is there any UDF to access inter-phase mass transfer rate  (Read 889 times)

Offline infocfd

  • Newbie
  • *
  • Posts: 45
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
Is there any UDF to access inter-phase mass transfer rate
« on: September 24, 2020, 04:46:00 PM »
Advertisement
I need to access the inter-phase mass transfer rate using a UDF in Fluent for further processing. Is there any macro or other method in fluent to access that?

Thank you in advance.

Offline william

  • Full Member
  • ***
  • Posts: 159
  • Reputation: +15/-0
  • Know it, share it.
    • View Profile
Re: Is there any UDF to access inter-phase mass transfer rate
« Reply #1 on: September 24, 2020, 04:50:32 PM »
Hi,
You can access the interphase mass transfer rate using the following macro:

C_STORAGE_R_XV(cell,mixture_thread,SV_MASS_TRANSFER,k-1)

k in the above macro is the mass transfer mechanism number, which can be found from phase interaction panel in fluent. The number in the mass transfer mechanism before the 'From Phase', 'To Phase' option is the mass transfer mechanism number.

And if you are looking for a UDF, the following code illustrates the example:

The UDF is used to store the cavitation mass transfer rates in a UDM location.

#include "udf.h"
#define k 1
DEFINE_ADJUST(mass_transfer_access,d)
{
cell_t c;
Thread *t;
thread_loop_c(t,d)
begin_c_loop(c,t)
C_UDMI(c,t,0) = C_STORAGE_R_XV(c,t,SV_MASS_TRANSFER,k-1);
end_c_loop(c,t)
}


Offline infocfd

  • Newbie
  • *
  • Posts: 45
  • Reputation: +0/-0
  • Searching for solution
    • View Profile
Re: Is there any UDF to access inter-phase mass transfer rate
« Reply #2 on: September 24, 2020, 05:16:28 PM »
Thank you!