1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2010-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 Base class for surface film sub-models
34 \*---------------------------------------------------------------------------*/
36 #ifndef subModelBase_H
37 #define subModelBase_H
39 #include "surfaceFilmModel.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace regionModels
47 namespace surfaceFilmModels
50 /*---------------------------------------------------------------------------*\
51 Class subModelBase Declaration
52 \*---------------------------------------------------------------------------*/
58 // Private Member Functions
60 //- Disallow default bitwise copy construct
61 subModelBase(const subModelBase&);
63 //- Disallow default bitwise assignment
64 void operator=(const subModelBase&);
71 //- Reference to the owner surface film model
72 const surfaceFilmModel& owner_;
74 //- Model coefficients dictionary
83 subModelBase(const surfaceFilmModel& owner);
85 //- Construct from type name, dictionary and surface film model
89 const surfaceFilmModel& owner,
90 const dictionary& dict
95 virtual ~subModelBase();
102 //- Return the reference to the owner surface film model
103 inline const surfaceFilmModel& owner() const;
105 //- Return the model coefficients dictionary
106 inline const dictionary& coeffs() const;
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 } // End namespace surfaceFilmModels
113 } // End namespace regionModels
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 #include "subModelBaseI.H"
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //