CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   solving problem (http://www.cfd-online.com/Forums/openfoam-solving/115712-solving-problem.html)

Ingenieur April 5, 2013 06:03

solving problem
 
Hi Foamers,

could any one plz help me to find the Error with simuation car in windtunnel,
i got this error by solving with LESmodel.

the mesh was correctly created, but i dont know the backgound of this error:


--> FOAM FATAL IO ERROR:
keyword surface is undefined in dictionary "::surfaces::surfaces"

file: ::surfaces::surfaces from line 194 to line 200.
From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 410.

FOAM exiting


i'll be grateful for ur help

thanx in advance,

Monzer

Tushar@cfd April 5, 2013 07:26

Quote:

Originally Posted by Ingenieur (Post 418515)
Hi Foamers,

could any one plz help me to find the Error with simuation car in windtunnel,
i got this error by solving with LESmodel.

the mesh was correctly created, but i dont know the backgound of this error:


--> FOAM FATAL IO ERROR:
keyword surface is undefined in dictionary "::surfaces::surfaces"

file: ::surfaces::surfaces from line 194 to line 200.
From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 410.

FOAM exiting


i'll be grateful for ur help

thanx in advance,

Monzer


what are the mesh geometry and the boundary conditions for your case?? :)

Ingenieur April 5, 2013 08:24

Hi Tushar,

my autoHexMesh ist:

FoamFile
{
version 2.1.2;
format ascii;
root "";
case "project2";
instance "";
local "";
class dictionary;
object autoHexMeshDict;
}

include "$FOAM_CONFIG/autoHexMesh.misc";
include "$FOAM_CONFIG/autoHexMesh.motionDict";
include "$FOAM_CONFIG/autoHexMesh.snapDict";
include "$FOAM_CONFIG/autoHexMesh.shrinkDict";
globalFeatureEdges true;
doLayers true;
doSnap true;
doRefine true;
curvature 0.95;
nBufferLayers 4;
keepPoints ((0 0 0));
surfaces
(
{
name SAE;
file "SAE.stl";
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
regions
(
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property;
}
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property1;
}
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property2;
}
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property3;
}
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property4;
}
{
surfaceLayers 3;
maxRefinementLevel 5;
minRefinementLevel 3;
name Default_PSHELL_Property5;
}
);

}
{
name Windkanal;
file "Windkanal.stl";
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
regions
(
{
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
name 00_Inlet;
}
{
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
name 00_Outlet;
}
{
surfaceLayers 3;
maxRefinementLevel 0;
minRefinementLevel 0;
name 00_Ground;
}
{
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
name 00_TOP;
}
{
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
name Right_Side;
}
{
surfaceLayers 0;
maxRefinementLevel 0;
minRefinementLevel 0;
name 00_Left_Side;
}
);

}
);

refinementShells
(
{
name VR;
type searchableBox;
min (-1500 -1500 -202);
max (3500 1500 1500);
refineInside true;
level 3;
}
);


and the boundary is:



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

6
(
block-mesh_BMMinX
{
type wall;
nFaces 7936;
startFace 2684744;
}
block-mesh_BMMaxX
{
type wall;
nFaces 7936;
startFace 2692680;
}
block-mesh_BMMinZ
{
type wall;
nFaces 14136;
startFace 2700616;
}
block-mesh_BMMaxZ
{
type wall;
nFaces 14136;
startFace 2714752;
}
block-mesh_BMMinY
{
type wall;
nFaces 7296;
startFace 2728888;
}
block-mesh_BMMaxY
{
type wall;
nFaces 7296;
startFace 2736184;
}
)

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


the blockMesh is:


FoamFile
{
version 2.1.2;
format ascii;
root "Y:/10_Studenten/UnsteadyAero/OpenFOAM_Validierung/Testing";
case "project2";
instance "";
local "";
class dictionary;
object blockMeshDict;
}

convertToMeters 1;
edges ();
mergePatchPairs() ;
vertices
(
(-26000 -31000 -1202)
(31000 -31000 -1202)
(31000 31000 -1202)
(-26000 31000 -1202)
(-26000 -31000 31000)
(31000 -31000 31000)
(31000 31000 31000)
(-26000 31000 31000)
);

blocks
(
hex
(
0
1
2
3
4
5
6
7
)
(114 124 64 )
simpleGrading
(1 1 1)
);

