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/)
-   -   cannot find file constant/boundaryData/outlet/points (https://www.cfd-online.com/Forums/openfoam-solving/134177-cannot-find-file-constant-boundarydata-outlet-points.html)

assert April 25, 2014 08:48

cannot find file constant/boundaryData/outlet/points
 
When I run 'sonicFoam' I get the error:

Code:

cannot find file MyFolder/constant/boundaryData/outlet/points at line 0.
I checked my parameter files for 'outlet/points' and other clues that an additional file is needed. Googling supplied me no additional hints either, so I hope it is a too-easy-to-put-online question.

Can someone help me out? Thanks!

Below I post the full error message, followed by files I think are most relevant:

## Calling sonicFoam
Code:

sonicfoam
## Response
Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  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  : sonicfoam
Date  : Apr 25 2014
Time  : 13:59:34
Host  : "AIRBEAR-W7-I5"
PID    : 5072
Case  : D:/Airbearing/cpp/build-SchmeshCreator-Desktop_Qt_5_1_1_MinGW_32bit-Deb
ug
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMas
ter
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0

Reading thermophysical properties

Selecting thermodynamics package ePsiThermo<pureMixture<sutherlandTransport<spec
ieThermo<eConstThermo<perfectGas>>>>>


--> FOAM FATAL IO ERROR:
cannot find file

file: MyFolder/constant/boundaryData/outlet/points at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

## 0/alphat

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    volScalarField;
  location "0";
  object  alphat;
}



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

internalField uniform 0;

boundaryField
{
inlet
{
  type zeroGradient;
}

outlet
{
  type zeroGradient;
}

side_CW
{
  type zeroGradient;
}

side_CCW
{
  type zeroGradient;
}

defaultFaces
{
  type compressible::alphatWallFunction;
  value uniform 0;
}

}

## 0/p

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    volScalarField;
  location "0";
  object  p;
}


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

internalField uniform 1.7e5;

boundaryField
{
  inlet
  {
    type timeVaryingMappedFixedValue;
    setAverage 1;
    fileName "pIn";
    outOfBounds clamp;
  }
 
  outlet
  {
    type timeVaryingMappedFixedValue;
    setAverage 1;
    fileName "pOut";
    outOfBounds clamp;
  }
 
  side_CW
  {
    type zeroGradient;
  }
 
  side_CCW
  {
    type zeroGradient;
  }
 
  defaultFaces
  {
    type zeroGradient;
  }
}

## 0/T

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    volScalarField;
  location "0";
  object  T;
}


dimensions [0 0 0 1 0 0 0];

internalField uniform 293;

boundaryField
{
inlet
{
  type fixedValue;
  value uniform 293;
}

outlet
{
  type zeroGradient;
}

side_CW
{
  type zeroGradient;
}

side_CCW
{
  type zeroGradient;
}

defaultFaces
{
  type zeroGradient;
}

}

## 0/U

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    volVectorField;
  location "0";
  object  U;
}


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

internalField uniform (0 0 0);

boundaryField
{

inlet
{
  type zeroGradient;
}

outlet
{
  type zeroGradient;
}

side_CW
{
  type slip;
}

side_CCW
{
  type slip;
}

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

}

## constant/thermophysicalProperties

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    dictionary;
  location "constant";
  object  thermophysicalProperties;
}

thermoType ePsiThermo<pureMixture<sutherlandTransport<specieThermo<eConstThermo<perfectGas>>>>>;
mixture air 1 28.9 717 0 1.458e-6 110.4;

## constant/polyMesh/boundary

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    polyBoundaryMesh;
  location "constant\polyMesh";
  object  boundary;
}

5
(
    side_CW
    {
        type zeroGradient;
        nFaces 16;
        startFace 3625;
    }
    side_CCW
    {
        type zeroGradient;
        nFaces 16;
        startFace 3641;
    }
    outlet
    {
        type outletInlet;
        nFaces 208;
        startFace 3657;
    }
    inlet
    {
        type outletInlet;
        nFaces 16;
        startFace 3865;
    }
    defaultFaces
    {
        type zeroGradient;
        nFaces 1034;
        startFace 3881;
    }
)

