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

PengRobinson in foam ext 3.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 30, 2018, 11:05
Lightbulb PengRobinson in foam ext 3.2
  #1
New Member
 
Enrico De Filippi
Join Date: Jul 2018
Location: Brescia, Italy
Posts: 12
Rep Power: 2
EnricoDeFilippi is on a distinguished road
Hi, I'm simulating an axial turbine with real gas. I'm using foam ext 3.2 because I need to use the mixing plane approach but it seems to have problem with interpolation with 4.0.
So, I'd like to know if someone can help me to set exactly the constant/thermophysicalProperties file and maybe tell what I've to do to add PengRobinson library to foam ext 3.2.
At the moment I've set:
thermoType
{
type hePsiThermo;
mixture pureMixture;
transport polynomial;
thermo hPolynomial;
equationOfState PengRobinsonGas;
specie specie;
energy sensibleEnthalpy;
}

mixture
{
specie
{
nMoles 1;
molWeight 134.05;
}
equationOfState
{
Tc 427.16;
Vc 0.0025928;
Pc 36.51e5;
omega 0.3776;
}
thermodynamics
{
Hf 0;
Sf 0;
CpCoeffs<7> (6.06394716678908 0.0267462245188099 -1.40821177584876e-8 0 0 0 0);
}
transport
{
mu 2.1348e-05:
Pr 0.0048;
}
}
Moreover, I've addded the PengRobertson library to /foam/foam-extend-3.2/src/thermophysicalModels/specie/equationOfState taken from https://github.com/OpenFOAM/OpenFOAM...engRobinsonGas but the error i get is: --> FOAM FATAL IO ERROR:
Attempt to return dictionary entry as a primitive

file: /home/enrico/S1R1_3_new/constant/thermophysicalProperties::thermoType from line 23 to line 29.

From function ITstream& primitiveEntry::stream() const
in file db/dictionary/dictionaryEntry/dictionaryEntry.C at line 82.

FOAM aborting



Any help will be appreciated. Thanks in advance.
EnricoDeFilippi is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 03:21
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 10:56
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 15:11
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 15:00
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 09:19


All times are GMT -4. The time now is 17:06.