OpenFOAM
v2406
The open source CFD toolbox
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
-------------------------------------------------------------------------------
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::closedTriSurfaceMesh
28
29
Description
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
34
SourceFiles
35
closedTriSurfaceMesh.C
36
37
\*---------------------------------------------------------------------------*/
38
39
#ifndef closedTriSurfaceMesh_H
40
#define closedTriSurfaceMesh_H
41
42
#include "
triSurfaceMesh.H
"
43
44
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46
namespace
Foam
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Class closedTriSurfaceMesh Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
closedTriSurfaceMesh
54
:
55
public
triSurfaceMesh
56
{
57
58
// Private Member Functions
59
60
//- No copy construct
61
closedTriSurfaceMesh
(
const
closedTriSurfaceMesh
&) =
delete
;
62
63
//- No copy assignment
64
void
operator=(
const
closedTriSurfaceMesh
&) =
delete
;
65
66
67
public
:
68
69
//- Runtime type information
70
TypeName
(
"closedTriSurfaceMesh"
);
71
72
73
// Constructors
74
75
//- Construct from triSurface
76
closedTriSurfaceMesh
(
const
IOobject
&,
const
triSurface
&);
77
78
//- Construct read.
79
closedTriSurfaceMesh
(
const
IOobject
&
io
);
80
81
//- Construct from IO and dictionary (used by searchableSurface).
82
// Dictionary may contain a 'scale' entry (eg, 0.001: mm to m)
83
closedTriSurfaceMesh
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
// ************************************************************************* //
dict
dictionary dict
Definition:
searchingEngine.H:11
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition:
dictionary.H:129
Foam::closedTriSurfaceMesh::TypeName
TypeName("closedTriSurfaceMesh")
Runtime type information.
Foam::triSurfaceMesh
IOoject and searching on triSurface.
Definition:
triSurfaceMesh.H:102
Foam::closedTriSurfaceMesh::~closedTriSurfaceMesh
virtual ~closedTriSurfaceMesh()=default
Destructor.
triSurfaceMesh.H
io
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Foam::triSurface
Triangulated surface description with patch information.
Definition:
triSurface.H:71
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition:
IOobject.H:180
Foam::closedTriSurfaceMesh::hasVolumeType
virtual bool hasVolumeType() const
Whether supports volume type, forcing to true to force getVolumeType.
Definition:
closedTriSurfaceMesh.H:111
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
Foam::closedTriSurfaceMesh
A triSurfaceMesh where it is forced to check volumeTypes, used for surfaces that are topologically no...
Definition:
closedTriSurfaceMesh.H:48
src
meshTools
searchableSurfaces
closedTriSurfaceMesh
closedTriSurfaceMesh.H
Generated by
1.8.14