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

C_DPMS_CONCENTRATION returns 0, rather than the actual DPM concentration in a cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2024, 05:55
Default C_DPMS_CONCENTRATION returns 0, rather than the actual DPM concentration in a cell
  #1
New Member
 
Hans Woerd
Join Date: Jan 2024
Posts: 2
Rep Power: 0
hanswoerd is on a distinguished road
I am using a DEFINE_HEAT_MASS UDF to calculate source terms for my discrete phase. This discrete solid phase reacts with oxygen and at some point the sum of species source terms in the cell exceeds the total amount of oxygen present in that cell. To solve this I would like to define a upper limit of the source term like so:

real m_o2_cell = C_R(c,t)*C_VOLUME(c,t)*y_O2; /* mass of oxygen in cell [kg]*/
real m_DPM_cell = C_DPMS_CONCENTRATION(c,t)*C_VOLUME(c,t); /* mass of discrete phase in cell [kg]*/
real m_o2_max = m_o2_cell * TP_MASS(tp) / m_DPM_cell; /* distribute the present oxygen evenly over all DPM mass in the cell and scale with particle mass [kg]*/
real dmdt = MIN(dmdt_kin, m_o2_max/CURRENT_TIMESTEP); /* calculate corrected dmdt [kg/s]*/
dzdt->species[ind_O2] -= dmdt; /* change in gas phase species mass [kg/s]*/

Obviously, non-specified variables are defined earlier in the UDF.
However, the macro C_DPMS_CONCENTRATION(c,t) just gives back a value of 0 each time the UDF is called. In Fluent I can access this DPM concentration as well under discrete phase variables//DPM concentration, which gives values larger than 0.
Am I using the macro incorrectly or do I need to add some command to access this data?
hanswoerd is offline   Reply With Quote

Reply

Tags
define_heat_mass, dpm, fluent, source terms, udf


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
A UDF to calculate energy per a cell and then returns new CO2 content in a cell. visitor Fluent UDF and Scheme Programming 54 April 11, 2021 23:29
UDF in case with DPM modle POSTHU Fluent UDF and Scheme Programming 0 March 3, 2021 08:21
Discrete Phase Model and DPM Concentration Zach FLUENT 1 March 10, 2009 16:36
DPM concentration of each fraction JFeg FLUENT 5 September 26, 2008 13:32
DPM concentration Umesh Shah FLUENT 1 June 6, 2003 14:57


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