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