Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's tools.

 

 

 

 

 

icoFoam: cannot find file "points" in directory "constant\polyMesh"

 

An OpenFOAM error.

 

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : c:\cfd\OpenFOAM-1.5\bin\icoFoam
Date : Nov 14 2013
Time : 11:07:42
Host : hostname
PID : 2328
Case : D:\Airbearing\cpp\build-MeshCreator-Desktop_Qt_5_1_1_MinGW_32bit-Debug
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Programme terminated with errors: exit code 1, status 0.
Error messages:


Cannot find file "points" in directory "constant\polyMesh"

From function Time::findInstance(const word& dir, const word& name)
in file C:\tmp\OpenFOAM-1.5\src\OpenFOAM\db\Time\findInstance.C at line 133.

FOAM exiting

 

Indeed, 'points' is absent. I used 'find . | egrep "points"' to find an example file in the tutorials. I discovered I possessed a similar file called 'nodes', so I renamed 'nodes' to 'points'. Works!

 

 

 

 

 

icoFoam: cannot open file 'system\fvSchemes'

 

/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.5 |
| \\ / A nd | Web: http://www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Exec : c:\cfd\OpenFOAM-1.5\bin\icoFoam
Date : Nov 14 2013
Time : 11:41:44
Host : hostname
PID : 2728
Case : D:\Airbearing\cpp\build-MeshCreator-Desktop_Qt_5_1_1_MinGW_32bit-Debug
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Programme terminated with errors: exit code 1, status 0.
Error messages:


cannot open file

file: D:\Airbearing\cpp\build-MeshCreator-Desktop_Qt_5_1_1_MinGW_32bit-Debug\system\fvSchemes at line 0.

From function regIOobject::readStream(const word&)
in file C:\tmp\OpenFOAM-1.5\src\OpenFOAM\db\regIOobject\regIOobjectRead.C at line 66.

FOAM exiting

 

 

 

 

 

blockMesh: keyword patches is undefined in dictionary "MyFolder\constant\polyMesh\blockMeshDict"

 

/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  1.5                                   |
|   \\  /    A nd           | Web:      http://www.OpenFOAM.org               |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Exec   : c:\cfd\OpenFOAM-1.5\bin\blockMesh
Date   : Nov 15 2013
Time   : 10:21:36
Host   : hostname
PID    : 2792
Case   : C:\cfd\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\incompressible\channelFoam\channel395
nProcs : 1

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning :
    From function IOstream::compressionEnum(const word&)
    in file C:\tmp\OpenFOAM-1.5\src\OpenFOAM\db\IOstreams\IOstreams\IOstream.C at line 73
    bad compression specifier 'off', use 'compressed' or 'uncompressed'.  Defaulting to uncompressed

Reading block mesh description dictionary

Creating block mesh

Creating blockCorners

Creating curved edges

Creating blocks

Creating patches
Programme terminated with errors: exit code 1, status 0.
Error messages:


keyword patches is undefined in dictionary "C:\cfd\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\incompressible\channelFoam\channel395\constant\polyMesh\blockMeshDict"

file: C:\cfd\blueCFD-SingleCore-2.1\OpenFOAM-2.1\tutorials\incompressible\channelFoam\channel395\constant\polyMesh\blockMeshDict from line 17 to line 113.

    From function dictionary::lookupEntry(const word& keyword) const
    in file C:\tmp\OpenFOAM-1.5\src\OpenFOAM\db\dictionary\dictionary.C at line 213.

FOAM exiting

 

The solution is to add to blockMeshDict the following lines:

patches
(

);

 

 

 

 

 

ParaView: boundaryField top not found in object U

 

ERROR: In C:\DBD\pvs-x32\paraview\src\paraview\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6875
vtkOpenFOAMReaderPrivate (08756480): boundaryField top not found in object U at time = 0


ERROR: In C:\DBD\pvs-x32\paraview\src\paraview\VTK\IO\Geometry\vtkOpenFOAMReader.cxx, line 6875
vtkOpenFOAMReaderPrivate (08756480): boundaryField top not found in object p at time = 0

 

Indeed, the file '0/U' does not contain a boundaryField top subitem

 

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

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

internalField   uniform (0 0 0);

boundaryField
{
    movingWall
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }

    fixedWalls
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }

    frontAndBack
    {
        type            empty;
    }
    
}

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

 

Solution: add to the boundaryField section:

 

    top
    {

    }

 

 

 

 

 

potentialFoam: Unable to set reference cell for field p

 

D:\Projects\Test\ToolOpenFoamExample4>potentialfoam
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1                                   |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
/*   Windows 32 and 64 bit porting by blueCAPE: http://www.bluecape.com.pt   *\
|  Based on Windows porting (2.0.x v4) by Symscape: http://www.symscape.com   |
\*---------------------------------------------------------------------------*/
Build  : 2.1-88b2f2ae3a0b
Exec   : potentialfoam
Date   : Nov 19 2013
Time   : 09:31:32
Host   : "AIRBEAR-W7-I5"
PID    : 5424
Case   : D:/Projects/Test/ToolOpenFoamExample4
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMas
ter
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
Unable to set reference cell for field p
    Please supply either pRefCell or pRefPoint


file: D:/Projects/Test/ToolOpenFoamExample4/system/fvSolution::potentialFlow from line 23 to line 23.

    From function void Foam::setRefCell
(
    const volScalarField&,
    const volScalarField&,
    const dictionary&,
    label& scalar&,
    bool
)
    in file cfdTools/general/findRefCell/findRefCell.C at line 125.

FOAM exiting

 

Solution: to system/fvSolution add:

PIMPLE
{
  pRefCell  0;
  pRefValue 0;
}

External links

 

 

 

 

 

References

 

  1. OpenFOAM wikipedia page as of 2013-11-14

 

 

 

 

 

Go back to Richel Bilderbeek's tools.

Go back to Richel Bilderbeek's homepage.

 

Valid XHTML 1.0 Strict