|
[Sponsors] |
April 4, 2021, 19:15 |
UDF Multiphase chemical reaction.
|
#1 |
New Member
U1990
Join Date: Apr 2021
Posts: 8
Rep Power: 5 |
Hello, everyone.
I am trying to model a chemical reaction between two different fluids using Eulerian multiphase model. However, the reaction rate is calculated according to many correlations. I have writting a UDF code to incorporate this equations in model. But my problem is when I try to program the reaction between the specie 1 (in phase 1) with specie 2 (in phase 2). How can I identify and select a specific specie in a phase? I appreciate very much your help. |
|
April 5, 2021, 11:12 |
|
#2 |
Member
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19 |
show what you have, so someone can suggest how to proceed
|
|
April 9, 2021, 04:04 |
|
#3 |
New Member
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5 |
I am not sure this is what you need, but you can get the index of a species in a mixture with the following bit of code (example is for oxygen):
Material *mat = THREAD_MATERIAL(t0); int ind_O2 = mixture_specie_index(mat, "o2"); You can use this index to obtain the molecular weight or species mass fraction for example. |
|
Tags |
eulerian, multiphase, reaction, specie, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for accessing reaction rate of face of cells in a thread | Khan_CFD | Fluent UDF and Scheme Programming | 5 | June 15, 2020 11:04 |
UDF code help solve reaction rate equation palm oil | zirkov | Fluent UDF and Scheme Programming | 0 | February 13, 2017 11:34 |
UDF about reaction in fluent5.4 | Mark | FLUENT | 5 | May 1, 2014 18:39 |
Segmentation fault in running alternateSteadyReactingFoam,why? | NewKid | OpenFOAM | 18 | January 20, 2011 17:55 |
UDF : Chemical Reaction in Catalytic Converter | adhimac | FLUENT | 1 | March 27, 2001 15:04 |