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-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM, distributed under GPL-3.0-or-later.
12
13Class
14 Foam::cellModeller
15
16Description
17 Compatibility definitions of static cellModel lookups.
18
19 Superseded (NOV-2017) by cellModel methods.
20
21See Also
22 Foam::cellModel
23
24\*---------------------------------------------------------------------------*/
25
26#ifndef cellModeller_H
27#define cellModeller_H
28
29#include "cellModel.H"
30
31// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33namespace Foam
34{
35
36struct 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// ************************************************************************* //
Maps a geometry to a set of cell primitives.
Definition: cellModel.H:73
Lookup type of boundary radiation properties.
Definition: lookup.H:66
A class for handling words, derived from Foam::string.
Definition: word.H:68
Namespace for OpenFOAM.
#define FOAM_DEPRECATED_FOR(since, replacement)
Definition: stdFoam.H:52