CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Undefined Names of patches (https://www.cfd-online.com/Forums/openfoam/111849-undefined-names-patches.html)

sfigato January 16, 2013 13:15

Undefined Names of patches
 
Hi foamers,


I got successfully my mesh with blockMesh. I would like to run the case with laplacian Solver but I got this error:


--> FOAM FATAL IO ERROR:
keyword sym is undefined in dictionary "/home/ifas/OpenFOAM/ifas-2.1.1/praktikum/Chpt2/Steelbar/0/T::boundaryField"

file: /home/ifas/OpenFOAM/ifas-2.1.1/praktikum/Chpt2/Steelbar/0/T::boundaryField from line 25 to line 48.

From function dictionary::subDict(const word& keyword) const
in file db/dictionary/dictionary.C at line 461.

FOAM exiting


I cannot understand the reason. Here are the boundary file in polyMesh folder and the T file in 0 folder:


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

5
(
iceWall
{
type wall;
nFaces 40;
startFace 6280;
}
airWall
{
type wall;
nFaces 80;
startFace 6320;
}
sym
{
type symmetryPlane;
nFaces 80;
startFace 6400;
}
bottom
{
type wall;
nFaces 40;
startFace 6480;
}
frontAndBack
{
type empty;
nFaces 6400;
startFace 6520;
}
)

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


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

dimensions [0 0 0 1 0 0 0];

internalField uniform 1273.15;

boundaryField
{
iceWall
{
type fixedValue;
value uniform 273.15;
}

airWall
{
type fixedValue;
value uniform 293.15
}

sym
{
type symmetryPlane;
}

bottom
{
type fixedGradient;
value uniform -200;
}

frontAndBack
{
type empty;
}
}

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


Anyone know what could be the problem?

Thanks
Marco

ngj January 16, 2013 13:23

Hi Marco,

You are missing a ";" (read: semi-colon) after the value definition in the boundary patch airWall in the field T.

Kind regards,

Niels

sfigato January 16, 2013 13:26

Hi Niels

Thank you very much. I got another error:

--> FOAM FATAL IO ERROR:
keyword gradient is undefined in dictionary "/home/ifas/OpenFOAM/ifas-2.1.1/praktikum/Chpt2/Steelbar/0/T::boundaryField::bottom"

file: /home/ifas/OpenFOAM/ifas-2.1.1/praktikum/Chpt2/Steelbar/0/T::boundaryField::bottom from line 42 to line 43.

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

FOAM exiting


Can you help me again??

sfigato January 16, 2013 13:28

I solved!!! I replaced Value with Gradient in bottom patch!

Thanks

ngj January 16, 2013 13:29

You are welcome.

/ Niels


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