CAPE Forum

Ansys => Fluent => Topic started by: infocfd on September 24, 2020, 04:46:00 PM

Title: Is there any UDF to access inter-phase mass transfer rate
Post by: infocfd on September 24, 2020, 04:46:00 PM
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.
Title: Re: Is there any UDF to access inter-phase mass transfer rate
Post by: william 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)
}

Title: Re: Is there any UDF to access inter-phase mass transfer rate
Post by: infocfd on September 24, 2020, 05:16:28 PM
Thank you!