CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   --> FOAM FATAL IO ERROR: keyword adjoint is undefined in dictionary (https://www.cfd-online.com/Forums/openfoam-pre-processing/137084-foam-fatal-io-error-keyword-adjoint-undefined-dictionary.html)

rammstan June 10, 2014 06:26

--> FOAM FATAL IO ERROR: keyword adjoint is undefined in dictionary
 
Hello, it's my first simulating with OpenFoam. I m trying to run this tutorial with linux CAE 2013 (12.04), and OpenFoam 2.1.1 terminal.

When i tun decomposePar, i get this output error:

Code:

Number of processor faces = 3271
Max number of cells = 15912 (128.354% above average 6968.12)
Max number of processor patches = 6 (26.3158% above average 4.75)
Max number of faces between processors = 1624 (98.5937% above average 817.75)

Time = 0


--> FOAM FATAL IO ERROR:
keyword adjoint is undefined in dictionary "/home/jean-louis/Documents/OpenFoam/casting_OF_2.3/0/p_rgh::boundaryField::wall"

file: /home/jean-louis/Documents/OpenFoam/casting_OF_2.3/0/p_rgh::boundaryField::wall from line 25 to line 26.

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

FOAM exiting

I don't find any "adjoint" in p_rgh file :

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.3.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0 0 0];

internalField  uniform 0;

boundaryField
{
    wall
    {
        type            fixedFluxPressure;
        value          uniform 0;
    }

    inlet
    {
        type            totalPressure;
        p0              uniform 0;
        U              U;
        phi            phi;
        rho            rho;
        psi            none;
        gamma          1;
        value          uniform 0;
    }

//    lowerWall
//    {
//        type            fixedFluxPressure;
//        value          uniform 0;
//    }

    outlet
    {
        type            totalPressure;
        p0              uniform 0;
        U              U;
        phi            phi;
        rho            rho;
        psi            none;
        gamma          1;
        value          uniform 0;
    }

//    defaultFaces
//    {
//      type            empty;
//    }
}

// ************************************************************************* //


Someone has an idea from where is the problem?

Thank you

alexeym June 10, 2014 08:26

Hi,

As you are trying to run the case with 2.1.1, you can take a look at source code for fixedFluxPressure BC (in 2.1.1 sources):

Code:

...
        //- Is the pressure adjoint, i.e. has the opposite sign
        Switch adjoint_;
...

In 2.3.0 this option was removed from BC, so it's not in tutorial files. You should add "adjoint false;" to walls dictionary in p_rgh file.


All times are GMT -4. The time now is 14:43.