Loading...
Searching...
No Matches
zeroValuePointPatchField.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-2025 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
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
33template<class Type>
35(
36 const pointPatch& p,
38)
40 // Field is zero
41 parent_bctype(p, iF, Type(Zero))
42{}
43
44
45template<class Type>
47(
48 const pointPatch& p,
50 const dictionary& dict
51)
52:
53 // Field is zero
54 parent_bctype(p, iF, Type(Zero))
55{
57}
58
59
60template<class Type>
62(
64 const pointPatch& p,
67)
69 // Field is zero. No mapping
70 parent_bctype(pfld, p, iF, Type(Zero))
71{}
72
73
74template<class Type>
76(
79)
80:
81 // Field is zero
82 parent_bctype(pfld, pfld.patch(), iF, Type(Zero))
83{}
84
85
86// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
87
88template<class Type>
90{
92 // Without writeValueEntry() since the value == zero
93}
94
95
96// ************************************************************************* //
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:59
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
const pointPatch & patch() const noexcept
Return the patch.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
Foam::pointPatchFieldMapper.
virtual void write(Ostream &os) const
Write.
Basic pointPatch represents a set of points from the mesh.
Definition pointPatch.H:67
Specifies a zero fixed value boundary condition.
zeroValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &os) const
Write (without "value" entry).
volScalarField & p
OBJstream os(runTime.globalPath()/outputName)
static constexpr const zero Zero
Global zero (0).
Definition zero.H:127
dictionary dict