mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: setToFaceZone: improved messages
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user