patchInteractionData.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 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::patchInteractionData
28 
29 Description
30  Helper class for the LocalInteraction patch interaction model
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef patchInteractionData_H
35 #define patchInteractionData_H
36 
37 #include "Istream.H"
38 
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
40 
41 namespace Foam
42 {
43 /*---------------------------------------------------------------------------*\
44  Class patchInteractionData Declaration
45 \*---------------------------------------------------------------------------*/
46 
47 // Forward declaration of classes
48 class patchInteractionData;
49 
50 // Forward declaration of friend functions
51 Istream& operator>>
52 (
53  Istream& is,
54  patchInteractionData& pid
55 );
56 
57 
59 {
60  // Private data
61 
62  //- Interaction type name
63  word interactionTypeName_;
64 
65  //- Patch name
66  keyType patchName_;
67 
68  //- Elasticity coefficient
69  scalar e_;
70 
71  //- Restitution coefficient
72  scalar mu_;
73 
74 
75 public:
76 
77  // Constructor
78 
79  //- Construct null
81 
82 
83  // Member functions
84 
85  // Access
86 
87  //- Return const access to the interaction type name
88  const word& interactionTypeName() const;
89 
90  //- Return const access to the patch name
91  const keyType& patchName() const;
92 
93  //- Return const access to the elasticity coefficient
94  scalar e() const;
95 
96  //- Return const access to the restitution coefficient
97  scalar mu() const;
98 
99 
100  // I-O
101 
102  //- Istream operator
103  friend Istream& operator>>
104  (
105  Istream& is,
107  );
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace Foam
114 
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 
117 #endif
118 
119 // ************************************************************************* //
Foam::patchInteractionData
Helper class for the LocalInteraction patch interaction model.
Definition: patchInteractionData.H:57
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::keyType
A class for handling keywords in dictionaries.
Definition: keyType.H:60
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::pid
pid_t pid()
Return the PID of this process.
Definition: MSwindows.C:330
Foam::patchInteractionData::interactionTypeName
const word & interactionTypeName() const
Return const access to the interaction type name.
Definition: patchInteractionData.C:46
Istream.H
Foam::patchInteractionData::mu
scalar mu() const
Return const access to the restitution coefficient.
Definition: patchInteractionData.C:64
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::patchInteractionData::patchInteractionData
patchInteractionData()
Construct null.
Definition: patchInteractionData.C:35
Foam::patchInteractionData::e
scalar e() const
Return const access to the elasticity coefficient.
Definition: patchInteractionData.C:58
Foam::patchInteractionData::patchName
const keyType & patchName() const
Return const access to the patch name.
Definition: patchInteractionData.C:52