CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Fluent UDF and Scheme Programming

Define_dpm_source

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 16, 2013, 23:19
Talking Define_dpm_source
  #1
New Member
 
Anthony
Join Date: Jul 2013
Posts: 15
Rep Power: 4
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);

k=150000.0*exp(-200000.0/(P_T(p)*8.314));

mass1=k*P_USER_REAL(p,0);

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

Reply

Tags
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 16:54.