OpenFOAM: API Guide
v2006
The open source CFD toolbox
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
-------------------------------------------------------------------------------
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
28
#include "
zeroFixedValuePointPatchField.H
"
29
30
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31
32
namespace
Foam
33
{
34
35
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * * //
36
37
template
<
class
Type>
38
zeroFixedValuePointPatchField<Type>::
39
zeroFixedValuePointPatchField
40
(
41
const
pointPatch
&
p
,
42
const
DimensionedField<Type, pointMesh>
& iF
43
)
44
:
45
fixedValuePointPatchField<Type>
(
p
, iF)
46
{}
47
48
49
template
<
class
Type>
50
zeroFixedValuePointPatchField<Type>::
51
zeroFixedValuePointPatchField
52
(
53
const
pointPatch
&
p
,
54
const
DimensionedField<Type, pointMesh>
& iF,
55
const
dictionary
&
dict
56
)
57
:
58
fixedValuePointPatchField<Type>
(
p
, iF,
dict
,
false
)
59
{
60
fixedValuePointPatchField<Type>::operator=
(Type(
Zero
));
61
}
62
63
64
template
<
class
Type>
65
zeroFixedValuePointPatchField<Type>::
66
zeroFixedValuePointPatchField
67
(
68
const
zeroFixedValuePointPatchField<Type>
& ptf,
69
const
pointPatch
&
p
,
70
const
DimensionedField<Type, pointMesh>
& iF,
71
const
pointPatchFieldMapper
& mapper
72
)
73
:
74
fixedValuePointPatchField<Type>
(ptf,
p
, iF, mapper)
75
{
76
// For safety re-evaluate
77
fixedValuePointPatchField<Type>::operator=
(Type(
Zero
));
78
}
79
80
81
template
<
class
Type>
82
zeroFixedValuePointPatchField<Type>::
83
zeroFixedValuePointPatchField
84
(
85
const
zeroFixedValuePointPatchField<Type>
& ptf
86
)
87
:
88
fixedValuePointPatchField<Type>
(ptf)
89
{}
90
91
92
template
<
class
Type>
93
zeroFixedValuePointPatchField<Type>::
94
zeroFixedValuePointPatchField
95
(
96
const
zeroFixedValuePointPatchField<Type>
& ptf,
97
const
DimensionedField<Type, pointMesh>
& iF
98
)
99
:
100
fixedValuePointPatchField<Type>
(ptf, iF)
101
{
102
// For safety re-evaluate
103
fixedValuePointPatchField<Type>::operator=
(Type(
Zero
));
104
}
105
106
107
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109
}
// End namespace Foam
110
111
// ************************************************************************* //
p
volScalarField & p
Definition:
createFieldRefs.H:8
zeroFixedValuePointPatchField.H
Foam::Zero
static constexpr const zero Zero
Global zero (0)
Definition:
zero.H:131
Foam::zeroFixedValuePointPatchField::zeroFixedValuePointPatchField
zeroFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
Definition:
zeroFixedValuePointPatchField.C:40
Foam::pointPatch
Basic pointPatch represents a set of points from the mesh.
Definition:
pointPatch.H:58
Foam::pointPatchFieldMapper
Foam::pointPatchFieldMapper.
Definition:
pointPatchFieldMapper.H:48
Foam::fixedValuePointPatchField
A FixedValue boundary condition for pointField.
Definition:
fixedValuePointPatchField.H:51
Foam::fixedValuePointPatchField::operator=
virtual void operator=(const Field< Type > &)
Definition:
fixedValuePointPatchField.H:140
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::zeroFixedValuePointPatchField
Enables the specification of a zero fixed value boundary condition.
Definition:
zeroFixedValuePointPatchField.H:59
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition:
DimensionedField.H:54
src
mesh
snappyHexMesh
externalDisplacementMeshMover
zeroFixedValue
zeroFixedValuePointPatchField.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.