/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
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 .
Class
Foam::star
Description
Engine for constructing a star-shaped domain by walking
SourceFiles
star.C
\*---------------------------------------------------------------------------*/
#ifndef star_H
#define star_H
#include "DynamicList.H"
#include "labelPair.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
/*---------------------------------------------------------------------------*\
Class star Declaration
\*---------------------------------------------------------------------------*/
class star
{
public:
// Public Classes
//- Star-edge structure. Poor man's linked list link.
struct edgeLink
{
label starEdgei0_;
label edgei_;
label starEdgei1_;
};
//- Context class. Returned by populate and resets the star when it
// goes out of scope.
class context
{
private:
// Private Data
//- Reference to the star
star& star_;
public:
// Constructors
//- Construct from components
context(star& s);
// Destructor
~context();
};
private:
// Private Data
//- For each star face, the external face index, or -1
DynamicList