closedTriSurfaceMesh.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) 2011-2017 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::closedTriSurfaceMesh
28
29Description
30 A triSurfaceMesh where it is forced to check volumeTypes, used for surfaces
31 that are topologically non-manifold (small holes or multiple parts) but are
32 geometrically essentially closed
33
34SourceFiles
35 closedTriSurfaceMesh.C
36
37\*---------------------------------------------------------------------------*/
38
39#ifndef closedTriSurfaceMesh_H
40#define closedTriSurfaceMesh_H
41
42#include "triSurfaceMesh.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48
49/*---------------------------------------------------------------------------*\
50 Class closedTriSurfaceMesh Declaration
51\*---------------------------------------------------------------------------*/
54:
55 public triSurfaceMesh
56{
57
58 // Private Member Functions
59
60 //- No copy construct
62
63 //- No copy assignment
64 void operator=(const closedTriSurfaceMesh&) = delete;
65
66
67public:
68
69 //- Runtime type information
70 TypeName("closedTriSurfaceMesh");
71
72
73 // Constructors
74
75 //- Construct from triSurface
77
78 //- Construct read.
80
81 //- Construct from IO and dictionary (used by searchableSurface).
82 // Dictionary may contain a 'scale' entry (eg, 0.001: mm to m)
84 (
85 const IOobject& io,
86 const dictionary& dict
87 );
88
89
90 //- Destructor
91 virtual ~closedTriSurfaceMesh() = default;
92
93
94 // Member Functions
95
96 //- Whether supports volume type, forcing to true to force getVolumeType
97 // queries for this type
98 virtual bool hasVolumeType() const
99 {
100 return true;
101 }
102
103};
104
105
106// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107
108} // End namespace Foam
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112#endif
113
114// ************************************************************************* //
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
A triSurfaceMesh where it is forced to check volumeTypes, used for surfaces that are topologically no...
TypeName("closedTriSurfaceMesh")
Runtime type information.
virtual ~closedTriSurfaceMesh()=default
Destructor.
virtual bool hasVolumeType() const
Whether supports volume type, forcing to true to force getVolumeType.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
IOoject and searching on triSurface.
Triangulated surface description with patch information.
Definition: triSurface.H:79
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73