GeometricFieldI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "GeometricField.H"
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
30 template<class Type, class GeoMesh, template<class> class PrimitiveField>
33 {
34  return NullObjectRef<GeometricField<Type, GeoMesh, PrimitiveField>>();
35 }
36 
37 
38 template<class Type, class GeoMesh, template<class> class PrimitiveField>
39 inline const typename
42 {
43  return *this;
44 }
45 
46 
47 template<class Type, class GeoMesh, template<class> class PrimitiveField>
48 inline const typename
51 {
52  return *this;
53 }
54 
55 
56 template<class Type, class GeoMesh, template<class> class PrimitiveField>
57 inline const typename
60 {
61  return boundaryField_;
62 }
63 
64 
65 template<class Type, class GeoMesh, template<class> class PrimitiveField>
66 inline const typename
69 {
70  return sources_;
71 }
72 
73 
74 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
75 
76 template<class Type, class GeoMesh, template<class> class PrimitiveField>
77 inline const typename
80 {
81  return *this;
82 }
83 
84 
85 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
PrimitiveField< Type > FieldType
Type of the field from which this DimensionedField is derived.
Generic GeometricBoundaryField class.
Part of a geometric field used for setting the values associated with optional sources.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const Sources & sources() const
Return const-reference to the sources.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.
const Internal & operator()() const
Return a const-reference to the dimensioned internal field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
static const GeometricField< Type, GeoMesh, PrimitiveField > & null()
Return a null geometric field.