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, template<class> class PatchField, class GeoMesh>
33 {
34  return NullObjectRef<GeometricField<Type, PatchField, GeoMesh>>();
35 }
36 
37 
38 template<class Type, template<class> class PatchField, class GeoMesh>
39 inline const typename
42 internalField() const
43 {
44  return *this;
45 }
46 
47 
48 template<class Type, template<class> class PatchField, class GeoMesh>
49 inline const typename
52 {
53  return *this;
54 }
55 
56 
57 template<class Type, template<class> class PatchField, class GeoMesh>
58 inline const typename
61 {
62  return boundaryField_;
63 }
64 
65 
66 template<class Type, template<class> class PatchField, class GeoMesh>
67 inline const typename
70 {
71  return sources_;
72 }
73 
74 
75 // * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
76 
77 template<class Type, template<class> class PatchField, class GeoMesh>
78 inline const typename
81 operator()() const
82 {
83  return *this;
84 }
85 
86 
87 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
Definition: Field.H:83
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Definition: GeoMesh.H:47
Generic GeometricBoundaryField class.
Part of a geometric field used for setting the values associated with optional sources.
Generic GeometricField class.
const Sources & sources() const
Return const-reference to the sources.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
static const GeometricField< Type, PatchField, GeoMesh > & null()
Return a null geometric field.
const Internal & operator()() const
Return a const-reference to the dimensioned internal field.
const Internal & internalField() const
Return a const-reference to the dimensioned internal field.