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