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-2023 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  // Protected Member Functions
63 
64  //- Return pointers to the films
65  virtual const labelList& filmPatches() const;
66 
67  //- Cache the film fields in preparation for injection
68  virtual void cacheFilmFields(const label filmi);
69 
70  //- Set the individual parcel properties
71  virtual void setParcelProperties
72  (
73  parcelType& p,
74  const label filmFacei
75  ) const;
76 
77 
78 public:
79 
80  //- Runtime type information
81  TypeName("none");
82 
83 
84  // Constructors
85 
86  //- Construct from dictionary
88 
89  //- Construct copy
91 
92  //- Construct and return a clone
94  {
96  (
97  new NoSurfaceFilm<CloudType>(*this)
98  );
99  }
100 
101 
102  //- Destructor
103  virtual ~NoSurfaceFilm();
104 
105 
106  // Member Functions
107 
108  // Evaluation
109 
110  //- Transfer parcel from cloud to surface film
111  // Returns true if parcel is to be transferred
112  virtual bool transferParcel
113  (
114  parcelType& p,
115  const polyPatch& pp,
116  bool& keepParticle
117  );
118 
119 
120  // I-O
121 
122  //- Write surface film info to stream
123  virtual void info(Ostream& os);
124 };
125 
126 
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #ifdef NoRepository
134  #include "NoSurfaceFilm.C"
135 #endif
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 #endif
140 
141 // ************************************************************************* //
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:79
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Definition: DSMCCloud.H:221
Place holder for 'none' option.
Definition: NoSurfaceFilm.H:52
virtual void setParcelProperties(parcelType &p, const label filmFacei) const
Set the individual parcel properties.
Definition: NoSurfaceFilm.C:46
virtual void cacheFilmFields(const label filmi)
Cache the film fields in preparation for injection.
Definition: NoSurfaceFilm.C:40
virtual ~NoSurfaceFilm()
Destructor.
Definition: NoSurfaceFilm.C:79
virtual const labelList & filmPatches() const
Return pointers to the films.
Definition: NoSurfaceFilm.C:32
virtual autoPtr< SurfaceFilmModel< CloudType > > clone() const
Construct and return a clone.
Definition: NoSurfaceFilm.H:92
virtual void info(Ostream &os)
Write surface film info to stream.
Definition: NoSurfaceFilm.C:98
TypeName("none")
Runtime type information.
NoSurfaceFilm(const dictionary &, CloudType &)
Construct from dictionary.
Definition: NoSurfaceFilm.C:57
CloudType::parcelType parcelType
Convenience typedef for parcel type.
Definition: NoSurfaceFilm.H:58
virtual bool transferParcel(parcelType &p, const polyPatch &pp, bool &keepParticle)
Transfer parcel from cloud to surface film.
Definition: NoSurfaceFilm.C:87
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
Templated wall surface film model class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:70
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
volScalarField & p