CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Solving for absolute enthalpy in the 2.2.x psiReactionThermo

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By dkxls

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 24, 2013, 10:22
Lightbulb Solving for absolute enthalpy in the 2.2.x psiReactionThermo
  #1
Member
 
sushant's Avatar
 
Join Date: Mar 2009
Location: Switzerland
Posts: 40
Rep Power: 17
sushant is on a distinguished road
Dear all,

I am trying to change the energy equation variable in 2.2.x sprayFoam from sensible enthalpy to absolute enthalpy. This is my current thermophysical setup:

Code:
thermoType
{
    type            hePsiThermo;
    mixture         reactingMixture;
    transport       sutherland;
    thermo          janaf;
    energy          sensibleEnthalpy;
    equationOfState perfectGas;
    specie          specie;
}
If I change sensibleEnthalpy to absoluteEnthalpy I get a list of possible combinations supported, which does not include the one I want. http://www.openfoam.org/version2.2.0/thermophysical.php has this to say:

Quote:
If the particular combination of models is not available in the list, that combination can be compiled into a library or the application (as always).
If I look in src/thermophysicalModels/reactionThermo/psiReactionThermo/psiReactionThermos.C, it is straightforward to construct absoluteEnthalpy variants that will apply for homogeneousMixture, inhomogeneousMixture, etc., which is done by

Code:
makeReactionThermo
(
    psiThermo,
    psiReactionThermo,
    hePsiThermo,
    inhomogeneousMixture,
    sutherlandTransport,
    absoluteEnthalpy,
    janafThermo,
    perfectGas,
    specie
);
However the construction for the reaction mixtures is:

Code:
makeReactionMixtureThermo
(
    psiThermo,
    psiReactionThermo,
    hePsiThermo,
    reactingMixture,
    gasHThermoPhysics
);
How can I reformulate this to use the absolute enthalpy?

Regards,
Sushant
__________________
If you only have a hammer, you tend to see every problem as a nail.
sushant is offline   Reply With Quote

 


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
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 08:35
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 06:37
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07


All times are GMT -4. The time now is 09:26.