1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Stores the patch ID and templated data to represent a collision
29 with a wall to be passed to the wall model.
36 \*---------------------------------------------------------------------------*/
38 #ifndef WallSiteData_H
39 #define WallSiteData_H
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of friend functions and operators
54 Istream& operator>>(Istream&, WallSiteData<Type>&);
57 Ostream& operator<<(Ostream&, const WallSiteData<Type>&);
60 /*---------------------------------------------------------------------------*\
61 Class WallSiteData Declaration
62 \*---------------------------------------------------------------------------*/
69 //- Index of originating patch
83 //- Construct from components
97 //- Return access to the patch index
98 inline label patchIndex() const;
100 //- Return non-const access to the patch index
101 inline label& patchIndex();
103 //- Return access to wall data
104 inline const Type& wallData() const;
106 //- Return non-const access to wall data
107 inline Type& wallData();
112 bool operator==(const WallSiteData<Type>&) const;
113 bool operator!=(const WallSiteData<Type>&) const;
116 // IOstream Operators
118 friend Istream& operator>> <Type>
119 (Istream&, WallSiteData<Type>&);
121 friend Ostream& operator<< <Type>
122 (Ostream&, const WallSiteData<Type>&);
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 } // End namespace Foam
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 #include "WallSiteDataI.H"
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 # include "WallSiteData.C"
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 // ************************************************************************* //