|
[Sponsors] |
OpenFoam Real Gas - Error message: "attempt to read beyond EOF" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 1, 2015, 17:24 |
OpenFoam Real Gas - Error message: "attempt to read beyond EOF"
|
#1 |
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 11 |
Hi everybody,
I need to simulate a compressible flow using redlich kwong state equation. I know that the solver rhoPisoFoam calls basicPsithermo.H. I have on src/thermophycalModels/basic/psithermo libraries of realGasEthermo and realGasHthermo. In this case, I need to use realGasEthermo in. The tutorial pitzDaily has thermophysicalproperties, like this : thermoType hPsiThermo<pureMixture<constTransport<specieThermo <hConstThermo<perfectGas>>>>>; and I change it to this : /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM Extend Project: Open Source CFD | | \\ / O peration | Version: 1.6-ext | | \\ / A nd | Web: www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object thermophysicalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // thermoType realGasEThermo<pureMixture<constTransport<realGasS pecieThermo<nasaHeatCapacityPolynomial<redlichKwon g>>>>>; mixture air 1 28.9 1000 0 1.8e-05 0.7; // ************************************************** *********************** // I change the thermophysicalModels from sourceforge and I compiled it. And now when I run this I have this error : --> FOAM FATAL IO ERROR: attempt to read beyond EOF file: /home/paul-maurice/Desktop/rhoPisoFoam/les/pitzDaily2/constant/thermophysicalProperties::mixture at line 20. From function ITstream::read(token& t) in file db/IOstreams/Tstreams/ITstream.C at line 84. FOAM exiting I have really no idea how to fix it, if someone have an idea. |
|
August 3, 2015, 15:46 |
|
#2 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 |
I am currently trying to edit eos to use redlich-kwong. If you could tell me where you started to implement R-K eos, i'd be able to help if i figure it out.
I am trying to use R-K with reacting foam. |
|
August 3, 2015, 18:44 |
|
#3 |
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 11 |
Hi, I set up the "real gas foam", it's an extension made by foam-extended group, this the link on sourceforge.
http://sourceforge.net/p/openfoam-ex...Thermo/~/tree/ Just click on download the snapshot. The real gas foam is the OpenFOAM-1.6-ext, so when you'll install it in your bashrc file precise this alias. I guess you can add the real gas libraries in your src folder in thermophysical models and after compile it. I don't work with reactingFoam but with sonicFoam, so I guess this is the only help I can provide to you about this. |
|
August 4, 2015, 14:13 |
|
#4 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 |
Well i am using OpenFOAM 2.4 currently, do you think it is compatible?
And how do i compile the once i downloaded the files? |
|
August 4, 2015, 15:56 |
|
#5 |
New Member
Join Date: Mar 2015
Posts: 10
Rep Power: 11 |
You should replace the thermophysical models folder by the thermophysical models of real gas foam and after execute the Allwmake file in this folder.
|
|
August 4, 2015, 17:57 |
|
#6 |
Member
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 58
Rep Power: 11 |
I did as you said and compiled the thermophysical models.Now i need to test my R-K eos somehow.As soon as i use the real gas eos, i will post here and let you know my results.
I will also try to solve the tutorial you mentioned and post the results. |
|
Tags |
openfoam foam real gas |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reference-Quality Open-Source Option for Real Gas Properties in OpenFOAM | ibell | OpenFOAM Running, Solving & CFD | 1 | February 28, 2024 02:48 |
Parallel User Defined Real Gas Model | aeroman | FLUENT | 4 | July 1, 2015 07:09 |
help me check udf | tranvantrung551987 | Fluent UDF and Scheme Programming | 0 | August 23, 2013 06:55 |
UDF for Turbulent Viscosity | Lourival | Fluent UDF and Scheme Programming | 3 | October 13, 2012 04:09 |
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 | UDS_rambler | FLUENT | 2 | November 22, 2011 10:46 |