zeroFixedValuePointPatchField.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) 2014 OpenFOAM Foundation
9  Copyright (C) 2023 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
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 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
32 
33 template<class Type>
35 (
36  const pointPatch& p,
38 )
39 :
40  // Field is zero
41  fixedValuePointPatchField<Type>(p, iF, Type(Zero))
42 {}
43 
44 
45 template<class Type>
47 (
48  const pointPatch& p,
50  const dictionary& dict
51 )
52 :
53  // Field is zero
54  fixedValuePointPatchField<Type>(p, iF, Type(Zero))
55 {}
56 
57 
58 template<class Type>
60 (
62  const pointPatch& p,
64  const pointPatchFieldMapper& mapper
65 )
66 :
67  // Field is zero : no mapping needed
68  fixedValuePointPatchField<Type>(p, iF, Type(Zero))
69 {}
70 
71 
72 template<class Type>
74 (
76 )
77 :
78  fixedValuePointPatchField<Type>(ptf)
79 {
80  // Field is zero. For safety, re-assign
82 }
83 
84 
85 template<class Type>
87 (
90 )
91 :
92  fixedValuePointPatchField<Type>(ptf, iF)
93 {
94  // Field is zero. For safety, re-assign
96 }
97 
98 
99 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
A FixedValue boundary condition for pointField.
Foam::pointPatchFieldMapper.
virtual void operator=(const valuePointPatchField< Type > &)
Enables the specification of a zero fixed value boundary condition.
zeroFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:61
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: areaFieldsFwd.H:42
volScalarField & p
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127