patches
(
wall
block-mesh_BMMinX
( (0 4 7 3 ) )
wall
block-mesh_BMMaxX
( (1 2 6 5 ) )
wall
block-mesh_BMMinZ
( (0 3 2 1 ) )
wall
block-mesh_BMMaxZ
( (4 5 6 7 ) )
wall
block-mesh_BMMinY
( (0 1 5 4 ) )
wall
block-mesh_BMMaxY
( (3 7 6 2 ) )
);




Ingenieur April 5, 2013 08:33

the boundary conditions are :




boundaryConditions
{
regionDefaults
{
walls
{
}
outlets
{
}
inlets
{
}
}
partialNamed
{
}
exactNamed
{
Windkanal_00_Ground
{
U
{
value uniform (80 0 0);
type fixedValue;
}
}
Windkanal_00_Inlet
{
U
{
value uniform (80 0 0);
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_Left_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_00_Outlet
{
p
{
value uniform 0;
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_TOP
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_Right_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
}
}

Tushar@cfd April 7, 2013 05:09

Quote:

Originally Posted by Ingenieur (Post 418540)
the boundary conditions are :




boundaryConditions
{
regionDefaults
{
walls
{
}
outlets
{
}
inlets
{
}
}
partialNamed
{
}
exactNamed
{
Windkanal_00_Ground
{
U
{
value uniform (80 0 0);
type fixedValue;
}
}
Windkanal_00_Inlet
{
U
{
value uniform (80 0 0);
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_Left_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_00_Outlet
{
p
{
value uniform 0;
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_TOP
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_Right_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
}
}


Can you please upload your case file for reference? That would be much better. :)

Tushar@cfd April 10, 2013 06:06

Quote:

Originally Posted by Ingenieur (Post 418540)
the boundary conditions are :




boundaryConditions
{
regionDefaults
{
walls
{
}
outlets
{
}
inlets
{
}
}
partialNamed
{
}
exactNamed
{
Windkanal_00_Ground
{
U
{
value uniform (80 0 0);
type fixedValue;
}
}
Windkanal_00_Inlet
{
U
{
value uniform (80 0 0);
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_Left_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_00_Outlet
{
p
{
value uniform 0;
type fixedValue;
}
nuTilda
{
type turbulentIL;
I 0.1;
L 0.01;
Uref 80;
}
}
Windkanal_00_TOP
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
Windkanal_Right_Side
{
nuSgs
{
type zeroGradient;
}
U
{
type slip;
}
}
}
}


You do check your blockMesh file, I think there you are mistaking.
Try to find the inlet/outlet patches and wall patch, and try to co-relate the code with boundary conditions.

Tushar@cfd April 10, 2013 06:16

Quote:

Originally Posted by Ingenieur (Post 418537)
Hi Tushar,


and the boundary is:



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

6
(
block-mesh_BMMinX
{
type wall;
nFaces 7936;
startFace 2684744;
}
block-mesh_BMMaxX
{
type wall;
nFaces 7936;
startFace 2692680;
}
block-mesh_BMMinZ
{
type wall;
nFaces 14136;
startFace 2700616;
}
block-mesh_BMMaxZ
{
type wall;
nFaces 14136;
startFace 2714752;
}
block-mesh_BMMinY
{
type wall;
nFaces 7296;
startFace 2728888;
}
block-mesh_BMMaxY
{
type wall;
nFaces 7296;
startFace 2736184;
}
)

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


the blockMesh is:


FoamFile
{
version 2.1.2;
format ascii;
root "Y:/10_Studenten/UnsteadyAero/OpenFOAM_Validierung/Testing";
case "project2";
instance "";
local "";
class dictionary;
object blockMeshDict;
}

convertToMeters 1;
edges ();
mergePatchPairs() ;
vertices
(
(-26000 -31000 -1202)
(31000 -31000 -1202)
(31000 31000 -1202)
(-26000 31000 -1202)
(-26000 -31000 31000)
(31000 -31000 31000)
(31000 31000 31000)
(-26000 31000 31000)
);

blocks
(
hex
(
0
1
2
3
4
5
6
7
)
(114 124 64 )
simpleGrading
(1 1 1)
);

patches
(
wall
block-mesh_BMMinX
( (0 4 7 3 ) )
wall
block-mesh_BMMaxX
( (1 2 6 5 ) )
wall
block-mesh_BMMinZ
( (0 3 2 1 ) )
wall
block-mesh_BMMaxZ
( (4 5 6 7 ) )
wall
block-mesh_BMMinY
( (0 1 5 4 ) )
wall
block-mesh_BMMaxY
( (3 7 6 2 ) )
);





I mean to say in my earlier thread, that you need to change the above code lines which you have written..

Best of luck..


All times are GMT -4. The time now is 17:55.