zeroFixedValueFvPatchField.C
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) 2025 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 
27 
28 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29 
30 template<class Type>
32 (
33  const fvPatch& p,
35 )
36 :
37  fixedValueFvPatchField<Type>(p, iF)
38 {
39  this->operator==(Zero);
40 }
41 
42 
43 template<class Type>
45 (
46  const fvPatch& p,
48  const dictionary& dict
49 )
50 :
51  fixedValueFvPatchField<Type>(p, iF, dict, false)
52 {
53  this->operator==(Zero);
54 }
55 
56 
57 template<class Type>
59 (
61  const fvPatch& p,
63  const fieldMapper& mapper
64 )
65 :
66  fixedValueFvPatchField<Type>(ptf, p, iF, mapper, false) // Don't map
67 {
68  this->operator==(Zero);
69 }
70 
71 
72 template<class Type>
74 (
77 )
78 :
79  fixedValueFvPatchField<Type>(ptf, iF)
80 {
81  this->operator==(Zero);
82 }
83 
84 
85 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
86 
87 template<class Type>
89 (
90  const fvPatchField<Type>& ptf,
91  const fieldMapper& mapper
92 )
93 {
94  this->resize(this->patch().size(), Zero);
95 }
96 
97 
98 template<class Type>
100 {
102 }
103 
104 
105 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Abstract base class for field mapping.
Definition: fieldMapper.H:48
This boundary condition supplies a fixed value constraint, and is the base class for a number of othe...
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:91
virtual void write(Ostream &) const
Write.
Definition: fvPatchField.C:237
virtual void operator==(const fvPatchField< Type > &)
Definition: fvPatchField.C:423
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
This boundary condition provides a zero fixed value condition.
virtual void write(Ostream &) const
Write.
zeroFixedValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void map(const fvPatchField< Type > &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
static const zero Zero
Definition: zero.H:97
dictionary dict
triSurfaceToAgglom resize(surfacesMesh.size())
volScalarField & p