|
[Sponsors] |
May 10, 2021, 06:54 |
usage of PengRobinsonGas equation of state
|
#1 |
New Member
Alexander Yurishchev
Join Date: Feb 2019
Posts: 21
Rep Power: 7 |
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 |
|
March 1, 2023, 19:16 |
|
#2 |
Senior Member
Desh
Join Date: Mar 2021
Location: Sydney
Posts: 107
Rep Power: 5 |
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 |
|
|
|
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 |