ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / src / lagrangian / intermediate / submodels / Kinematic / SurfaceFilmModel / NoSurfaceFilm / NoSurfaceFilm.H
blob672feb967e6455e90964a530f888794cb6f8fe45
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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/>.
24 Class
25     Foam::NoSurfaceFilm
27 Description
28     Place holder for 'none' option
30 SourceFiles
31     NoSurfaceFilm.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef NoSurfaceFilm_H
36 #define NoSurfaceFilm_H
38 #include "SurfaceFilmModel.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46                        Class NoSurfaceFilm Declaration
47 \*---------------------------------------------------------------------------*/
49 template<class CloudType>
50 class NoSurfaceFilm
52     public SurfaceFilmModel<CloudType>
54 protected:
56     // Protected data
58         //- Convenience typedef for parcel type
59         typedef typename CloudType::parcelType parcelType;
62 public:
64     //- Runtime type information
65     TypeName("none");
68     // Constructors
70         //- Construct from dictionary
71         NoSurfaceFilm(const dictionary&, CloudType&, const dimensionedVector&);
73         //- Construct copy
74         NoSurfaceFilm(const NoSurfaceFilm<CloudType>& dm);
76         //- Construct and return a clone
77         virtual autoPtr<SurfaceFilmModel<CloudType> > clone() const
78         {
79             return autoPtr<SurfaceFilmModel<CloudType> >
80             (
81                 new NoSurfaceFilm<CloudType>(*this)
82             );
83         }
86     //- Destructor
87     virtual ~NoSurfaceFilm();
90     // Member Functions
92         // Evaluation
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
100             (
101                 parcelType& p,
102                 const polyPatch& pp,
103                 bool& keepParticle
104             );
106             //- Set parcel properties
107             virtual void setParcelProperties
108             (
109                 parcelType& p,
110                 const label filmCellI
111             );
114         // I-O
116             //- Write surface film info to stream
117             virtual void info(Ostream& os) const;
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 } // End namespace Foam
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 #ifdef NoRepository
128 #   include "NoSurfaceFilm.C"
129 #endif
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 #endif
135 // ************************************************************************* //