OpenFOAM
9
The OpenFOAM Foundation
constrainPressure.H
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) 2016-2018 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
Class
25
Foam::constrainPressure
26
27
Description
28
29
SourceFiles
30
constrainPressure.C
31
32
\*---------------------------------------------------------------------------*/
33
34
#ifndef constrainPressure_H
35
#define constrainPressure_H
36
37
#include "
volFieldsFwd.H
"
38
#include "
surfaceFieldsFwd.H
"
39
#include "
IOMRFZoneList.H
"
40
41
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42
43
namespace
Foam
44
{
45
46
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47
48
/*---------------------------------------------------------------------------*\
49
Class NullMRF Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
NullMRF
53
{
54
public
:
55
56
// Constructors
57
58
//- Construct null
59
NullMRF
()
60
{}
61
62
63
// Member Functions
64
65
//- Return the argument unchanged
66
template
<
class
Type>
67
inline
const
Type&
relative
(
const
Type&
U
)
const
68
{
69
return
U
;
70
}
71
72
//- Return the argument unchanged
73
template
<
class
Type>
74
inline
const
Type&
relative
(
const
Type&
U
,
const
label
patchi
)
const
75
{
76
return
U
;
77
}
78
};
79
80
81
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
82
83
template
<
class
RhoType,
class
RAUType,
class
MRFType>
84
void
constrainPressure
85
(
86
volScalarField
&
p
,
87
const
RhoType&
rho
,
88
const
volVectorField
&
U
,
89
const
surfaceScalarField
&
phiHbyA
,
90
const
RAUType& rhorAU,
91
const
MRFType&
MRF
92
);
93
94
template
<
class
RAUType>
95
void
constrainPressure
96
(
97
volScalarField
& p,
98
const
volScalarField
& rho,
99
const
volVectorField
& U,
100
const
surfaceScalarField
& phiHbyA,
101
const
RAUType& rhorAU
102
);
103
104
template
<
class
RAUType,
class
MRFType>
105
void
constrainPressure
106
(
107
volScalarField
& p,
108
const
volVectorField
& U,
109
const
surfaceScalarField
& phiHbyA,
110
const
RAUType&
rAU
,
111
const
MRFType& MRF
112
);
113
114
template
<
class
RAUType>
115
void
constrainPressure
116
(
117
volScalarField
& p,
118
const
volVectorField
& U,
119
const
surfaceScalarField
& phiHbyA,
120
const
RAUType& rAU
121
);
122
123
124
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125
126
}
// End namespace Foam
127
128
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129
130
#ifdef NoRepository
131
#include "
constrainPressure.C
"
132
#endif
133
134
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135
136
#endif
137
138
// ************************************************************************* //
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition:
label.H:59
MRF
IOMRFZoneList & MRF
Definition:
setRegionFluidFields.H:35
volFieldsFwd.H
rho
rho
Definition:
readInitialConditions.H:91
Foam::constrainPressure
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
Definition:
constrainPressure.C:36
Foam::GeometricField< scalar, fvPatchField, volMesh >
Foam::NullMRF
Definition:
constrainPressure.H:51
IOMRFZoneList.H
constrainPressure.C
surfaceFieldsFwd.H
Foam::NullMRF::NullMRF
NullMRF()
Construct null.
Definition:
constrainPressure.H:58
Foam::NullMRF::relative
const Type & relative(const Type &U) const
Return the argument unchanged.
Definition:
constrainPressure.H:66
phiHbyA
phiHbyA
Definition:
pEqn.H:32
patchi
label patchi
Definition:
getPatchFieldScalar.H:1
U
U
Definition:
pEqn.H:72
rAU
tmp< volScalarField > rAU
Definition:
createFieldRefs.H:13
p
volScalarField & p
Definition:
createFieldRefs.H:5
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.H:213
src
finiteVolume
cfdTools
general
constrainPressure
constrainPressure.H
Generated by
1.8.13