Defining species mass fraction using a UDF
I'd like to know how to define species mass fraction with a UDF.
I found the macro C_YI(c,t,i), for defining the species mass fraction.
But how to hook this in fluent?
Probably under inlet at the boundary conditions panel,
but which is the appropriate general-purpose macro for this?
I tried the following but the mass fraction doesn't change.
DEFINE_PROFILE has to return a value using C_PROFILE(c,t,i):
DEFINE_PROFILE(species_profile, t, i)
if (temp_avg > 700)
C_PROFILE(c,t,i) = 0.2;
C_PROFILE(c,t,i) = 0.8;
}Hook it in the boundary condition panel for your fluid zone(s) and make sure that Sum[C_YI(i)] = 1 is still valid after executing this UDF !
coglione thank you very much for the quick response.
Thanks again :)
|All times are GMT -4. The time now is 21:10.|