Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Community
integration-cfmesh
Commits
30d5ead8
Commit
30d5ead8
authored
Sep 12, 2014
by
Philippose Rajan
Browse files
* Added regular expressions to keep keepCellsIntersectingPatches and removeCellsIntersectingPatches
parent
db3f8105
Changes
1
Hide whitespace changes
Inline
Side-by-side
meshLibrary/utilities/octrees/meshOctree/meshOctreeAddressing/meshOctreeAddressingCreation.C
View file @
30d5ead8
...
...
@@ -364,7 +364,7 @@ void meshOctreeAddressing::findUsedBoxes() const
else
{
wordHashSet
patchesToRemoveCopy
(
(
meshDict_
.
lookup
(
"removeCellsIntersectingPatches"
)
);
patchesToRemove
.
transfer
(
patchesToRemoveCopy
);
...
...
@@ -374,13 +374,15 @@ void meshOctreeAddressing::findUsedBoxes() const
boolList
removeFacets
(
ts
.
size
(),
false
);
//- remove facets in patches
forAll
(
ts
.
patches
(),
patchI
)
forAll
ConstIter
(
HashSet
<
word
>
,
patchesToRemove
,
it
)
{
if
(
patchesToRemove
.
found
(
ts
.
patches
()[
patchI
].
name
())
)
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
forAll
(
matchedPatches
,
matchI
)
{
forAll
(
ts
,
triI
)
{
if
(
ts
[
triI
].
region
()
==
p
atchI
)
if
(
ts
[
triI
].
region
()
==
matchedPatches
[
m
atchI
]
)
removeFacets
[
triI
]
=
true
;
}
}
...
...
@@ -441,20 +443,22 @@ void meshOctreeAddressing::findUsedBoxes() const
const
triSurf
&
ts
=
octree_
.
surface
();
boolList
keepFacets
(
ts
.
size
(),
false
);
//-
remove
facets in patches
forAll
(
ts
.
patches
(),
patchI
)
//-
keep
facets in patches
forAll
ConstIter
(
HashSet
<
word
>
,
patchesToKeep
,
it
)
{
if
(
patchesToKeep
.
found
(
ts
.
patches
()[
patchI
].
name
())
)
labelList
matchedPatches
=
ts
.
findPatches
(
it
.
key
());
forAll
(
matchedPatches
,
matchI
)
{
forAll
(
ts
,
triI
)
{
if
(
ts
[
triI
].
region
()
==
p
atchI
)
if
(
ts
[
triI
].
region
()
==
matchedPatches
[
m
atchI
]
)
keepFacets
[
triI
]
=
true
;
}
}
}
//-
remove
facets in subsets
//-
keep
facets in subsets
forAllConstIter
(
wordHashSet
,
patchesToKeep
,
it
)
{
const
label
subsetID
=
ts
.
facetSubsetIndex
(
it
.
key
());
...
...
Write
Preview
Supports
Markdown
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