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

Foam Fatal IO error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2017, 11:37
Default Foam Fatal IO error
  #1
New Member
 
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8
yusatomonaka is on a distinguished road
Dear Foam users,

I am trying to solve a air-water multiphase flow on DEXCS2016.
when I start the caclutaion with multiphaseInterFoam the following error shows up.



//--------------------------------------------------------------------------

waterfront@waterfront-VirtualBox ~/standing_wave $ multiphaseInterFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.x |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.x-be7fba6cff9b
Exec : multiphaseInterFoam
Date : May 13 2017
Time : 23:32:28
Host : "waterfront-VirtualBox"
PID : 2678
Case : /home/waterfront/standing_wave
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: /home/waterfront/standing_wave/constant/transportProperties.phases at line 18.

From function virtual Foam::Istream& Foam::ITstream::read(Foam::token&)
in file db/IOstreams/Tstreams/ITstream.C at line 82.

FOAM exiting


//------------------------------------------------------------------------------------



The file "transportProperties" from line 8 is described as follows:




//-----------------------------------------------------------------------------------


FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phases (water air);


water
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-5;
rho [1 -3 0 0 0 0 0] 1;
}

air
{
transportModel Newtonian;
nu [0 2 -1 0 0 0 0] 1e-5;
rho [1 -3 0 0 0 0 0] 1e-3;
}

sigma [1 0 -2 0 0 0 0] 1e-5;


//----------------------------------------------------------------------------------



I have no idea why it is not working and how to solve this.


Thank you for your help in advance

Sincerely,
yusatomonaka is offline   Reply With Quote

Old   May 13, 2017, 13:04
Default
  #2
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Hello.
Your error is here:
Quote:
--> FOAM FATAL IO ERROR:
attempt to read beyond EOF

file: /home/waterfront/standing_wave/constant/transportProperties.phases at line 18.
I think You should double-check Your transport properties file because it looks like there is something missing inside the file.

It should looks like this, I think.
Quote:
water
{
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1e-5;
rho rho [1 -3 0 0 0 0 0] 1;
}

air
{
transportModel Newtonian;
nu nu [0 2 -1 0 0 0 0] 1e-5;
rho rho [1 -3 0 0 0 0 0] 1e-3;
}
sheaker is offline   Reply With Quote

Old   May 13, 2017, 14:02
Default Thank you for reply
  #3
New Member
 
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8
yusatomonaka is on a distinguished road
Thank you for your kind help and suggestion.

I tried to recalculate the code after modifying the suggested part.
However, I found the completely same message appeared.

file: /home/waterfront/standing_wave/constant/transportProperties.phases at line 18.
yusatomonaka is offline   Reply With Quote

Old   May 13, 2017, 14:10
Default
  #4
Senior Member
 
sheaker's Avatar
 
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10
sheaker is on a distinguished road
Another try:
Maybe 18line contain name of the phase.
I have only openFOAM 1.6 ext right now and the names of phases are phase1 and phase2 or phasea and phaseb.

Quote:
/*--------------------------------*- 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 transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 500;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0.05;

// ************************************************** *********************** //
sheaker is offline   Reply With Quote

Old   May 13, 2017, 14:58
Default Thank you for suggestion
  #5
New Member
 
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8
yusatomonaka is on a distinguished road
Thank you for your kind suggestion.


I tried to do it, but I could not solve the issue.

The error code is as follows:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Reading field p_rgh

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
keyword phases is undefined in dictionary "/home/waterfront/standing_wave/constant/transportProperties"

file: /home/waterfront/standing_wave/constant/transportProperties from line 20 to line 32.

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 441.

FOAM exiting
yusatomonaka is offline   Reply With Quote

Old   May 14, 2017, 03:12
Default
  #6
New Member
 
Alessandro
Join Date: Jul 2016
Posts: 11
Rep Power: 9
pappo1890 is on a distinguished road
You Need to specify the phases in transportProperties
Maybe:

Phases
{
phase1{}
phase2{}
}

Let's try

Sent from my Nexus 5X using CFD Online Forum mobile app
pappo1890 is offline   Reply With Quote

Old   May 14, 2017, 20:54
Default Thank you for your help
  #7
New Member
 
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8
yusatomonaka is on a distinguished road
Thank you for your kind help.

I modified the file transportProperties as follows:


\\---------------------------------------------------------------------

/*--------------------------------*- 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 transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

Phases
{
phase1{}
phase2{}
}

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 500;
}

sigma sigma [ 1 0 -2 0 0 0 0 ] 0.05;

// ************************************************** *********************** //


//------------------------------------------------------------



However, it still show following error:




//--------------------------------------------------------------



--> FOAM FATAL IO ERROR:
keyword phases is undefined in dictionary "/home/waterfront/standing_wave/constant/transportProperties"

file: /home/waterfront/standing_wave/constant/transportProperties

From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
in file db/dictionary/dictionary.C at line 441.
yusatomonaka is offline   Reply With Quote

Old   May 17, 2017, 05:32
Default
  #8
New Member
 
Alessandro
Join Date: Jul 2016
Posts: 11
Rep Power: 9
pappo1890 is on a distinguished road
Hi,

Try this





Phases
{


phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-4;
rho rho [ 1 -3 0 0 0 0 0 ] 500;
}

}
sigma sigma [ 1 0 -2 0 0 0 0 ] 0.05;

regards
Pappo
pappo1890 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesquite - Adaptive mesh refinement / coarsening? philippose OpenFOAM Running, Solving & CFD 94 January 27, 2016 10:40
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x Saxwax OpenFOAM Installation 25 November 29, 2013 06:34
checking the system setup and Qt version vivek070176 OpenFOAM Installation 22 June 1, 2010 13:34
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 03:24.