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
1cf850f1
Commit
1cf850f1
authored
Apr 11, 2013
by
mattijs
Browse files
ENH: snappyHexMesh: print final mesh check
parent
e5e100ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C
View file @
1cf850f1
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -47,6 +47,8 @@ Description
#include "snapParameters.H"
#include "layerParameters.H"
#include "vtkSetWriter.H"
#include "faceSet.H"
#include "motionSmoother.H"
using
namespace
Foam
;
...
...
@@ -675,6 +677,31 @@ int main(int argc, char *argv[])
}
{
// Check final mesh
Info
<<
"Checking final mesh ..."
<<
endl
;
faceSet
wrongFaces
(
mesh
,
"wrongFaces"
,
mesh
.
nFaces
()
/
100
);
motionSmoother
::
checkMesh
(
false
,
mesh
,
motionDict
,
wrongFaces
);
const
label
nErrors
=
returnReduce
(
wrongFaces
.
size
(),
sumOp
<
label
>
()
);
if
(
nErrors
>
0
)
{
Info
<<
"Finished meshing with "
<<
nErrors
<<
" illegal faces"
<<
" (concave, zero area or negative cell pyramid volume)"
<<
endl
;
wrongFaces
.
write
();
}
else
{
Info
<<
"Finished meshing without any errors"
<<
endl
;
}
}
Info
<<
"Finished meshing in = "
<<
runTime
.
elapsedCpuTime
()
<<
" s."
<<
endl
;
...
...
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