Skip to content
Snippets Groups Projects
cellModelI.H 3.39 KiB
Newer Older
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     |
OpenFOAM bot's avatar
OpenFOAM bot committed
    \\  /    A nd           | www.openfoam.com
     \\/     M anipulation  |
-------------------------------------------------------------------------------
OpenFOAM bot's avatar
OpenFOAM bot committed
    Copyright (C) 2011-2016 OpenFOAM Foundation
    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
inline Foam::label Foam::cellModel::index() const noexcept
inline Foam::label Foam::cellModel::nPoints() const noexcept
inline Foam::label Foam::cellModel::nEdges() const noexcept
inline Foam::label Foam::cellModel::nFaces() const noexcept
inline const Foam::edgeList& Foam::cellModel::modelEdges() const noexcept
inline const Foam::faceList& Foam::cellModel::modelFaces() const noexcept
inline Foam::edgeList Foam::cellModel::edges
(
    edgeList theEdges(edges_.size());
        // 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
(
    faceList theFaces(faces_.size());
    forAll(faces_, facei)
        // From model labels to global labels
        theFaces[facei] = Foam::face(pointLabels, faces_[facei]);
    }
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
inline bool Foam::operator!=
(
    const cellModel& lhs,
    const cellModel& rhs
) noexcept
}


// ************************************************************************* //