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
7339d642
Commit
7339d642
authored
Jan 07, 2019
by
mattijs
Browse files
ENH: setToFaceZone: improved messages
parent
a6a46d23
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/meshTools/sets/faceZoneSources/setToFaceZone/setToFaceZone.C
View file @
7339d642
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2018
-2019
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -68,7 +68,14 @@ Foam::setToFaceZone::setToFaceZone
:
topoSetSource
(
mesh
),
setName_
(
dict
.
get
<
word
>
(
"faceSet"
))
{}
{
if
(
dict
.
found
(
"cellSet"
))
{
IOWarningInFunction
(
dict
)
<<
"Ignoring entry 'cellSet' - maybe use setsToFaceZone instead ?"
<<
endl
;
}
}
Foam
::
setToFaceZone
::
setToFaceZone
...
...
src/meshTools/sets/faceZoneSources/setsToFaceZone/setsToFaceZone.C
View file @
7339d642
...
...
@@ -3,7 +3,7 @@
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\/ M anipulation | Copyright (C) 2018 OpenCFD Ltd.
\\/ M anipulation | Copyright (C) 2018
-2019
OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
...
...
@@ -112,8 +112,18 @@ void Foam::setsToFaceZone::applyToSet
{
if
(
verbose_
)
{
Info
<<
" Adding all faces from faceSet "
<<
faceSetName_
<<
" ..."
<<
endl
;
if
(
flip_
)
{
Info
<<
" Adding all faces from faceSet "
<<
faceSetName_
<<
"; orientation pointing into cellSet "
<<
cellSetName_
<<
" ..."
<<
endl
;
}
else
{
Info
<<
" Adding all faces from faceSet "
<<
faceSetName_
<<
"; orientation pointing away from cellSet "
<<
cellSetName_
<<
" ..."
<<
endl
;
}
}
// Load the sets
...
...
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