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
415cdb6a
Commit
415cdb6a
authored
Apr 15, 2013
by
mattijs
Browse files
ENH: checkMesh: check volume ratio and face interpolation weights
parent
44dc9a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/checkMesh/checkGeometry.C
View file @
415cdb6a
...
...
@@ -832,5 +832,39 @@ Foam::label Foam::checkGeometry(const polyMesh& mesh, const bool allGeometry)
}
}
if
(
allGeometry
)
{
faceSet
faces
(
mesh
,
"lowWeightFaces"
,
mesh
.
nFaces
()
/
100
);
if
(
mesh
.
checkFaceWeight
(
true
,
0
.
05
,
&
faces
))
{
noFailedChecks
++
;
label
nFaces
=
returnReduce
(
faces
.
size
(),
sumOp
<
label
>
());
Info
<<
" <<Writing "
<<
nFaces
<<
" faces with low interpolation weights to set "
<<
faces
.
name
()
<<
endl
;
faces
.
instance
()
=
mesh
.
pointsInstance
();
faces
.
write
();
}
}
if
(
allGeometry
)
{
faceSet
faces
(
mesh
,
"lowVolRatioFaces"
,
mesh
.
nFaces
()
/
100
);
if
(
mesh
.
checkVolRatio
(
true
,
0
.
05
,
&
faces
))
{
noFailedChecks
++
;
label
nFaces
=
returnReduce
(
faces
.
size
(),
sumOp
<
label
>
());
Info
<<
" <<Writing "
<<
nFaces
<<
" faces with low volume ratio cells to set "
<<
faces
.
name
()
<<
endl
;
faces
.
instance
()
=
mesh
.
pointsInstance
();
faces
.
write
();
}
}
return
noFailedChecks
;
}
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