|
[Sponsors] |
May 13, 2017, 11:37 |
Foam Fatal IO error
|
#1 |
New Member
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8 |
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, |
|
May 13, 2017, 13:04 |
|
#2 | ||
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 |
Hello.
Your error is here: Quote:
It should looks like this, I think. Quote:
|
|||
May 13, 2017, 14:02 |
Thank you for reply
|
#3 |
New Member
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8 |
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. |
|
May 13, 2017, 14:10 |
|
#4 | |
Senior Member
Oskar
Join Date: Nov 2015
Location: Poland
Posts: 184
Rep Power: 10 |
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:
|
||
May 13, 2017, 14:58 |
Thank you for suggestion
|
#5 |
New Member
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8 |
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 |
|
May 14, 2017, 03:12 |
|
#6 |
New Member
Alessandro
Join Date: Jul 2016
Posts: 11
Rep Power: 9 |
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 |
|
May 14, 2017, 20:54 |
Thank you for your help
|
#7 |
New Member
Yuma
Join Date: May 2017
Posts: 4
Rep Power: 8 |
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. |
|
May 17, 2017, 05:32 |
|
#8 |
New Member
Alessandro
Join Date: Jul 2016
Posts: 11
Rep Power: 9 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |