noFilm.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-2018 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::regionModels::surfaceFilmModels::noFilm
26 
27 Description
28  Dummy surfaceFilmModel to allow solvers supporting film simulations to be
29  run without a film region.
30 
31 SourceFiles
32  noFilm.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef noFilm_H
37 #define noFilm_H
38 
39 #include "surfaceFilmModel.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace regionModels
46 {
47 namespace surfaceFilmModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class noFilm Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class noFilm
55 :
56  public surfaceFilmModel
57 {
58  // Private member data
59 
60  //- Reference to the mesh
61  const fvMesh& mesh_;
62 
63 
64  // Private member functions
65 
66  //- Disallow default bitwise copy construct
67  noFilm(const noFilm&);
68 
69  //- Disallow default bitwise assignment
70  void operator=(const noFilm&);
71 
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("none");
77 
78 
79  // Constructors
80 
81  //- Construct from components
82  noFilm
83  (
84  const word& modelType,
85  const fvMesh& mesh,
86  const dimensionedVector& g,
87  const word& regionType
88  );
89 
90 
91  //- Destructor
92  virtual ~noFilm();
93 
94 
95  // Member Functions
96 
97  // Solution parameters
98 
99  //- Courant number evaluation
100  virtual scalar CourantNumber() const;
101 
102 
103  // Primary region source fields
104 
105  //- Return total mass source - Eulerian phase only
106  virtual tmp<volScalarField::Internal> Srho() const;
107 
108  //- Return mass source for specie i - Eulerian phase only
110  (
111  const label i
112  ) const;
113 
114  //- Return enthalpy source - Eulerian phase only
115  virtual tmp<volScalarField::Internal> Sh() const;
116 
117 
118  // Evolution
119 
120  //- Main driver routing to evolve the region - calls other evolves
121  virtual void evolve();
122 };
123 
124 
125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 
127 } // End namespace surfaceFilmModels
128 } // regionModels
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
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
Base class for surface film models.
virtual tmp< volScalarField::Internal > Srho() const
Return total mass source - Eulerian phase only.
Definition: noFilm.C:73
virtual void evolve()
Main driver routing to evolve the region - calls other evolves.
Definition: noFilm.C:139
TypeName("none")
Runtime type information.
dynamicFvMesh & mesh
A class for handling words, derived from string.
Definition: word.H:59
Dummy surfaceFilmModel to allow solvers supporting film simulations to be run without a film region...
Definition: noFilm.H:53
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
A class for managing temporary objects.
Definition: PtrList.H:53
const dimensionedVector & g
virtual scalar CourantNumber() const
Courant number evaluation.
Definition: noFilm.C:67
virtual tmp< volScalarField::Internal > Sh() const
Return enthalpy source - Eulerian phase only.
Definition: noFilm.C:117
Namespace for OpenFOAM.