## constant/polyMesh/faces

Code:

FoamFile
{    version    2.0;
    format    ascii;
    class    faceList;
    location    "constant/polyMesh";
    object    faces;
}

4915
(
4(1322 1323 1355 1354)
4(1322 1368 1369 1323)
3(1354 1368 1322)
[...]
4(496 539 540 497)
3(496 652 539)
3(947 956 898)
)

## constant/polyMesh/neighbour

Code:

FoamFile
{    version    2.0;
    format    ascii;
    class    labelList;
    note    "nPoints: 1407 nCells: 1708 nFaces: 4915";
    location    "constant/polyMesh";
    object    neighbour;
}

4915
(
14
16
649
[...]
-1
-1
-1
)

## constant/polyMesh/owner

Code:

FoamFile
{    version    2.0;
    format    ascii;
    class    labelList;
    note    "nPoints: 1407 nCells: 1708 nFaces: 4915";
    location    "constant/polyMesh";
    object    owner;
}

4915
(
0
0
0
[...]
1706
1706
1707
)

## constant/polyMesh/points

Code:

FoamFile
{    version    2.0;
    format    ascii;
    class    vectorField;
    location    "constant/polyMesh";
    object    points;
}

1407
(
(-0.021651 0.012500000000000001 0)
(-0.021651 0.012500000000000001 0.00025000000000000001)
(-0.021651 0.012500000000000001 0.00050000000000000001)
[...]
(0.021651 0.012500000000000001 0.00050000000000000001)
(0.021651 0.012500000000000001 0.00075000000000000002)
(0.021651 0.012500000000000001 0.001)
)

## constant/polyMesh/sets/nonOrthoFaces

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      faceSet;
    location    "constant/polyMesh/sets";
    object      nonOrthoFaces;
}

40
(
2688
3009
3458
[...]
3006
1918
1598
)

## constant/turbulenceProperties

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    dictionary;
  location "constant";
  object  turbulenceProperties;
}

simulationType RASModel;

## system/controlDict

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    dictionary;
  location "system";
  object  controlDict;
}


application sonicFoam;
startFrom latestTime;
startTime 0;
stopAt endTime;
endTime 0.007;
deltaT 1e-008;
writeControl adjustableRunTime;
writeInterval 1e-006;
purgeWrite 0;
writeFormat ascii;
writePrecision 6;
writeCompression uncompressed;
timeFormat general;
timePrecision 6;
runTimeModifiable yes;
adjustTimeStep no;

## system/fvSchemes

Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    dictionary;
  location "system";
  object  fvSchemes;
}


ddtSchemes
{
  default Euler;
}

gradSchemes
{
  default Gauss linear;
}

divSchemes
{
  default none;
  div(phi,U) Gauss limitedLinearV 1;
  div(phi,e) Gauss limitedLinear 1;
  div(phid,p) Gauss limitedLinear 1;
  div(phi,K) Gauss limitedLinear 1;
  div(phiv,p) Gauss limitedLinear 1;
  div(phi,k) Gauss upwind;
  div(phi,epsilon) Gauss upwind;
  div((muEff*dev2(T(grad(U))))) Gauss linear;
}

laplacianSchemes
{
  default Gauss linear corrected;
}

interpolationSchemes
{
  default linear;
}

snGradSchemes
{
  default corrected;
}

fluxRequired
{
  default no;
  p;
}

## system/fvSolution
Code:

FoamFile
{
  version  2.0;
  format  ascii;
  class    dictionary;
  location "system";
  object  fvSolution;
}


assert April 25, 2014 09:36

Solved
 
I did notice that the file called 'p' needed two files.

I did assume that the error message would give the name of the missing file. This was incorrect. The error message needed to be:

Code:

Could not find files 'pIn' and 'pOut'
I hope this will once be corrected.


## 'p'

Code:

boundaryField
{
  inlet
  {
    type timeVaryingMappedFixedValue;
    setAverage 1;
    fileName "pIn";
    outOfBounds clamp;
  }
 
  outlet
  {
    type timeVaryingMappedFixedValue;
    setAverage 1;
    fileName "pOut";
    outOfBounds clamp;
  } 
  [...]
}



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