CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

refinementRegions is undefined

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2017, 06:16
Default refinementRegions is undefined
  #1
New Member
 
Hugo
Join Date: Jul 2017
Posts: 14
Rep Power: 8
Gohu8 is on a distinguished road
Hello everyone,

I have this error when running snappyHexMesh:

--> FOAM FATAL IO ERROR:
keyword refinementRegions is undefined in dictionary "/home/sylvie/OpenFOAM/sylvie-v1612+/run/projetfinalsimplefoammanuel/system/snappyHexMeshDict.castellatedMeshControls"

file: /home/sylvie/OpenFOAM/sylvie-v1612+/run/projetfinalsimplefoammanuel/system/snappyHexMeshDict.castellatedMeshControls from line 23 to line 118.

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

FOAM exiting


Here is my snappyHexMeshDict where there is a line with refinementRegions !...:

FoamFile
{
version 2.0;
format ascii;
class dictionary;
object snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"

castellatedMesh on;
snap on;
addLayers off;

geometry
{
bats.stl {type triSurfaceMesh; name bats;}
relief.stl {type triSurfaceMesh; name relief;}
cheminee.stl {type triSurfaceMesh; name cheminee;}
fondcheminee.stl {type triSurfaceMesh; name fondcheminee;}
refinementBox
{
type searchableBox;
min ( 0 0 0);
max (250 180 90); //base (250 180 90)
}
};

castellatedMeshControls
{
features
(
{ file "bats.eMesh"; level 1; }
{ file "relief.eMesh"; level 1; }
{ file "cheminee.eMesh"; level 1; }
{ file "fondcheminee.eMesh"; level 1; }
);

refinementSurfaces
{
bats
{
level (3 3); //base (3 3)
patchInfo { type wall; }
}

relief
{
level (3 3); //base (3 3)
patchInfo { type wall; }
}

cheminee
{
level (3 3); //base (3 3)
patchInfo { type wall; }

fondcheminee
{
level (3 3); //base (3 3)
patchInfo { type wall; }
}
}

refinementRegions
{
refinementBox
{
mode inside;
levels ((1E15 2));
}
}

locationInMesh (171 173.5 25); //au départ (1 1 1)
}

snapControls
{
explicitFeatureSnap true;
implicitFeatureSnap false;
}

addLayersControls
{
layers
{
"CAD.*"
{
nSurfaceLayers 2; //base 2
}
}

relativeSizes true;
expansionRatio 1.2;
finalLayerThickness 0.5;
minThickness 1e-3;
}

meshQualityControls
{
}

writeFlags
(
scalarLevels
layerSets
layerFields
);

mergeTolerance 1e-6;

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

I don't understand why... Any help ?

Thanks in advance
Gohu8 is offline   Reply With Quote

Old   August 30, 2017, 03:20
Default
  #2
New Member
 
Hugo
Join Date: Jul 2017
Posts: 14
Rep Power: 8
Gohu8 is on a distinguished road
In fact I deleted all the files and did again and now it's ok. But when I go into parafoam, when i want to select the buildings and the relief and the chimney (so meshed with snapppyHexMesh), they just disappear and only the box (so meshed with blockmesh) remains (with inlet, oulet etc...) I don't understand at all....
Gohu8 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Second Derivative Zero - Boundary Condition fu-ki-pa OpenFOAM 11 March 27, 2021 04:28
LEMOS InflowGenerator r_gordon OpenFOAM Running, Solving & CFD 103 December 18, 2018 00:58
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 Attesz OpenFOAM Installation 45 January 13, 2012 12:38
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19:08
G95 + CGNS Bruno Main CFD Forum 1 January 30, 2007 00:34


All times are GMT -4. The time now is 16:44.