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

UDF Multiphase chemical reaction.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2021, 19:15
Default UDF Multiphase chemical reaction.
  #1
New Member
 
U1990
Join Date: Apr 2021
Posts: 8
Rep Power: 5
U1990 is on a distinguished road
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.
U1990 is offline   Reply With Quote

Old   April 5, 2021, 11:12
Default
  #2
Member
 
Yasser Selima
Join Date: Mar 2009
Location: Canada
Posts: 51
Rep Power: 19
Yasser is on a distinguished road
show what you have, so someone can suggest how to proceed
Yasser is offline   Reply With Quote

Old   April 9, 2021, 04:04
Default
  #3
New Member
 
Jeroen
Join Date: Apr 2021
Posts: 17
Rep Power: 5
JeroenH is on a distinguished road
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.
JeroenH is offline   Reply With Quote

Reply

Tags
eulerian, multiphase, reaction, specie, 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
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


All times are GMT -4. The time now is 21:40.