cellModeller.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) 2017-2021 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12 
13 Class
14  Foam::cellModeller
15 
16 Description
17  Compatibility definitions of static cellModel lookups.
18 
19  Superseded (NOV-2017) by cellModel methods.
20 
21 See Also
22  Foam::cellModel
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #ifndef cellModeller_H
27 #define cellModeller_H
28 
29 #include "cellModel.H"
30 
31 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 
33 namespace Foam
34 {
35 
36 struct cellModeller
37 {
38  //- Deprecated(2017-11) equivalent to cellModel::ptr static method.
39  // \deprecated(2017-11) use cellModel::ptr instead
40  FOAM_DEPRECATED_FOR(2017-11, "cellModel::ptr() static method")
41  static const cellModel* lookup(const word& modelName)
42  {
43  return cellModel::ptr(modelName);
44  }
45 
46  //- Deprecated(2017-11) equivalent to cellModel::ptr static method.
47  // \deprecated(2017-11) use cellModel::ptr instead
48  FOAM_DEPRECATED_FOR(2017-11, "cellModel::ptr() static method")
49  static const cellModel* lookup(const label modelIndex)
50  {
51  return cellModel::ptr(modelIndex);
52  }
53 };
54 
55 } // End namespace Foam
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 #endif
60 
61 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::cellModel::ptr
static const cellModel * ptr(const modelType model)
Look up pointer to cellModel by enumeration, or nullptr on failure.
Definition: cellModels.C:120
Foam::cellModeller
Definition: cellModeller.H:42
cellModel.H
Foam::radiation::lookup
Lookup type of boundary radiation properties.
Definition: lookup.H:63
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::cellModeller::lookup
static const cellModel * lookup(const word &modelName)
Deprecated(2017-11) equivalent to cellModel::ptr static method.
Definition: cellModeller.H:47
Foam::FOAM_DEPRECATED_FOR
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
Definition: NamedEnum.H:69
Foam::cellModel
Maps a geometry to a set of cell primitives.
Definition: cellModel.H:72