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 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::regionModels::surfaceFilmModels::filmViscosityModel
28 
29 Description
30  Base class for surface film viscosity models
31 
32 SourceFiles
33  filmViscosityModel.C
34  filmViscosityModelNew.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef filmViscosityModel_H
39 #define filmViscosityModel_H
40 
41 #include "filmSubModelBase.H"
42 #include "runTimeSelectionTables.H"
43 #include "scalarField.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 namespace regionModels
50 {
51 namespace surfaceFilmModels
52 {
53 
54 /*---------------------------------------------------------------------------*\
55  Class filmViscosityModel Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public filmSubModelBase
61 {
62 private:
63 
64  // Private Member Functions
65 
66  //- No copy construct
67  filmViscosityModel(const filmViscosityModel&) = delete;
68 
69  //- No copy assignment
70  void operator=(const filmViscosityModel&) = delete;
71 
72 
73 protected:
74 
75  // Protected Member Data
76 
77  //- Reference to the viscosity field
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("filmViscosityModel");
85 
86 
87  // Declare runtime constructor selection table
88 
90  (
91  autoPtr,
93  dictionary,
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 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::constant::physicoChemical::mu
const dimensionedScalar mu
Atomic mass unit.
Definition: createFieldRefs.H:4
scalarField.H
Foam::regionModels::surfaceFilmModels::filmViscosityModel::correct
virtual void correct(const volScalarField &p, const volScalarField &T)=0
Correct.
Foam::regionModels::surfaceFilmModels::filmSubModelBase::film
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Definition: filmSubModelBaseI.H:39
Foam::regionModels::surfaceFilmModels::filmViscosityModel::~filmViscosityModel
virtual ~filmViscosityModel()
Destructor.
Definition: filmViscosityModel.C:61
Foam::regionModels::surfaceFilmModels::filmViscosityModel
Base class for surface film viscosity models.
Definition: filmViscosityModel.H:57
Foam::regionModels::surfaceFilmModels::surfaceFilmRegionModel
Base class for surface film models.
Definition: surfaceFilmRegionModel.H:55
Foam::subModelBase::dict
const dictionary & dict() const
Return const access to the cloud dictionary.
Definition: subModelBase.C:113
Foam::regionModels::surfaceFilmModels::filmViscosityModel::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, filmViscosityModel, dictionary,(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu),(film, dict, mu))
Foam::regionModels::surfaceFilmModels::filmViscosityModel::mu_
volScalarField & mu_
Reference to the viscosity field.
Definition: filmViscosityModel.H:77
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:58
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
os
OBJstream os(runTime.globalPath()/outputName)
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::subModelBase::modelType
const word & modelType() const
Return const access to the sub-model type.
Definition: subModelBase.C:125
Foam::regionModels::surfaceFilmModels::filmViscosityModel::info
virtual void info(Ostream &os) const
Provide some feedback.
Definition: filmViscosityModel.C:67
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:56
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::regionModels::surfaceFilmModels::filmSubModelBase
Base class for surface film sub-models.
Definition: filmSubModelBase.H:56
Foam::regionModels::surfaceFilmModels::filmViscosityModel::New
static autoPtr< filmViscosityModel > New(surfaceFilmRegionModel &film, const dictionary &dict, volScalarField &mu)
Return a reference to the selected phase change model.
Definition: filmViscosityModelNew.C:43
Foam::regionModels::surfaceFilmModels::filmViscosityModel::TypeName
TypeName("filmViscosityModel")
Runtime type information.