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

keyword phases is undefined in dictionary - ERROR

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 19, 2014, 07:07
Default keyword phases is undefined in dictionary - ERROR
  #1
New Member
 
Nidhin R
Join Date: Dec 2014
Posts: 7
Rep Power: 11
Nidhin R is on a distinguished road
Hey,
I am new to OpenFoam and have been rying to eorkout the breakwater tutorials in IHFOAM. when i got the following error

--> FOAM FATAL IO ERROR:
keyword phases is undefined in dictionary "/home/nidhin/OpenFOAM/nidhin-2.3.0/run/breakwater/constant/transportProperties"

file: /home/nidhin/OpenFOAM/nidhin-2.3.0/run/breakwater/constant/transportProperties from line 20 to line 69.

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

FOAM exiting
.

the transportProperties line 20 to line 69 is as follows:

twoPhase
{
transportModel twoPhase;
phase1 phase1;
phase2 phase2;
}

phase1
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1e-06;
rho rho [ 1 -3 0 0 0 0 0 ] 1000;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}

BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}

phase2
{
transportModel Newtonian;
nu nu [ 0 2 -1 0 0 0 0 ] 1.48e-05;
rho rho [ 1 -3 0 0 0 0 0 ] 1;
CrossPowerLawCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 1e-06;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
m m [ 0 0 1 0 0 0 0 ] 1;
n n [ 0 0 0 0 0 0 0 ] 0;
}

BirdCarreauCoeffs
{
nu0 nu0 [ 0 2 -1 0 0 0 0 ] 0.0142515;
nuInf nuInf [ 0 2 -1 0 0 0 0 ] 1e-06;
k k [ 0 0 1 0 0 0 0 ] 99.6;
n n [ 0 0 0 0 0 0 0 ] 0.1003;
}
}

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

can someone suggest whatt need to be done??
Nidhin R is offline   Reply With Quote

Old   December 19, 2014, 07:19
Default
  #2
Member
 
Join Date: May 2012
Posts: 55
Rep Power: 15
styleworker is on a distinguished road
I'm not familiar with the solver but I think it should be something like

Code:
phases (water air);
or

Code:
phases (phase1 phase2);
depending on your OF version.
styleworker is offline   Reply With Quote

Old   September 24, 2020, 16:57
Unhappy same kind of error
  #3
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
hey,
I am newto OpenFoam and I am using OpenFoam v-2006
I am working with wigleyHull case from https://github.com/OpenFOAM/OpenFOAM...oam/wigleyHull

I ran setFields and got the following error

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _b45f8f6f58-20200629 OPENFOAM=2006
Arch : "LSB;label=32;scalar=64"
Exec : interFoam
Date : Sep 24 2020
Time : 21:45:50
Host : LAPTOP-A0NOGRUJ
PID : 3673
I/O : uncollated
Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

--> FOAM Warning :
From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
in file db/IOstreams/IOstreams/IOstreamOption.C at line 115
Unknown compression specifier 'compressed', using compression off
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Using LTS
Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties



--> FOAM FATAL ERROR:
cannot find file "/home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull/0/alpha.alpha1"

From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::rea dStream(Foam::regIOobject&, const Foam::fileName&, const Foam::word&, bool) const
in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 546.

I tried copying alpha1 data into a new file with name alpha.alpha1 and then I get the following error


/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _b45f8f6f58-20200629 OPENFOAM=2006
Arch : "LSB;label=32;scalar=64"
Exec : interFoam
Date : Sep 24 2020
Time : 21:55:12
Host : LAPTOP-A0NOGRUJ
PID : 3710
I/O : uncollated
Case : /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

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

--> FOAM Warning :
From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
in file db/IOstreams/IOstreams/IOstreamOption.C at line 115
Unknown compression specifier 'compressed', using compression off
Create mesh for time = 0


PIMPLE: Operating solver in PISO mode

Using LTS
Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian


--> FOAM FATAL IO ERROR:
Entry 'alpha.alpha1' not found in dictionary "/home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull/system/fvSolution.solvers"


file: /home/sam/OpenFOAM/OpenFOAM-v2006/tutorials/wigleyHull/system/fvSolution.solvers at line 22 to 71.

From const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&, Foam::keyType:ption) const
in file db/dictionary/dictionary.C at line 537.

FOAM exiting

hope someone can help

Regards
vava10
vava10 is offline   Reply With Quote

Old   September 24, 2020, 17:13
Default
  #4
Senior Member
 
Join Date: Oct 2017
Posts: 133
Rep Power: 9
Krapf is on a distinguished road
I would guess that you need to define a solver for "alpha.alpha1" in fvSolution.
Krapf is offline   Reply With Quote

Old   September 25, 2020, 10:12
Default
  #5
Member
 
Deutschland
Join Date: Sep 2020
Posts: 69
Rep Power: 6
vava10 is on a distinguished road
thank you.
It helped.
vava10 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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 05:28
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 18:47.