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

Mixture Properties

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By vinerm

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2020, 07:14
Default Mixture Properties
  #1
New Member
 
Vidushi
Join Date: Sep 2018
Location: Cape Town
Posts: 20
Rep Power: 8
Vidushi is on a distinguished road
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?
Vidushi is offline   Reply With Quote

Old   May 14, 2020, 08:02
Default Enthalpy
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
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.
Vidushi likes this.
__________________
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.
vinerm is offline   Reply With Quote

Old   May 16, 2020, 14:43
Smile
  #3
New Member
 
Vidushi
Join Date: Sep 2018
Location: Cape Town
Posts: 20
Rep Power: 8
Vidushi is on a distinguished road
Thank you, Sir, for clarifying. I really appreciate it.
Vidushi is offline   Reply With Quote

Old   November 10, 2024, 04:46
Default 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
Markgt is on a distinguished road
Quote:
Originally Posted by Vidushi View Post
Thank you, Sir, for clarifying. I really appreciate it.
Dear Vidushi,

Can you talk about how do you solve the problem? Thank you !
Markgt is offline   Reply With Quote

Reply

Tags
enthalpy equation, entropy production, mixture of gases, reaction modelling, udf customize


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
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


All times are GMT -4. The time now is 13:44.