PolyhedronReader.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2015 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::PolyhedronReader
28 
29 Description
30 
31 SourceFiles
32  PolyhedronReader.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef PolyhedronReader_H
37 #define PolyhedronReader_H
38 
39 #include "CGALIndexedPolyhedron.H"
40 #include "triSurface.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class PolyhedronReader Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class PolyhedronReader
52 {
53  // Private Classes
54 
55  template<class HDS>
56  class Build_triangle
57  :
58  public CGAL::Modifier_base<HDS>
59  {
60  const triSurface& s_;
61 
62  public:
63 
64  Build_triangle(const triSurface& s)
65  :
66  s_(s)
67  {}
68 
69  void operator()(HDS& hds);
70  };
71 
72 
73 public:
74 
75  // Constructors
76 
77  //- Populate polyhedron from surface
79 };
80 
81 
82 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 
84 } // End namespace Foam
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 #endif
89 
90 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
s
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
Definition: gmvOutputSpray.H:25
triSurface.H
Foam::triSurface
Triangulated surface description with patch information.
Definition: triSurface.H:76
CGALIndexedPolyhedron.H
CGAL data structures used for triSurface handling.
Foam::PolyhedronReader
Definition: PolyhedronReader.H:50
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Polyhedron
CGAL::Polyhedron_3< K, My_items > Polyhedron
Definition: CGALIndexedPolyhedron.H:82
Foam::PolyhedronReader::PolyhedronReader
PolyhedronReader(const triSurface &s, Polyhedron &p)
Populate polyhedron from surface.