Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
finiteVolume
fields
fvPatchFields
derived
pressureInletUniformVelocity
pressureInletUniformVelocityFvPatchVectorField.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 | Copyright (C) 1991-2010 OpenCFD Ltd.
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
26
#include "
pressureInletUniformVelocityFvPatchVectorField.H
"
27
#include <
OpenFOAM/addToRunTimeSelectionTable.H
>
28
#include <
finiteVolume/volFields.H
>
29
#include <
finiteVolume/surfaceFields.H
>
30
31
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33
namespace
Foam
34
{
35
36
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37
38
pressureInletUniformVelocityFvPatchVectorField::
39
pressureInletUniformVelocityFvPatchVectorField
40
(
41
const
fvPatch
&
p
,
42
const
DimensionedField<vector, volMesh>
& iF
43
)
44
:
45
pressureInletVelocityFvPatchVectorField
(p, iF)
46
{}
47
48
49
pressureInletUniformVelocityFvPatchVectorField::
50
pressureInletUniformVelocityFvPatchVectorField
51
(
52
const
pressureInletUniformVelocityFvPatchVectorField
& ptf,
53
const
fvPatch
& p,
54
const
DimensionedField<vector, volMesh>
& iF,
55
const
fvPatchFieldMapper
& mapper
56
)
57
:
58
pressureInletVelocityFvPatchVectorField
(ptf, p, iF, mapper)
59
{}
60
61
62
pressureInletUniformVelocityFvPatchVectorField::
63
pressureInletUniformVelocityFvPatchVectorField
64
(
65
const
fvPatch
& p,
66
const
DimensionedField<vector, volMesh>
& iF,
67
const
dictionary
& dict
68
)
69
:
70
pressureInletVelocityFvPatchVectorField
(p, iF, dict)
71
{}
72
73
74
pressureInletUniformVelocityFvPatchVectorField::
75
pressureInletUniformVelocityFvPatchVectorField
76
(
77
const
pressureInletUniformVelocityFvPatchVectorField
& pivpvf
78
)
79
:
80
pressureInletVelocityFvPatchVectorField
(pivpvf)
81
{}
82
83
84
pressureInletUniformVelocityFvPatchVectorField::
85
pressureInletUniformVelocityFvPatchVectorField
86
(
87
const
pressureInletUniformVelocityFvPatchVectorField
& pivpvf,
88
const
DimensionedField<vector, volMesh>
& iF
89
)
90
:
91
pressureInletVelocityFvPatchVectorField
(pivpvf, iF)
92
{}
93
94
95
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
96
97
void
pressureInletUniformVelocityFvPatchVectorField::updateCoeffs
()
98
{
99
if
(updated())
100
{
101
return
;
102
}
103
104
pressureInletVelocityFvPatchVectorField::updateCoeffs
();
105
106
operator==
(patch().nf()*
gSum
(patch().Sf() & *
this
)/
gSum
(patch().magSf()));
107
}
108
109
110
// * * * * * * * * * * * * * * * Member Operators * * * * * * * * * * * * * //
111
112
void
pressureInletUniformVelocityFvPatchVectorField::operator=
113
(
114
const
fvPatchField<vector>
& pvf
115
)
116
{
117
operator==
(patch().nf()*
gSum
(patch().Sf() & pvf)/
gSum
(patch().magSf()));
118
}
119
120
121
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122
123
makePatchTypeField
124
(
125
fvPatchVectorField
,
126
pressureInletUniformVelocityFvPatchVectorField
127
);
128
129
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130
131
}
// End namespace Foam
132
133
// ************************ vim: set sw=4 sts=4 et: ************************ //