OpenFOAM: API Guide
v2112
The open source CFD toolbox
WallSiteData.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
-------------------------------------------------------------------------------
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
\*---------------------------------------------------------------------------*/
27
28
#include "
WallSiteData.H
"
29
30
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31
32
template
<
class
Type>
33
Foam::WallSiteData<Type>::WallSiteData
()
34
:
35
patchi_(),
36
wallData_()
37
{}
38
39
40
template
<
class
Type>
41
Foam::WallSiteData<Type>::WallSiteData
42
(
43
label patchi,
44
const
Type& wallData
45
)
46
:
47
patchi_(patchi),
48
wallData_(wallData)
49
{}
50
51
52
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
53
54
template
<
class
Type>
55
Foam::WallSiteData<Type>::~WallSiteData
()
56
{}
57
58
59
// * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * * //
60
61
template
<
class
Type>
62
bool
Foam::WallSiteData<Type>::operator
==
63
(
64
const
WallSiteData<Type>
& rhs
65
)
const
66
{
67
return
patchi_ == rhs.patchi_ && wallData_ == rhs.wallData_;
68
}
69
70
71
template
<
class
Type>
72
bool
Foam::WallSiteData<Type>::operator
!=
73
(
74
const
WallSiteData<Type>
& rhs
75
)
const
76
{
77
return
!(*
this
== rhs);
78
}
79
80
81
// * * * * * * * * * * * * * * * IOstream Operators * * * * * * * * * * * * //
82
83
template
<
class
Type>
84
Foam::Istream
& Foam::operator>>
85
(
86
Istream
& is,
87
WallSiteData<Type>
& wIS
88
)
89
{
90
is >> wIS.patchi_ >> wIS.wallData_;
91
92
is.
check
(
FUNCTION_NAME
);
93
return
is;
94
}
95
96
97
template
<
class
Type>
98
Foam::Ostream
& Foam::operator<<
99
(
100
Ostream&
os
,
101
const
WallSiteData<Type>& wIS
102
)
103
{
104
os
<< wIS.patchi_ <<
token::SPACE
<< wIS.wallData_;
105
106
os
.
check
(
FUNCTION_NAME
);
107
return
os
;
108
}
109
110
111
// ************************************************************************* //
Foam::WallSiteData::WallSiteData
WallSiteData()
Construct null.
Definition:
WallSiteData.C:33
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition:
Istream.H:61
Foam::IOstream::check
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Definition:
IOstream.C:58
os
OBJstream os(runTime.globalPath()/outputName)
WallSiteData.H
Foam::WallSiteData
Stores the patch ID and templated data to represent a collision with a wall to be passed to the wall ...
Definition:
WallSiteData.H:52
Foam::token::SPACE
Space [isspace].
Definition:
token.H:125
FUNCTION_NAME
#define FUNCTION_NAME
Definition:
messageStream.H:295
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition:
Ostream.H:56
Foam::WallSiteData::~WallSiteData
~WallSiteData()
Destructor.
Definition:
WallSiteData.C:55
src
lagrangian
intermediate
submodels
Kinematic
CollisionModel
PairCollision
WallSiteData
WallSiteData.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.