FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

TimeActivatedExplicitSourceI.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 2010-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 #include "TimeActivatedExplicitSource_.H"
00027 
00028 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00029 
00030 template<class Type>
00031 inline const Foam::word& Foam::TimeActivatedExplicitSource<Type>::name() const
00032 {
00033     return name_;
00034 }
00035 
00036 
00037 template<class Type>
00038 inline const Foam::fvMesh& Foam::TimeActivatedExplicitSource<Type>::mesh() const
00039 {
00040     return mesh_;
00041 }
00042 
00043 
00044 template<class Type>
00045 inline bool Foam::TimeActivatedExplicitSource<Type>::active() const
00046 {
00047     return active_;
00048 }
00049 
00050 
00051 template<class Type>
00052 inline Foam::scalar Foam::TimeActivatedExplicitSource<Type>::timeStart() const
00053 {
00054     return timeStart_;
00055 }
00056 
00057 
00058 template<class Type>
00059 inline Foam::scalar Foam::TimeActivatedExplicitSource<Type>::duration() const
00060 {
00061     return duration_;
00062 }
00063 
00064 
00065 template<class Type>
00066 inline Foam::scalar Foam::TimeActivatedExplicitSource<Type>::timeEnd() const
00067 {
00068     return timeStart_ + duration_;
00069 }
00070 
00071 
00072 template<class Type>
00073 inline const typename Foam::TimeActivatedExplicitSource<Type>::volumeModeType&
00074 Foam::TimeActivatedExplicitSource<Type>::volumeMode() const
00075 {
00076     return volumeMode_;
00077 }
00078 
00079 
00080 template<class Type>
00081 inline const typename Foam::TimeActivatedExplicitSource<Type>::
00082 selectionModeType&
00083 Foam::TimeActivatedExplicitSource<Type>::selectionMode() const
00084 {
00085     return selectionMode_;
00086 }
00087 
00088 
00089 template<class Type>
00090 inline const Foam::List<Foam::point>&
00091 Foam::TimeActivatedExplicitSource<Type>::points() const
00092 {
00093     return points_;
00094 }
00095 
00096 
00097 template<class Type>
00098 inline const Foam::word&
00099 Foam::TimeActivatedExplicitSource<Type>::cellSetName() const
00100 {
00101     return cellSetName_;
00102 }
00103 
00104 
00105 template<class Type>
00106 inline Foam::scalar Foam::TimeActivatedExplicitSource<Type>::V() const
00107 {
00108     return V_;
00109 }
00110 
00111 
00112 template<class Type>
00113 inline const Foam::labelList&
00114 Foam::TimeActivatedExplicitSource<Type>::cells() const
00115 {
00116     return cells_;
00117 }
00118 
00119 
00120 template<class Type>
00121 inline const Foam::List<typename Foam::TimeActivatedExplicitSource<Type>::
00122 fieldNameValuePair>&
00123 Foam::TimeActivatedExplicitSource<Type>::fieldData() const
00124 {
00125     return fieldData_;
00126 }
00127 
00128 
00129 template<class Type>
00130 inline const Foam::labelList&
00131 Foam::TimeActivatedExplicitSource<Type>::fieldIds() const
00132 {
00133     return fieldIds_;
00134 }
00135 
00136 
00137 template<class Type>
00138 inline Foam::word& Foam::TimeActivatedExplicitSource<Type>::name()
00139 {
00140     return name_;
00141 }
00142 
00143 
00144 template<class Type>
00145 inline bool& Foam::TimeActivatedExplicitSource<Type>::active()
00146 {
00147     return active_;
00148 }
00149 
00150 
00151 template<class Type>
00152 inline Foam::scalar& Foam::TimeActivatedExplicitSource<Type>::timeStart()
00153 {
00154     return timeStart_;
00155 }
00156 
00157 
00158 template<class Type>
00159 inline Foam::scalar& Foam::TimeActivatedExplicitSource<Type>::duration()
00160 {
00161     return duration_;
00162 }
00163 
00164 
00165 template<class Type>
00166 inline typename Foam::TimeActivatedExplicitSource<Type>::volumeModeType&
00167 Foam::TimeActivatedExplicitSource<Type>::volumeMode()
00168 {
00169     return volumeMode_;
00170 }
00171 
00172 
00173 template<class Type>
00174 inline typename Foam::TimeActivatedExplicitSource<Type>::selectionModeType&
00175 Foam::TimeActivatedExplicitSource<Type>::selectionMode()
00176 {
00177     return selectionMode_;
00178 }
00179 
00180 
00181 template<class Type>
00182 inline Foam::List<Foam::point>&
00183 Foam::TimeActivatedExplicitSource<Type>::points()
00184 {
00185     return points_;
00186 }
00187 
00188 
00189 template<class Type>
00190 inline Foam::word& Foam::TimeActivatedExplicitSource<Type>::cellSetName()
00191 {
00192     return cellSetName_;
00193 }
00194 
00195 
00196 template<class Type>
00197 inline Foam::scalar& Foam::TimeActivatedExplicitSource<Type>::V()
00198 {
00199     return V_;
00200 }
00201 
00202 
00203 template<class Type>
00204 inline Foam::labelList& Foam::TimeActivatedExplicitSource<Type>::cells()
00205 {
00206     return cells_;
00207 }
00208 
00209 
00210 template<class Type>
00211 inline Foam::List<typename Foam::TimeActivatedExplicitSource<Type>::fieldNameValuePair>&
00212 Foam::TimeActivatedExplicitSource<Type>::fieldData()
00213 {
00214     return fieldData_;
00215 }
00216 
00217 
00218 template<class Type>
00219 inline Foam::labelList& Foam::TimeActivatedExplicitSource<Type>::fieldIds()
00220 {
00221     return fieldIds_;
00222 }
00223 
00224 
00225 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines