ENH: inGroups support for mesh zones

- provisions for alternative groupings of zones

- extend indices() for boundary meshes to handle wordRes as well
This commit is contained in:
Mark Olesen
2021-08-31 15:36:05 +02:00
parent f0fb0d4263
commit 610711ac47
40 changed files with 1272 additions and 661 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2016 OpenFOAM Foundation
Copyright (C) 2016-2020 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -85,11 +85,11 @@ label addPatch
pbm
)
);
polyPatch& pp = ppPtr();
auto& pp = *ppPtr;
if (!groupName.empty() && !pp.inGroup(groupName))
if (!groupName.empty())
{
pp.inGroups().append(groupName);
pp.inGroups().appendUniq(groupName);
}