The open source CFD toolbox
calculatedPointPatchField.C
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) 2011-2016 OpenFOAM Foundation
9 Copyright (C) 2021 OpenCFD Ltd.
10-------------------------------------------------------------------------------
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
30
31// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33template<class Type>
35{
37}
38
39
40// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
41
42template<class Type>
44(
45 const pointPatch& p,
47)
48:
49 pointPatchField<Type>(p, iF)
50{}
51
52
53template<class Type>
55(
56 const pointPatch& p,
58 const dictionary& dict
59)
60:
61 pointPatchField<Type>(p, iF, dict)
62{}
63
64
65template<class Type>
67(
69 const pointPatch& p,
71 const pointPatchFieldMapper& mapper
72)
73:
74 pointPatchField<Type>(ptf, p, iF, mapper)
75{}
76
77
78template<class Type>
80(
83)
84:
85 pointPatchField<Type>(ptf, iF)
86{}
87
88
89template<class Type>
90template<class Type2>
93(
95)
96{
97 auto* patchTypeCtor = pointPatchConstructorTable(pf.patch().type());
98
99 if (patchTypeCtor)
100 {
102 (
103 patchTypeCtor
104 (
105 pf.patch(),
107 )
108 );
109 }
110 else
111 {
113 (
115 (
116 pf.patch(),
118 )
119 );
120 }
121}
122
123
124// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A calculated boundary condition for pointField.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Foam::pointPatchFieldMapper.
Abstract base class for point-mesh patch fields.
const pointPatch & patch() const
Return patch.
static autoPtr< pointPatchField< Type > > NewCalculatedType(const pointPatchField< Type2 > &)
Return a pointer to a new calculatedPointPatchField created on.
static const word & calculatedType()
Return the type of the calculated form of pointPatchField.
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:64
A class for handling words, derived from Foam::string.
Definition: word.H:68
volScalarField & p
dictionary dict