|
[Sponsors] |
C_DPMS_CONCENTRATION returns 0, rather than the actual DPM concentration in a cell |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2024, 11:33 |
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 |
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? |
|
Tags |
dpm, heatmass, udf |
|
|
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 |
DPM concentration of each fraction | JFeg | FLUENT | 5 | September 26, 2008 13:32 |
DPM concentration | jack | FLUENT | 0 | July 30, 2008 10:12 |
DPM concentration | Umesh Shah | FLUENT | 1 | June 6, 2003 14:57 |