|October 16, 2013, 23:19||
Join Date: Jul 2013
Posts: 15Rep Power: 5
I am trying to add mass to the continuous phase from particles using DEFINE_DPM_SOURCE.
The compound I want to add to the continuous phase is part of a mixture and the amount released is governed by particle temperature and a user defined scalar.
Currently the code adds co2 to the continuous phase but not the amount I have calculated. Does anyone have any ideas of how to solve this? Maybe something to do with the units of C_DPMS_YI.
Thanks in advance.
The code for the transfer to the continuous phase is:
DEFINE_DPM_SOURCE(dpm_source, c, t, S, strength, p)
Material *m = THREAD_MATERIAL(t);
char *name = "co2";
i = mixture_specie_index(m,name);
C_DPMS_YI(c, t, i) += mass1*udf_dpm_relax*strength;
|dpm, fluent, udf|