1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Place holder for 'none' option
33 \*---------------------------------------------------------------------------*/
35 #ifndef NoSurfaceFilm_H
36 #define NoSurfaceFilm_H
38 #include "SurfaceFilmModel.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class NoSurfaceFilm Declaration
47 \*---------------------------------------------------------------------------*/
49 template<class CloudType>
52 public SurfaceFilmModel<CloudType>
58 //- Convenience typedef for parcel type
59 typedef typename CloudType::parcelType parcelType;
64 //- Runtime type information
70 //- Construct from dictionary
71 NoSurfaceFilm(const dictionary&, CloudType&, const dimensionedVector&);
74 NoSurfaceFilm(const NoSurfaceFilm<CloudType>& dm);
76 //- Construct and return a clone
77 virtual autoPtr<SurfaceFilmModel<CloudType> > clone() const
79 return autoPtr<SurfaceFilmModel<CloudType> >
81 new NoSurfaceFilm<CloudType>(*this)
87 virtual ~NoSurfaceFilm();
94 //- Flag to indicate whether model activates the surface film model
95 virtual bool active() const;
97 //- Transfer parcel from cloud to surface film
98 // Returns true if parcel is to be transferred
99 virtual bool transferParcel
106 //- Set parcel properties
107 virtual void setParcelProperties
110 const label filmCellI
116 //- Write surface film info to stream
117 virtual void info(Ostream& os) const;
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace Foam
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 # include "NoSurfaceFilm.C"
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 // ************************************************************************* //