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/)
-   -   Parallel inlet condition from files (https://www.cfd-online.com/Forums/openfoam-solving/194886-parallel-inlet-condition-files.html)

Fridrik October 26, 2017 07:39

Parallel inlet condition from files
 
Hallo everyone

I have specified an velocity inlet from a table file with:
Code:

inlet_outer_n
    {
        type            cylindricalInletVelocity;
        centre        (x y z);
        axis            (x y z);
        axialVelocity  constant 0;
        radialVelocity  tableFile;
        radialVelocityCoeffs
        {
            file            "$FOAM_CASE/VelocityInlet_outer_2.txt";
        }
        rpm            constant 0;
        value          nonuniform 0();
    }

When i do decomposePar the processor folders appear.

an when i execute
Code:

mpirun -np 16 rhoPimpleFoam -parallel > log
i get the following error
Code:

--> FOAM FATAL IO ERROR:
[10] keyword origin is undefined in dictionary "/work1/s127834/25_basecell_tothinlinc/processor10/0/U.boundaryField.inlet_outer_1"
[10]
[10] file: /work1/s127834/25_basecell_tothinlinc/processor10/0/U.boundaryField.inlet_outer_1 from line 27 to line 37.
[10]
[10]    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
[10]    in file db/dictionary/dictionary.C at line 566.[13]

i think it is because the $FOAM_CASE becomes the processor0 folder, but how should i refer to the file when they are in the original case folder

Fridrik October 27, 2017 04:46

After alot of debugging i found the error.

The error was two different builds of OpenFOAM, where the v1706 uses "center" and the openFOAM dev uses "origin".


All times are GMT -4. The time now is 15:06.