Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
615961c2
Commit
615961c2
authored
Jul 02, 2013
by
mattijs
Browse files
ENH: snappyHexMesh: allow overriding constraint patches
parent
3880c803
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
View file @
615961c2
...
...
@@ -799,6 +799,11 @@ Foam::autoLayerDriver::makeLayerDisplacementField
pointPatches
.
size
(),
slipPointPatchVectorField
::
typeName
);
wordList
actualPatchTypes
(
patchFieldTypes
.
size
());
forAll
(
pointPatches
,
patchI
)
{
actualPatchTypes
[
patchI
]
=
pointPatches
[
patchI
].
type
();
}
forAll
(
numLayers
,
patchI
)
{
...
...
@@ -841,7 +846,8 @@ Foam::autoLayerDriver::makeLayerDisplacementField
),
pMesh
,
dimensionedVector
(
"displacement"
,
dimLength
,
vector
::
zero
),
patchFieldTypes
patchFieldTypes
,
actualPatchTypes
)
);
return
tfld
;
...
...
@@ -3296,7 +3302,7 @@ void Foam::autoLayerDriver::doLayers
{
const
polyPatch
&
pp
=
mesh
.
boundaryMesh
()[
patchI
];
if
(
!
p
olyPatch
::
constraintType
(
pp
.
type
()
))
if
(
!
p
p
.
coupled
(
))
{
patchIDs
.
append
(
patchI
);
nFacesWithLayers
+=
mesh
.
boundaryMesh
()[
patchI
].
size
();
...
...
@@ -3304,7 +3310,7 @@ void Foam::autoLayerDriver::doLayers
else
{
WarningIn
(
"autoLayerDriver::doLayers(..)"
)
<<
"Ignoring layers on co
nstraint
patch "
<<
pp
.
name
()
<<
"Ignoring layers on co
upled
patch "
<<
pp
.
name
()
<<
endl
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment