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

OpenFoam Real Gas - Error message: "attempt to read beyond EOF"

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 1, 2015, 16:24
Default OpenFoam Real Gas - Error message: "attempt to read beyond EOF"
  #1
New Member
 
Join Date: Mar 2015
Posts: 10
Rep Power: 11
seanmike31 is on a distinguished road
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.
seanmike31 is offline   Reply With Quote

Old   August 3, 2015, 14:46
Default
  #2
Member
 
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 53
Rep Power: 11
rewol is on a distinguished road
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.
rewol is offline   Reply With Quote

Old   August 3, 2015, 17:44
Default
  #3
New Member
 
Join Date: Mar 2015
Posts: 10
Rep Power: 11
seanmike31 is on a distinguished road
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.
seanmike31 is offline   Reply With Quote

Old   August 4, 2015, 13:13
Default
  #4
Member
 
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 53
Rep Power: 11
rewol is on a distinguished road
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?
rewol is offline   Reply With Quote

Old   August 4, 2015, 14:56
Default
  #5
New Member
 
Join Date: Mar 2015
Posts: 10
Rep Power: 11
seanmike31 is on a distinguished road
You should replace the thermophysical models folder by the thermophysical models of real gas foam and after execute the Allwmake file in this folder.
seanmike31 is offline   Reply With Quote

Old   August 4, 2015, 16:57
Default
  #6
Member
 
Refik
Join Date: Dec 2014
Location: Turkey
Posts: 53
Rep Power: 11
rewol is on a distinguished road
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.
rewol is offline   Reply With Quote

Reply

Tags
openfoam foam real gas


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
Reference-Quality Open-Source Option for Real Gas Properties in OpenFOAM ibell OpenFOAM Running, Solving & CFD 1 February 28, 2024 01:48
Parallel User Defined Real Gas Model aeroman FLUENT 4 July 1, 2015 06:09
help me check udf tranvantrung551987 Fluent UDF and Scheme Programming 0 August 23, 2013 05:55
UDF for Turbulent Viscosity Lourival Fluent UDF and Scheme Programming 3 October 13, 2012 03:09
999999 (../../src/mpsystem.c@1123):mpt_read: failed:errno = 11 UDS_rambler FLUENT 2 November 22, 2011 09:46


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