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/)
-   -   Error while running pimpleDyMFoam (https://www.cfd-online.com/Forums/openfoam-solving/156682-error-while-running-pimpledymfoam.html)

DOliveira July 10, 2015 11:09

Error while running pimpleDyMFoam
 
Hello everyone, I'm new at working with OpenFoam and an error appear while running
mpirun -np 8 pimpleDyMFoam -parallel
I can't figure a way to solve it.
The error is:

--> FOAM FATAL IO ERROR:
[4] keyword cellMotionU is undefined in dictionary "IOstream.solvers"
[4]
[4] file: IOstream.solvers from line 0 to line 0.
[4]
[4] From function dictionary::subDict(const word& keyword) const
[4] in file db/dictionary/dictionary.C at line 608.

I'm grateful for any help you can provide me. Thanks. Daniela

alexeym July 10, 2015 16:47

Hi,

Do you have something like

Code:

...
    cellMotionU
    {
        solver          PCG;
        preconditioner  DIC;
        tolerance      1e-08;
        relTol          0;
    }
...

in your fvSolution? If yes, could you post case files, this way it is simpler to find the problem?

DOliveira July 13, 2015 07:49

First of all thank you so much for answering me!
My fvsolution is the following:

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

solvers
{
pcorr
{
solver GAMG;
tolerance 1e-06;
relTol 0.01;
smoother DICGaussSeidel;
cacheAgglomeration false;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
maxIter 50;
}

pFinal
{
solver GAMG;
tolerance 1e-06;
relTol 0;
smoother GaussSeidel;
cacheAgglomeration true;
nCellsInCoarsestLevel 10;
agglomerator faceAreaPair;
mergeLevels 1;
}

"(U|k|epsilon)"
{
solver PBiCG;
preconditioner DILU;
tolerance 1e-05;
relTol 0.1;
}

"(U|k|epsilon)Final"
{
$U;
tolerance 1e-05;
relTol 0;
}
}

PIMPLE
{
nOuterCorrectors 1;
nCorrectors 2;
nNonOrthogonalCorrectors 0;
pRefCell 0;
pRefValue 0;
}

relaxationFactors
{
fields
{
}
equations
{
"U.*" 1;
"k.*" 1;
"epsilon.*" 1;
}
}


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

DOliveira July 13, 2015 09:26

So I add to my fvSolution the part that was missing. But I go another error that I can't solve.
--> FOAM FATAL IO ERROR:
[6] keyword div((nuEff*dev(T(grad(U))))) is undefined in dictionary "IOstream.divSchemes"

My fvSchemes is the following:

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

ddtSchemes
{
default Euler;
}

gradSchemes
{
default Gauss linear;
grad(p) Gauss linear;
grad(alpha) Gauss linear;
}

divSchemes
{
default none
div(rho*phi,U) Gauss vanLeerV;
div(phi,alpha) Gauss vanLeer;
div(phirb,alpha) Gauss vanLeer;
div(phi,U) Gauss linear;
div(phi,epsilon) Gauss linear
div((nuEff*dev(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
default Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
p;
pcorr;
alpha;
}

Can you help me?

alexeym July 13, 2015 09:52

Hi,

Semicolon after "div(phi,epsilon) Gauss linear" is missing (so the next line with "div((nuEff*dev(T(grad(U))))) Gauss linear;" is eaten by it, and as a result you have got error message about undefined keyword).

DOliveira July 13, 2015 10:03

Oh, lack of attention, that's embarrassing! Thank you so much for your help!


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