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

Dam break tutorial - transportProperties issue

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 27, 2014, 06:53
Default Dam break tutorial - transportProperties issue
  #1
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12
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, 07:13
Default tutorial files not up to date
  #2
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12
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, 07:14
Default
  #3
Senior Member
 
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19
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, 08:02
Default
  #4
New Member
 
Guillaume Ducrue
Join Date: Dec 2013
Posts: 9
Rep Power: 12
Guimloute is on a distinguished road
Thank you Pablo !
It is easier that way.
Guimloute is offline   Reply With Quote

Old   June 27, 2017, 11:52
Default damTempBreak
  #5
New Member
 
Cláudio Corrêa
Join Date: Jun 2017
Location: Brazil
Posts: 14
Rep Power: 8
claudiocor is on a distinguished road
Dears,

I build new solver from interFoam inserting the temperatura equation I compiled no erros but when I ues tutorial case damBreak for validation the follow erros appears

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.1
Exec : interTempFoam
Date : Jun 27 2017
Time : 12:49:11
Host : "claudio-300E4C"
PID : 22926
Case : /home/claudiocorrea/OpenFOAM/claudiocorrea-4.1/run/damTempBreak
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 T

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar

Reading g

Reading hRef
Calculating field g.h

No MRF models present

No finite volume options present

DICPCG: Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
Courant Number mean: 0 max: 0

Starting time loop

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam:bjectRegistry::modified() const at ??:?
#4 Foam:bjectRegistry::modified() const at ??:?
#5 Foam::Time::readModifiedObjects() at ??:?
#6 Foam::Time::run() const at Time.C:?
#7 ? at ??:?
#8 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#9 ? at ??:?


I introduce the required features for temperature in the tutorial.

Can anybody help me?
claudiocor 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
Stability Issue with interDyMFoam / floatingObject tutorial ccmccomb OpenFOAM Running, Solving & CFD 4 April 27, 2023 04:13
Multi-Component mixture modeling issue FlowMe STAR-CCM+ 10 March 12, 2016 12:43
[Other] issue 1_running several mesh configurations for a cavity model (tutorial) Luis Batista OpenFOAM Meshing & Mesh Conversion 2 March 24, 2013 18:24
dam break problem tharem OpenFOAM 11 December 14, 2011 11: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 05:00.