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

NoInjection.C

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) 1991-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 "NoInjection.H"
00027 #include <OpenFOAM/addToRunTimeSelectionTable.H>
00028 
00029 // * * * * * * * * * * * * Protected Member Functions  * * * * * * * * * * * //
00030 
00031 template<class CloudType>
00032 Foam::label Foam::NoInjection<CloudType>::parcelsToInject
00033 (
00034     const scalar,
00035     const scalar
00036 ) const
00037 {
00038     return 0;
00039 }
00040 
00041 
00042 template<class CloudType>
00043 Foam::scalar Foam::NoInjection<CloudType>::volumeToInject
00044 (
00045     const scalar,
00046     const scalar
00047 ) const
00048 {
00049     return 0.0;
00050 }
00051 
00052 
00053 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00054 
00055 template<class CloudType>
00056 Foam::NoInjection<CloudType>::NoInjection
00057 (
00058     const dictionary&,
00059     CloudType& owner
00060 )
00061 :
00062     InjectionModel<CloudType>(owner)
00063 {}
00064 
00065 
00066 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00067 
00068 template<class CloudType>
00069 Foam::NoInjection<CloudType>::~NoInjection()
00070 {}
00071 
00072 
00073 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00074 
00075 template<class CloudType>
00076 bool Foam::NoInjection<CloudType>::active() const
00077 {
00078     return false;
00079 }
00080 
00081 
00082 template<class CloudType>
00083 Foam::scalar Foam::NoInjection<CloudType>::timeEnd() const
00084 {
00085     return 0.0;
00086 }
00087 
00088 
00089 template<class CloudType>
00090 void Foam::NoInjection<CloudType>::setPositionAndCell
00091 (
00092     const label,
00093     const label,
00094     const scalar,
00095     vector&,
00096     label&
00097 )
00098 {}
00099 
00100 
00101 template<class CloudType>
00102 void Foam::NoInjection<CloudType>::setProperties
00103 (
00104     const label,
00105     const label,
00106     const scalar,
00107     typename CloudType::parcelType& parcel
00108 )
00109 {
00110     // set particle velocity
00111     parcel.U() = vector::zero;
00112 
00113     // set particle diameter
00114     parcel.d() = 0.0;
00115 }
00116 
00117 
00118 template<class CloudType>
00119 bool Foam::NoInjection<CloudType>::fullyDescribed() const
00120 {
00121     return false;
00122 }
00123 
00124 
00125 template<class CloudType>
00126 bool Foam::NoInjection<CloudType>::validInjection(const label)
00127 {
00128     return false;
00129 }
00130 
00131 
00132 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines