|
[Sponsors] |
May 14, 2020, 07:14 |
Mixture Properties
|
#1 |
New Member
Vidushi
Join Date: Sep 2018
Location: Cape Town
Posts: 20
Rep Power: 8 |
Hi everyone,
I am writing a UDF to find the change in Gibbs free energy for a volumetric reaction in FLUENT, which is a function of the enthalpy and entropy of the reaction species. I've created a gaseous mixture for the reaction in FLUENT and selected the Peng-Robinson method for calculating the density of the mixture in the mixture panel. In the UDF, when I use C_H(c,t) to access the enthalpy of the mixture in the cell, I want to know will it return me the enthalpy which is a sum of Partial Molar enthalpies of the gas mixture species and not the sum of the enthalpies of pure species in the gas mixture. Does anybody have any idea about this? I am also not sure if I'm using the right macro C_H(c,t) to retrieve the enthalpy. Should I use the MIXTURE_enthalpy macro (given in the example of Real gas UDF, Multispecies UDF section 8.2.6.9.1, p466) to retrieve the total enthalpy instead? |
|
May 14, 2020, 08:02 |
Enthalpy
|
#2 |
Senior Member
|
There is no macro or function called Mixture_Enthalpy. The one you are referring to is a user defined function that returns value of enthalpy to Fluent for a real gas. C_H is the macro that stores enthalpy of whole mixture and not of individual species. To fetch enthalpy of individual species, either you could back calculate using C_H and C_YI (macro for storing mass fractions of species) or you can use generic_property function along with PROP_hform and PROP_href to fetch enthalpy of formation and reference enthalpy for each species.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
May 16, 2020, 14:43 |
|
#3 |
New Member
Vidushi
Join Date: Sep 2018
Location: Cape Town
Posts: 20
Rep Power: 8 |
Thank you, Sir, for clarifying. I really appreciate it.
|
|
November 10, 2024, 04:46 |
I meet the same problem in How to Define Species Enthalpy in UDF?
|
#4 |
New Member
广东
Join Date: Sep 2024
Posts: 5
Rep Power: 2 |
||
Tags |
enthalpy equation, entropy production, mixture of gases, reaction modelling, udf customize |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to call mixture properties in a UDF | rewol | Fluent UDF and Scheme Programming | 10 | May 6, 2021 09:29 |
Is it possible to define properties of mixture in Mixture model? | AllenZHANG | Fluent Multiphase | 0 | June 21, 2018 10:11 |
defining nacl properties in a one phase mixture | galasinus | Fluent Multiphase | 1 | January 21, 2016 13:52 |
Udf to define new mixing law between properties of different phases in Mixture model | saurabhg2014 | Fluent UDF and Scheme Programming | 0 | February 24, 2015 04:23 |
properties of solid mixture | Ahmed Khattab | OpenFOAM | 0 | December 26, 2012 14:59 |