Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
ab17085c
Commit
ab17085c
authored
Jul 07, 2008
by
Mattijs Janssens
Browse files
adapted to new syntax
parent
ffe2142d
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C
View file @
ab17085c
...
...
@@ -76,16 +76,19 @@ int main(int argc, char *argv[])
);
// refinement parameters
const
dictionary
&
refineDict
=
meshDict
.
subDict
(
"refineDict"
);
const
dictionary
&
refineDict
=
meshDict
.
subDict
(
"castellatedMeshControls"
);
// all surface geometry
const
dictionary
&
geometryDict
=
meshDict
.
subDict
(
"geometry"
);
// snap-to-surface parameters
const
dictionary
&
snapDict
=
meshDict
.
subDict
(
"snap
Dict
"
);
const
dictionary
&
snapDict
=
meshDict
.
subDict
(
"snap
Controls
"
);
// mesh motion and mesh quality parameters
const
dictionary
&
motionDict
=
meshDict
.
subDict
(
"m
otionDict
"
);
const
dictionary
&
motionDict
=
meshDict
.
subDict
(
"m
eshQualityControls
"
);
// layer addition parameters
const
dictionary
&
layerDict
=
meshDict
.
subDict
(
"
layerDict
"
);
const
dictionary
&
layerDict
=
meshDict
.
subDict
(
"
addLayersControls
"
);
// Main meshing driver. Read surfaces. Determine initial intersections.
...
...
@@ -93,13 +96,14 @@ int main(int argc, char *argv[])
(
mesh
,
meshDict
,
// global control parameters
geometryDict
,
refineDict
,
// refinement parameters
decomposeDict
);
Switch
wantRefine
(
meshDict
.
lookup
(
"
doRefine
"
));
Switch
wantSnap
(
meshDict
.
lookup
(
"
doS
nap"
));
Switch
wantLayers
(
meshDict
.
lookup
(
"d
o
Layers"
));
Switch
wantRefine
(
meshDict
.
lookup
(
"
castellatedMesh
"
));
Switch
wantSnap
(
meshDict
.
lookup
(
"
s
nap"
));
Switch
wantLayers
(
meshDict
.
lookup
(
"
ad
dLayers"
));
if
(
wantRefine
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment