OpenFOAM: API Guide
v1912
The open source CFD toolbox
surfMeshClear.C
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-2016 OpenFOAM Foundation
9
Copyright (C) 2016-2019 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
12
This file is part of OpenFOAM.
13
14
OpenFOAM is free software: you can redistribute it and/or modify it
15
under the terms of the GNU General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
19
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27
\*---------------------------------------------------------------------------*/
28
29
#include "
surfMesh.H
"
30
#include "
globalMeshData.H
"
31
#include "
demandDrivenData.H
"
32
33
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
34
35
void
Foam::surfMesh::removeZones
()
36
{
37
DebugInFunction
<<
"Removing surface zones."
<<
endl
;
38
39
// Remove the surface zones
40
surfZones_.
clear
();
41
42
clearOut
();
43
}
44
45
46
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
47
48
void
Foam::surfMesh::clearGeom
()
49
{
50
DebugInFunction
<<
"Clearing geometric data"
<<
endl
;
51
52
MeshReference::clearGeom();
53
}
54
55
56
void
Foam::surfMesh::clearAddressing
()
57
{
58
DebugInFunction
<<
"Clearing topology"
<<
endl
;
59
60
MeshReference::clearPatchMeshAddr();
61
}
62
63
64
void
Foam::surfMesh::clearOut
()
65
{
66
MeshReference::clearOut();
67
68
clearGeom();
69
clearAddressing();
70
}
71
72
73
void
Foam::surfMesh::clearFields
()
74
{
75
// Clear the entire registry
76
surfaceRegistry::clear
();
77
}
78
79
80
// ************************************************************************* //
Foam::surfMesh::clearGeom
void clearGeom()
Clear geometry.
Definition:
surfMeshClear.C:48
globalMeshData.H
demandDrivenData.H
Template functions to aid in the implementation of demand driven data.
Foam::objectRegistry::clear
void clear()
Clear all entries from the registry.
Definition:
objectRegistry.C:335
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:337
Foam::surfMesh::clearFields
void clearFields()
Clear stored fields.
Definition:
surfMeshClear.C:73
Foam::surfMesh::removeZones
void removeZones()
Remove surface zones.
Definition:
surfMeshClear.C:35
DebugInFunction
#define DebugInFunction
Report an information message using Foam::Info.
Definition:
messageStream.H:356
surfMesh.H
Foam::surfMesh::clearOut
void clearOut()
Clear all geometry and addressing unnecessary for CFD.
Definition:
surfMeshClear.C:64
Foam::surfMesh::clearAddressing
void clearAddressing()
Clear addressing.
Definition:
surfMeshClear.C:56
Foam::List::clear
void clear()
Clear the list, i.e. set size to zero.
Definition:
ListI.H:115
src
surfMesh
surfMesh
surfMeshClear.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.