Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
38d068c4
Commit
38d068c4
authored
14 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: createShellMesh: guarantee 0'th vertex ordered
parent
d2979826
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/createShellMesh.C
+33
-1
33 additions, 1 deletion
.../generation/extrude/extrudeToRegionMesh/createShellMesh.C
with
33 additions
and
1 deletion
applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/createShellMesh.C
+
33
−
1
View file @
38d068c4
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2010-201
0
OpenCFD Ltd.
\\ / A nd | Copyright (C) 2010-201
1
OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -453,6 +453,7 @@ void Foam::createShellMesh::setRefinement
label
region0
=
pointRegions_
[
eFaces
[
0
]][
fp0
];
label
region1
=
pointRegions_
[
eFaces
[
0
]][
fp1
];
// Pick up points with correct normal
if
(
layerI
==
0
)
{
newF
[
0
]
=
f
[
fp0
];
...
...
@@ -468,6 +469,22 @@ void Foam::createShellMesh::setRefinement
newF
[
3
]
=
addedPoints
[
nLayers
*
region0
+
layerI
];
}
// Optionally rotate so e[0] is always 0th vertex. Note that
// this normally is automatically done by coupled face ordering
// but with NOORDERING we have to do it ourselves.
if
(
f
[
fp0
]
!=
e
[
0
])
{
// rotate one back to get newF[1] (originating from e[0])
// into newF[0]
label
v0
=
newF
[
0
];
for
(
label
i
=
0
;
i
<
newF
.
size
()
-
1
;
i
++
)
{
newF
[
i
]
=
newF
[
newF
.
fcIndex
(
i
)];
}
newF
.
last
()
=
v0
;
}
label
minCellI
=
addedCells
[
nLayers
*
eFaces
[
0
]
+
layerI
];
label
maxCellI
;
label
patchI
;
...
...
@@ -569,6 +586,21 @@ void Foam::createShellMesh::setRefinement
newF
[
3
]
=
addedPoints
[
nLayers
*
region0
+
layerI
];
}
// Optionally rotate so e[0] is always 0th vertex. Note that
// this normally is automatically done by coupled face
// ordering but with NOORDERING we have to do it ourselves.
if
(
f
[
fp0
]
!=
e
[
0
])
{
// rotate one back to get newF[1] (originating
// from e[0]) into newF[0].
label
v0
=
newF
[
0
];
for
(
label
i
=
0
;
i
<
newF
.
size
()
-
1
;
i
++
)
{
newF
[
i
]
=
newF
[
newF
.
fcIndex
(
i
)];
}
newF
.
last
()
=
v0
;
}
////if (ePatches.size() == 0)
//{
// Pout<< "Adding from MULTI face:"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment