mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: zones inGroup entry not read from dictionary (fixes #2485)
ENH: add ZoneMesh groupNames method
This commit is contained in:
@ -307,6 +307,13 @@ Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::names() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class ZoneType, class MeshType>
|
||||||
|
Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::groupNames() const
|
||||||
|
{
|
||||||
|
return this->groupZoneIDs().sortedToc();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
template<class ZoneType, class MeshType>
|
template<class ZoneType, class MeshType>
|
||||||
Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::names
|
Foam::wordList Foam::ZoneMesh<ZoneType, MeshType>::names
|
||||||
(
|
(
|
||||||
|
|||||||
@ -159,6 +159,9 @@ public:
|
|||||||
//- A list of the zone names
|
//- A list of the zone names
|
||||||
wordList names() const;
|
wordList names() const;
|
||||||
|
|
||||||
|
//- A list of the zone group names (if any)
|
||||||
|
wordList groupNames() const;
|
||||||
|
|
||||||
//- A list of zone names satisfying the input matcher
|
//- A list of zone names satisfying the input matcher
|
||||||
wordList names(const wordRe& matcher) const;
|
wordList names(const wordRe& matcher) const;
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2017-2021 OpenCFD Ltd.
|
Copyright (C) 2017-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -92,7 +92,9 @@ Foam::zone::zone
|
|||||||
const label index
|
const label index
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
zone(name, dict.get<labelList>(labelsName), index)
|
zoneIdentifier(name, dict, index),
|
||||||
|
labelList(dict.get<labelList>(labelsName)),
|
||||||
|
lookupMapPtr_(nullptr)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user