OpenFOAM
12
The OpenFOAM Foundation
PatchIntersection.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration | Website: https://openfoam.org
5
\\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
\*---------------------------------------------------------------------------*/
25
26
#include "
PatchIntersection.H
"
27
#include "
primitivePatch.H
"
28
#include "
vtkWritePolyData.H
"
29
30
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31
32
template
<
class
SrcPatchType,
class
TgtPatchType>
33
Foam::PatchIntersection<SrcPatchType, TgtPatchType>::PatchIntersection
34
(
35
const
SrcPatchType& srcPatch,
36
const
TgtPatchType& tgtPatch
37
)
38
:
39
patchIntersection
40
(
41
srcPatch.
nPoints
(),
42
tgtPatch.
nPoints
(),
43
srcPatch.nEdges(),
44
tgtPatch.nEdges(),
45
srcPatch.size(),
46
tgtPatch.size()
47
),
48
49
srcPatch_(srcPatch),
50
tgtPatch_(tgtPatch)
51
{}
52
53
54
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
55
56
template
<
class
SrcPatchType,
class
TgtPatchType>
57
Foam::PatchIntersection<SrcPatchType, TgtPatchType>::~PatchIntersection
()
58
{}
59
60
61
// ************************************************************************* //
PatchIntersection.H
Foam::PatchIntersection::~PatchIntersection
virtual ~PatchIntersection()
Destructor.
Definition:
PatchIntersection.C:57
Foam::PatchIntersection::PatchIntersection
PatchIntersection(const SrcPatchType &srcPatch, const TgtPatchType &tgtPatch)
Construct from a source and a target patch.
Definition:
PatchIntersection.C:34
Foam::patchIntersection
Base class for patch intersections. Provides type name and debugging. See templated derivatives for a...
Definition:
patchIntersection.H:51
nPoints
label nPoints
Definition:
gmvOutputHeader.H:2
primitivePatch.H
vtkWritePolyData.H
src
meshTools
patchIntersection
PatchIntersection.C
Generated by
1.9.1