CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming


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

LinkBack Thread Tools Display Modes
Old   October 16, 2013, 23:19
Talking Define_dpm_source
New Member
Join Date: Jul 2013
Posts: 15
Rep Power: 6
anthony05 is on a distinguished road
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";
int i;
i = mixture_specie_index(m,name);



C_DPMS_YI(c, t, i) += mass1*udf_dpm_relax*strength;
anthony05 is offline   Reply With Quote


dpm, fluent, udf

Thread Tools
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 On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 14:58.