FreeFOAM The Cross-Platform CFD Toolkit
basicSourceI.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 | Copyright (C) 2010-2010 OpenCFD Ltd.
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 "basicSource.H"
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
30 inline const Foam::word& Foam::basicSource::name() const
31 {
32  return name_;
33 }
34 
35 
37 {
38  return mesh_;
39 }
40 
42 {
43  return dict_;
44 }
45 
46 inline bool Foam::basicSource::active() const
47 {
48  return active_;
49 }
50 
51 
52 inline Foam::scalar Foam::basicSource::timeStart() const
53 {
54  return timeStart_;
55 }
56 
57 
58 inline Foam::scalar Foam::basicSource::duration() const
59 {
60  return duration_;
61 }
62 
63 
64 inline Foam::scalar Foam::basicSource::timeEnd() const
65 {
66  return timeStart_ + duration_;
67 }
68 
69 
72 {
73  return selectionMode_;
74 }
75 
76 
78 {
79  return cellSetName_;
80 }
81 
82 
83 inline Foam::scalar Foam::basicSource::V() const
84 {
85  return V_;
86 }
87 
88 
90 {
91  return cells_;
92 }
93 
94 
96 {
97  return name_;
98 }
99 
100 
102 {
103  return active_;
104 }
105 
106 
107 inline Foam::scalar& Foam::basicSource::timeStart()
108 {
109  return timeStart_;
110 }
111 
112 
113 inline Foam::scalar& Foam::basicSource::duration()
114 {
115  return duration_;
116 }
117 
118 
120 {
121  return cellSetName_;
122 }
123 
124 
127 {
128  return selectionMode_;
129 }
130 
131 
132 inline Foam::scalar& Foam::basicSource::V()
133 {
134  return V_;
135 }
136 
137 
139 {
140  return cells_;
141 }
142 
143 
144 // ************************************************************************* //