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

basicSourceI.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 "basicSource.H"
00027 
00028 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00029 
00030 inline const Foam::word& Foam::basicSource::name() const
00031 {
00032     return name_;
00033 }
00034 
00035 
00036 inline const Foam::fvMesh& Foam::basicSource::mesh() const
00037 {
00038     return mesh_;
00039 }
00040 
00041 inline const Foam::dictionary& Foam::basicSource::dictCoeffs() const
00042 {
00043     return dict_;
00044 }
00045 
00046 inline bool Foam::basicSource::active() const
00047 {
00048     return active_;
00049 }
00050 
00051 
00052 inline Foam::scalar Foam::basicSource::timeStart() const
00053 {
00054     return timeStart_;
00055 }
00056 
00057 
00058 inline Foam::scalar Foam::basicSource::duration() const
00059 {
00060     return duration_;
00061 }
00062 
00063 
00064 inline Foam::scalar Foam::basicSource::timeEnd() const
00065 {
00066     return timeStart_ + duration_;
00067 }
00068 
00069 
00070 inline const Foam::basicSource::selectionModeType&
00071 Foam::basicSource::selectionMode() const
00072 {
00073     return selectionMode_;
00074 }
00075 
00076 
00077 inline const Foam::word& Foam::basicSource::cellSetName() const
00078 {
00079     return cellSetName_;
00080 }
00081 
00082 
00083 inline Foam::scalar Foam::basicSource::V() const
00084 {
00085     return V_;
00086 }
00087 
00088 
00089 inline const Foam::labelList& Foam::basicSource::cells() const
00090 {
00091     return cells_;
00092 }
00093 
00094 
00095 inline Foam::word& Foam::basicSource::name()
00096 {
00097     return name_;
00098 }
00099 
00100 
00101 inline bool& Foam::basicSource::active()
00102 {
00103     return active_;
00104 }
00105 
00106 
00107 inline Foam::scalar& Foam::basicSource::timeStart()
00108 {
00109     return timeStart_;
00110 }
00111 
00112 
00113 inline Foam::scalar& Foam::basicSource::duration()
00114 {
00115     return duration_;
00116 }
00117 
00118 
00119 inline Foam::word& Foam::basicSource::cellSetName()
00120 {
00121     return cellSetName_;
00122 }
00123 
00124 
00125 inline Foam::basicSource::selectionModeType&
00126 Foam::basicSource::selectionMode()
00127 {
00128     return selectionMode_;
00129 }
00130 
00131 
00132 inline Foam::scalar& Foam::basicSource::V()
00133 {
00134     return V_;
00135 }
00136 
00137 
00138 inline Foam::labelList& Foam::basicSource::cells()
00139 {
00140     return cells_;
00141 }
00142 
00143 
00144 // ************************************************************************* //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines