Newer
Older
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
-------------------------------------------------------------------------------
Copyright (C) 2020 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
\*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
inline const Foam::word& Foam::cellModel::name() const noexcept
{
return name_;
}
inline Foam::label Foam::cellModel::index() const noexcept
{
return index_;
}
inline Foam::label Foam::cellModel::nPoints() const noexcept
{
return nPoints_;
}
inline Foam::label Foam::cellModel::nEdges() const noexcept
{
return edges_.size();
}
inline Foam::label Foam::cellModel::nFaces() const noexcept
{
return faces_.size();
}
inline const Foam::edgeList& Foam::cellModel::modelEdges() const noexcept
{
return edges_;
}
inline const Foam::faceList& Foam::cellModel::modelFaces() const noexcept
{
return faces_;
}
inline Foam::edgeList Foam::cellModel::edges
(
const labelUList& pointLabels
edgeList theEdges(edges_.size());
forAll(edges_, edgei)
// From model labels to global labels
theEdges[edgei] = Foam::edge(pointLabels, edges_[edgei]);
inline Foam::edge Foam::cellModel::edge
(
const label modelEdgei,
const labelUList& pointLabels
) const
{
// From model labels to global labels
return Foam::edge(pointLabels, edges_[modelEdgei]);
}
inline Foam::faceList Foam::cellModel::faces
(
const labelUList& pointLabels
faceList theFaces(faces_.size());
// From model labels to global labels
theFaces[facei] = Foam::face(pointLabels, faces_[facei]);
}
return theFaces;
}
inline Foam::face Foam::cellModel::face
(
const label modelFacei,
const labelUList& pointLabels
) const
{
// From model labels to global labels
return Foam::face(pointLabels, faces_[modelFacei]);
// * * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * //
inline bool Foam::operator==
(
const cellModel& lhs,
const cellModel& rhs
) noexcept
return (&lhs == &rhs);
inline bool Foam::operator!=
(
const cellModel& lhs,
const cellModel& rhs
) noexcept
return (&lhs != &rhs);
}
// ************************************************************************* //