CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Dam break tutorial - transportProperties issue (https://www.cfd-online.com/Forums/openfoam-solving/130501-dam-break-tutorial-transportproperties-issue.html)

Guimloute February 27, 2014 06:53

Dam break tutorial - transportProperties issue
 
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 February 27, 2014 07:13

tutorial files not up to date
 
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. :)

Phicau February 27, 2014 07:14

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

Guimloute February 27, 2014 08:02

Thank you Pablo !
It is easier that way. :)

claudiocor June 27, 2017 11:52

damTempBreak
 
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::printStack(Foam::Ostream&) at ??:?
#1 Foam::sigSegv::sigHandler(int) at ??:?
#2 ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3 Foam::objectRegistry::modified() const at ??:?
#4 Foam::objectRegistry::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?


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