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

Dam break tutorial - transportProperties issue

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2014, 07:53
Default Dam break tutorial - transportProperties issue
  #1
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 4
Guimloute is on a distinguished road
Dear Foamers,

I was doing the dam break tutorial when I met an issue at the interFoam running :

Code:
Reading transportProperties



--> FOAM FATAL IO ERROR: 
keyword phases is undefined in dictionary "xxxxx/run/damBreak/constant/transportProperties"

file: xxxxx/run/damBreak/constant/transportProperties from line 20 to line 62.

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

FOAM exiting
I have tried to identifies what is missing without success so far. I cannot find any reference to a phases keyword in any of the configuration files.

Here is my transportProperties, as it was in the original tutorial folder :

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

phase1 // water
{
    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 // air
{
    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;
Anyone would have any idea on this issue ?

Thanks.
Guimloute is offline   Reply With Quote

Old   February 27, 2014, 08:13
Default tutorial files not up to date
  #2
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 4
Guimloute is on a distinguished road
Sorry for the disturbance,

I found the source of the problem. The files in my /home directory had not been updated when I upgraded OpenFOAM to 2.3.0.
Thus, in my transportProperties file this line was missing at the beginning :
Code:
phases (phase1 phase2);
So here the lesson I learned today : always check that the tutorial files in my /home folder are up-to-date.
Guimloute is offline   Reply With Quote

Old   February 27, 2014, 08:14
Default
  #3
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Singapore
Posts: 313
Rep Power: 8
Phicau is on a distinguished road
Hi,

version 2.3 introduces a new convention to define the phases. You no longer call them phase1 and phase2, but you now can use their physical name (e.g. water, air...) and afterwards you define them:

Code:
phases (water air);
Best,

Pablo
Phicau is offline   Reply With Quote

Old   February 27, 2014, 09:02
Default
  #4
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 4
Guimloute is on a distinguished road
Thank you Pablo !
It is easier that way.
Guimloute is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-Component mixture modeling issue FlowMe STAR-CCM+ 10 March 12, 2016 13:43
Stability Issue with interDyMFoam / floatingObject tutorial ccmccomb OpenFOAM Running, Solving & CFD 3 July 3, 2014 12:50
issue 1_running several mesh configurations for a cavity model (tutorial) Luis Batista OpenFOAM Meshing & Mesh Conversion 2 March 24, 2013 19:24
dam break problem tharem OpenFOAM 11 December 14, 2011 12:15
interDyMFoam mass conservation issues - dam break tutorial kmooney OpenFOAM 5 June 1, 2010 14:23


All times are GMT -4. The time now is 13:41.