filmViscosityModel.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) 2013-2017 OpenFOAM Foundation
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::filmViscosityModel
28
29Description
30 Base class for surface film viscosity models
31
32SourceFiles
33 filmViscosityModel.C
34 filmViscosityModelNew.C
35
36\*---------------------------------------------------------------------------*/
37
38#ifndef filmViscosityModel_H
39#define filmViscosityModel_H
40
41#include "filmSubModelBase.H"
43#include "scalarField.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49namespace regionModels
50{
51namespace surfaceFilmModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class filmViscosityModel Declaration
56\*---------------------------------------------------------------------------*/
59:
60 public filmSubModelBase
61{
62private:
63
64 // Private Member Functions
65
66 //- No copy construct
68
69 //- No copy assignment
70 void operator=(const filmViscosityModel&) = delete;
71
72
73protected:
74
75 // Protected Member Data
76
77 //- Reference to the viscosity field
79
80
81public:
82
83 //- Runtime type information
84 TypeName("filmViscosityModel");
85
86
87 // Declare runtime constructor selection table
90 (
91 autoPtr,
94 (
96 const dictionary& dict,
98 ),
99 (film, dict, mu)
100 );
101
102 // Constructors
103
104 //- Construct from type name, dictionary and surface film model
106 (
107 const word& modelType,
109 const dictionary& dict,
111 );
112
113
114 // Selectors
115
116 //- Return a reference to the selected phase change model
118 (
120 const dictionary& dict,
122 );
123
124
125 //- Destructor
126 virtual ~filmViscosityModel();
127
128
129 // Member Functions
130
131 // Evolution
132
133 //- Correct
134 virtual void correct
135 (
136 const volScalarField& p,
137 const volScalarField& T
138 ) = 0;
139
140
141 // I-O
142
143 //- Provide some feedback
144 virtual void info(Ostream& os) const;
145};
146
147
148// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150} // End namespace surfaceFilmModels
151} // End namespace regionModels
152} // End namespace Foam
153
154// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155
156#endif
157
158// ************************************************************************* //
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Base class for surface film sub-models.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for surface film viscosity models.
declareRunTimeSelectionTable(autoPtr, filmViscosityModel, dictionary,(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu),(film, dict, mu))
volScalarField & mu_
Reference to the viscosity field.
virtual void info(Ostream &os) const
Provide some feedback.
TypeName("filmViscosityModel")
Runtime type information.
static autoPtr< filmViscosityModel > New(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu)
Return a reference to the selected phase change model.
virtual void correct(const volScalarField &p, const volScalarField &T)=0
Correct.
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
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
volScalarField & p
thermo correct()
const volScalarField & T
const volScalarField & mu
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73