filmSubModelBase.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2021 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26Class
27 Foam::regionModels::surfaceFilmModels::filmSubModelBase
28
29Description
30 Base class for surface film sub-models
31
32SourceFiles
33 filmSubModelBaseI.H
34 filmSubModelBase.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef filmSubModelBase_H
39#define filmSubModelBase_H
40
41#include "liquidFilmBase.H"
42#include "subModelBase.H"
43
44// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46namespace Foam
47{
48namespace regionModels
49{
50namespace areaSurfaceFilmModels
51{
52
53/*---------------------------------------------------------------------------*\
54 Class filmSubModelBase Declaration
55\*---------------------------------------------------------------------------*/
58:
59 public subModelBase
60{
61protected:
62
63 // Protected Data
64
65 //- Reference to the film surface film model
67
68
69public:
70
71 // Constructors
72
73 //- Construct null
75
76 //- Construct from film film without name
78 (
80 const dictionary& dict,
81 const word& baseName,
82 const word& modelType,
83 const word& dictExt = "Coeffs"
84 );
85
86 //- Construct from film film with name
88 (
89 const word& modelName,
91 const dictionary& dict,
92 const word& baseName,
93 const word& modelType
94 );
95
96
97 //- Destructor
98 virtual ~filmSubModelBase();
99
100
101 // Member Functions
102
103 // Access
104
105 //- Flag to indicate when to write a property
106 virtual bool writeTime() const;
107
108 //- Return const access to the film surface film model
109 inline const liquidFilmBase& film() const;
110
111 //- Return the reference to the film surface film model
112 inline liquidFilmBase& film();
113
114 template<class FilmType>
115 inline const FilmType& filmType() const;
116};
117
118
119// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120
121} // End namespace areaSurfaceFilmModels
122} // End namespace regionModels
123} // End namespace Foam
124
125// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126
127#include "filmSubModelBaseI.H"
128
129// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130
131#ifdef NoRepository
132 #include "filmSubModelBaseTemplates.C"
133#endif
134
135// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136
137#endif
138
139// ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
const liquidFilmBase & film() const
Return const access to the film surface film model.
liquidFilmBase & filmModel_
Reference to the film surface film model.
virtual bool writeTime() const
Flag to indicate when to write a property.
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
Definition: subModelBase.H:55
const word & baseName() const
Return const access to the base name of the sub-model.
Definition: subModelBase.C:119
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
const word & modelName() const
Return const access to the name of the sub-model.
Definition: subModelBase.C:107
const word & modelType() const
Return const access to the sub-model type.
Definition: subModelBase.C:125
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.