NoSurfaceFilm.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 Class
25  Foam::NoSurfaceFilm
26 
27 Description
28  Place holder for 'none' option
29 
30 SourceFiles
31  NoSurfaceFilm.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef NoSurfaceFilm_H
36 #define NoSurfaceFilm_H
37 
38 #include "SurfaceFilmModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class NoSurfaceFilm Declaration
47 \*---------------------------------------------------------------------------*/
48 
49 template<class CloudType>
50 class NoSurfaceFilm
51 :
52  public SurfaceFilmModel<CloudType>
53 {
54 protected:
55 
56  // Protected data
57 
58  //- Convenience typedef for parcel type
59  typedef typename CloudType::parcelType parcelType;
60 
61 
62 public:
63 
64  //- Runtime type information
65  TypeName("none");
66 
67 
68  // Constructors
69 
70  //- Construct from dictionary
72 
73  //- Construct copy
75 
76  //- Construct and return a clone
78  {
80  (
81  new NoSurfaceFilm<CloudType>(*this)
82  );
83  }
84 
85 
86  //- Destructor
87  virtual ~NoSurfaceFilm();
88 
89 
90  // Member Functions
91 
92  // Evaluation
93 
94  //- Transfer parcel from cloud to surface film
95  // Returns true if parcel is to be transferred
96  virtual bool transferParcel
97  (
98  parcelType& p,
99  const polyPatch& pp,
100  bool& keepParticle
101  );
102 
103  //- Set parcel properties
104  virtual void setParcelProperties
105  (
106  parcelType& p,
107  const label filmCelli
108  ) const;
109 
110 
111  // I-O
112 
113  //- Write surface film info to stream
114  virtual void info(Ostream& os);
115 };
116 
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 } // End namespace Foam
121 
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123 
124 #ifdef NoRepository
125  #include "NoSurfaceFilm.C"
126 #endif
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #endif
131 
132 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)
Transfer parcel from cloud to surface film.
Definition: NoSurfaceFilm.C:63
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoSurfaceFilm.H:76
Place holder for &#39;none&#39; option.
Definition: NoSurfaceFilm.H:49
virtual void info(Ostream &os)
Write surface film info to stream.
Definition: NoSurfaceFilm.C:83
virtual ~NoSurfaceFilm()
Destructor.
Definition: NoSurfaceFilm.C:55
virtual void setParcelProperties(parcelType &p, const label filmCelli) const
Set parcel properties.
Definition: NoSurfaceFilm.C:75
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:221
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
TypeName("none")
Runtime type information.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
volScalarField & p
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:66
CloudType::parcelType parcelType
Convenience typedef for parcel type.
Definition: NoSurfaceFilm.H:58
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:75
NoSurfaceFilm(const dictionary &, CloudType &)
Construct from dictionary.
Definition: NoSurfaceFilm.C:33
Namespace for OpenFOAM.