CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

usage of PengRobinsonGas equation of state

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 10, 2021, 06:54
Default usage of PengRobinsonGas equation of state
  #1
New Member
 
Alexander Yurishchev
Join Date: Feb 2019
Posts: 21
Rep Power: 7
alextau is on a distinguished road
Hello,

I am using compressibleInterFoam solver and trying to apply peng robinson eqaution of state on methane gas.

The followng code in thermoPhysicalProperties.methane:


thermoType
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState PengRobinsonGas;
specie specie;
energy sensibleInternalEnergy;
}

mixture
{
specie
{
molWeight 16.04;
}
thermodynamics
{
Cp 3300;
Hf 0;
}
transport
{
mu 1.39e-05;
Pr 0.8;
}

equationOfState
{
Tc 190.4;
Vc 99.2E-03;
Pc 4.6E+6;
Zc 0.85;
omega 0.011;
}
}


and the output is :


31]
[31]
[31] file: IOstream.thermoType at line 0.
[31]
[31] From static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*, std::initializer_list<const char*>, const Foam::word&) [with Thermo = Foam::rhoThermo; Table = Foam::HashTable<Foam::autoPtr<Foam::rhoThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>; typename Table::iterator = Foam::HashTable<Foam::autoPtr<Foam::rhoThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>::iterator]
[31] in file lnInclude/basicThermoTemplates.C at line 81.
[31]
FOAM parallel run exiting
[31]
ibleInternalEnergy
heRhoThermo reactingMixture const eConst rhoConst specie sensibleInternalEnergy
heRhoThermo reactingMixture const hConst adiabaticPerfectFluid specie sensibleEnthalpy
heRhoThermo reactingMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy
heRhoThermo reactingMixture const hConst perfectFluid specie sensibleEnthalpy
heRhoThermo reactingMixture const hConst perfectGas specie sensibleEnthalpy
heRhoThermo reactingMixture const hConst rhoConst specie sensibleEnthalpy
heRhoThermo reactingMixture polynomial hPolynomial icoPolynomial specie sensibleEnthalpy
heRhoThermo reactingMixture polynomial hPolynomial icoPolynomial specie sensibleInternalEnergy
heRhoThermo reactingMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy
heRhoThermo reactingMixture sutherland janaf incompressiblePerfectGas specie sensibleInternalEnergy
heRhoThermo reactingMixture sutherland janaf perfectGas specie sensibleEnthalpy
heRhoThermo reactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy
heRhoThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleEnthalpy
heRhoThermo singleStepReactingMixture sutherland janaf perfectGas specie sensibleInternalEnergy
heRhoThermo veryInhomogeneousMixture const hConst incompressiblePerfectGas specie sensibleEnthalpy
heRhoThermo veryInhomogeneousMixture const hConst perfectGas specie sensibleEnthalpy
heRhoThermo veryInhomogeneousMixture sutherland janaf incompressiblePerfectGas specie sensibleEnthalpy
heRhoThermo veryInhomogeneousMixture sutherland janaf perfectGas specie sensibleEnthalpy
[27]
[27]
[27] file: IOstream.thermoType at line 0.
[27]
[27] From static typename Table::iterator Foam::basicThermo::lookupThermo(const Foam::dictionary&, Table*, std::initializer_list<const char*>, const Foam::word&) [with Thermo = Foam::rhoThermo; Table = Foam::HashTable<Foam::autoPtr<Foam::rhoThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>; typename Table::iterator = Foam::HashTable<Foam::autoPtr<Foam::rhoThermo> (*)(const Foam::fvMesh&, const Foam::word&), Foam::word, Foam::string::hash>::iterator]
[27] in file lnInclude/basicThermoTemplates.C at line 81.
[27]
FOAM parallel run exiting




Well, it seems that PengRobinson is not even an option here. I checked in src that it is there. What am I doing wrong?

Please help,
Alex
alextau is offline   Reply With Quote

Old   March 1, 2023, 19:16
Default
  #2
Senior Member
 
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 107
Rep Power: 5
dasith0001 is on a distinguished road
Hi,

What OF version are you running ?

Anything above OF 8 should work, I run on OF10 and the dynamicCode set it up for you and it works fine.

Cheers,
Dasith
dasith0001 is offline   Reply With Quote

Reply


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
Usage of PengRobinsonGas Hausmarke87 OpenFOAM Running, Solving & CFD 3 September 8, 2020 11:15
Simple piston movement in cylinder- fluid models arun1994 CFX 4 July 8, 2016 02:54
continuity equation was diverging in transient state stenber FLUENT 0 March 19, 2016 22:37
How can I add an equation of state for rho and cp ?? Canesin OpenFOAM Programming & Development 0 May 14, 2010 17:52
Real gas equation of state for gas mixture ahourri FLUENT 0 April 30, 2008 11:23


All times are GMT -4. The time now is 00:30.