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>
85 (
87  const RhoType& rho,
88  const volVectorField& U,
90  const RAUType& rhorAU,
91  const MRFType& MRF
92 );
93 
94 template<class RAUType>
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>
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>
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 // ************************************************************************* //
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
IOMRFZoneList & MRF
void constrainPressure(volScalarField &p, const RhoType &rho, const volVectorField &U, const surfaceScalarField &phiHbyA, const RAUType &rhorAU, const MRFType &MRF)
NullMRF()
Construct null.
const Type & relative(const Type &U) const
Return the argument unchanged.
phiHbyA
Definition: pEqn.H:32
label patchi
U
Definition: pEqn.H:72
tmp< volScalarField > rAU
volScalarField & p
Namespace for OpenFOAM.