OpenFOAM: API Guide
v2006
The open source CFD toolbox
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 OpenCFD Ltd.
9
-------------------------------------------------------------------------------
10
License
11
This file is part of OpenFOAM, licensed under GNU General Public License
12
<http://www.gnu.org/licenses/>.
13
14
Namespace
15
Foam::cellModeller
16
17
Description
18
Compatibility definitions of static cellModel lookups.
19
20
Superseded (NOV-2017) by cellModel methods.
21
22
\*---------------------------------------------------------------------------*/
23
#ifndef cellModeller_H
24
#define cellModeller_H
25
26
#include "
cellModel.H
"
27
28
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
29
30
namespace
Foam
31
{
32
namespace
cellModeller
33
{
34
35
//- Deprecated(2017-11) equivalent to cellModel::ptr static method.
36
// \deprecated(2017-11) use cellModel::ptr instead
37
inline
const
cellModel*
lookup
(
const
word& modelName)
38
{
39
return
cellModel::ptr
(modelName);
40
}
41
42
//- Deprecated(2017-11) equivalent to cellModel::ptr static method.
43
// \deprecated(2017-11) use cellModel::ptr instead
44
inline
const
cellModel*
lookup
(
const
label modelIndex)
45
{
46
return
cellModel::ptr
(modelIndex);
47
}
48
49
}
// End namespace cellModeller
50
}
// End namespace Foam
51
52
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53
54
#endif
55
56
// ************************************************************************* //
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
cellModel.H
Foam::cellModeller::lookup
const cellModel * lookup(const word &modelName)
Deprecated(2017-11) equivalent to cellModel::ptr static method.
Definition:
cellModeller.H:46
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
src
OpenFOAM
meshes
meshShapes
cellModel
cellModeller.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.