|
[Sponsors] |
July 21, 2022, 09:20 |
DPM particle species index
|
#1 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
I am trying to write a UDF to determine the density as function of composition and temperature using the DEFINE_DPM_PROPERTY udf. Now I am trying to access the species index by name (as I would in a gas mixture) however this does not work for the combusting type DPM particle.
Any advise on how to do this? I have given an example of my current code below: DEFINE_DPM_PROPERTY(rho_particle, c, t, tp, T) { Material *cond_mix = TP_MATERIAL(tp); int ind_A = mixture_specie_index(cond_mix, "a"); /* specie index A */ int ind_B = mixture_specie_index(cond_mix, "b"); /* specie index B */ int ns; Material *sp; real mf[MAX_SPE_EQNS]; mixture_species_loop(cond_mix, sp, ns) { mf[ns] = TP_COMPONENT_I(tp, ns); /* component mass fraction */ } rho_A = ... rho_B = ... real rho = 1/(mf[ind_A]/rho_A + mf[ind_B]/rho_B) return rho; } Thank you! |
|
Tags |
combusting particle, species mass fraction, udf code |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VOF, DPM model - particle penetrate phase interface issue! | dwoh12 | Fluent Multiphase | 1 | May 20, 2022 00:49 |
DPM: Table of Distance Traveled of each Particle | JacobMillerChemE | Fluent Multiphase | 0 | July 17, 2020 14:56 |
[OpenFOAM] Paraview 3.98 - errors when saving geometry file | pajot | ParaView | 1 | September 28, 2013 11:45 |
Dpm model, setting particle number | wagnerqb | FLUENT | 7 | March 23, 2013 22:06 |
Burning Particle (DPM) | sega | FLUENT | 2 | July 31, 2010 05:08 |