Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Community
integration-cfmesh
Commits
e675a103
Commit
e675a103
authored
Nov 23, 2015
by
Franjo
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/enhancement-emptyPatches' into development
parents
366d854f
9a47b26f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
3 deletions
+28
-3
meshLibrary/cartesian2DMesh/cartesian2DMeshGenerator/cartesian2DMeshGenerator.C
...DMesh/cartesian2DMeshGenerator/cartesian2DMeshGenerator.C
+1
-1
meshLibrary/utilities/surfaceTools/renameBoundaryPatches/renameBoundaryPatches.C
...urfaceTools/renameBoundaryPatches/renameBoundaryPatches.C
+22
-1
meshLibrary/utilities/surfaceTools/renameBoundaryPatches/renameBoundaryPatches.H
...urfaceTools/renameBoundaryPatches/renameBoundaryPatches.H
+5
-1
No files found.
meshLibrary/cartesian2DMesh/cartesian2DMeshGenerator/cartesian2DMeshGenerator.C
View file @
e675a103
...
...
@@ -188,7 +188,7 @@ void cartesian2DMeshGenerator::refBoundaryLayers()
void
cartesian2DMeshGenerator
::
replaceBoundaries
()
{
renameBoundaryPatches
rbp
(
mesh_
,
meshDict_
);
renameBoundaryPatches
rbp
(
mesh_
,
meshDict_
,
true
);
}
void
cartesian2DMeshGenerator
::
renumberMesh
()
...
...
meshLibrary/utilities/surfaceTools/renameBoundaryPatches/renameBoundaryPatches.C
View file @
e675a103
...
...
@@ -248,19 +248,40 @@ void renameBoundaryPatches::calculateNewBoundary()
Info
<<
"Finished renaming boundary patches"
<<
endl
;
}
void
renameBoundaryPatches
::
checkEmptyPatches
()
{
polyMeshGenModifier
meshModifier
(
mesh_
);
forAll
(
mesh_
.
boundaries
(),
patchI
)
{
boundaryPatch
&
patch
=
meshModifier
.
boundariesAccess
()[
patchI
];
if
(
patch
.
patchType
()
==
"empty"
)
{
patch
.
patchType
()
=
"wall"
;
}
}
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
renameBoundaryPatches
::
renameBoundaryPatches
(
polyMeshGen
&
mesh
,
const
IOdictionary
&
meshDict
const
IOdictionary
&
meshDict
,
const
bool
allowEmptyPatches
)
:
mesh_
(
mesh
),
meshDict_
(
meshDict
)
{
if
(
!
allowEmptyPatches
)
{
checkEmptyPatches
();
}
if
(
meshDict
.
found
(
"renameBoundary"
)
)
calculateNewBoundary
();
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
...
...
meshLibrary/utilities/surfaceTools/renameBoundaryPatches/renameBoundaryPatches.H
View file @
e675a103
...
...
@@ -61,6 +61,9 @@ class renameBoundaryPatches
// Private member functions
//- calculate new boundary and replace the existing one
void
calculateNewBoundary
();
//- find empty patches in 3D meshes and change them to wall
void
checkEmptyPatches
();
//- Disallow default bitwise copy construct
renameBoundaryPatches
(
const
renameBoundaryPatches
&
);
...
...
@@ -76,7 +79,8 @@ public:
renameBoundaryPatches
(
polyMeshGen
&
mesh
,
const
IOdictionary
&
meshDict
const
IOdictionary
&
meshDict
,
const
bool
allowEmptyPatches
=
false
);
// Destructor
...
...
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