WallInteractionModel.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-2015 OpenFOAM Foundation
9  Copyright (C) 2021 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 "WallInteractionModel.H"
30 
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32 
33 template<class CloudType>
35 :
36  owner_(owner),
37  dict_(dictionary::null),
38  coeffDict_()
39 {}
40 
41 
42 template<class CloudType>
44 (
45  const dictionary& dict,
46  CloudType& owner,
47  const word& type
48 )
49 :
50  owner_(owner),
51  dict_(dict),
52  coeffDict_(dict.subDict(type + "Coeffs"))
53 {}
54 
55 
56 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
57 
58 template<class CloudType>
60 {}
61 
62 
63 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
64 
65 template<class CloudType>
67 {
68  return owner_;
69 }
70 
71 
72 template<class CloudType>
74 {
75  return owner_;
76 }
77 
78 
79 template<class CloudType>
81 {
82  return dict_;
83 }
84 
85 
86 template<class CloudType>
87 const Foam::dictionary&
89 {
90  return coeffDict_;
91 }
92 
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
97 
98 // ************************************************************************* //
Foam::WallInteractionModel::WallInteractionModel
WallInteractionModel(CloudType &owner)
Construct null from owner.
Definition: WallInteractionModel.C:34
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
WallInteractionModelNew.C
Foam::WallInteractionModel::dict
const dictionary & dict() const
Return the dictionary.
Definition: WallInteractionModel.C:80
Foam::WallInteractionModel::owner
const CloudType & owner() const
Return the owner cloud object.
Definition: WallInteractionModel.C:66
Foam::DSMCCloud
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:71
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
WallInteractionModel.H
Foam::roots::type
type
Types of root.
Definition: Roots.H:54
Foam::WallInteractionModel::~WallInteractionModel
virtual ~WallInteractionModel()
Destructor.
Definition: WallInteractionModel.C:59
Foam::WallInteractionModel::coeffDict
const dictionary & coeffDict() const
Return the coefficients dictionary.
Definition: WallInteractionModel.C:88