OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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-2009 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 the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     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, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "NoInjection.H"
00028 #include "addToRunTimeSelectionTable.H"
00029 
00030 // * * * * * * * * * * * * Protected Member Functions  * * * * * * * * * * * //
00031 
00032 template<class CloudType>
00033 Foam::label Foam::NoInjection<CloudType>::parcelsToInject
00034 (
00035     const scalar,
00036     const scalar
00037 ) const
00038 {
00039     return 0;
00040 }
00041 
00042 
00043 template<class CloudType>
00044 Foam::scalar Foam::NoInjection<CloudType>::volumeToInject
00045 (
00046     const scalar,
00047     const scalar
00048 ) const
00049 {
00050     return 0.0;
00051 }
00052 
00053 
00054 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00055 
00056 template<class CloudType>
00057 Foam::NoInjection<CloudType>::NoInjection
00058 (
00059     const dictionary&,
00060     CloudType& owner
00061 )
00062 :
00063     InjectionModel<CloudType>(owner)
00064 {}
00065 
00066 
00067 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00068 
00069 template<class CloudType>
00070 Foam::NoInjection<CloudType>::~NoInjection()
00071 {}
00072 
00073 
00074 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00075 
00076 template<class CloudType>
00077 bool Foam::NoInjection<CloudType>::active() const
00078 {
00079     return false;
00080 }
00081 
00082 
00083 template<class CloudType>
00084 Foam::scalar Foam::NoInjection<CloudType>::timeEnd() const
00085 {
00086     return 0.0;
00087 }
00088 
00089 
00090 template<class CloudType>
00091 void Foam::NoInjection<CloudType>::setPositionAndCell
00092 (
00093     const label,
00094     const label,
00095     const scalar,
00096     vector&,
00097     label&
00098 )
00099 {}
00100 
00101 
00102 template<class CloudType>
00103 void Foam::NoInjection<CloudType>::setProperties
00104 (
00105     const label,
00106     const label,
00107     const scalar,
00108     typename CloudType::parcelType& parcel
00109 )
00110 {
00111     // set particle velocity
00112     parcel.U() = vector::zero;
00113 
00114     // set particle diameter
00115     parcel.d() = 0.0;
00116 }
00117 
00118 
00119 template<class CloudType>
00120 bool Foam::NoInjection<CloudType>::fullyDescribed() const
00121 {
00122     return false;
00123 }
00124 
00125 
00126 template<class CloudType>
00127 bool Foam::NoInjection<CloudType>::validInjection(const label)
00128 {
00129     return false;
00130 }
00131 
00132 
00133 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd