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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::constrainPressure
28
29Description
30
31SourceFiles
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
45namespace Foam
46{
47
48// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49
50/*---------------------------------------------------------------------------*\
51 Class NullMRF Declaration
52\*---------------------------------------------------------------------------*/
54class NullMRF
55{
56public:
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
85template<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
96template<class RAUType>
98(
100 const volScalarField& rho,
101 const volVectorField& U,
103 const RAUType& rhorAU
104);
105
106template<class RAUType, class MRFType>
108(
110 const volVectorField& U,
112 const RAUType& rAU,
113 const MRFType& MRF
114);
115
116template<class RAUType>
118(
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// ************************************************************************* //
IOMRFZoneList & MRF
const Type & relative(const Type &U, const label patchi) const
Return the argument unchanged.
const Type & relative(const Type &U) const
Return the argument unchanged.
NullMRF()
Construct null.
U
Definition: pEqn.H:72
volScalarField & p
phiHbyA
Definition: pcEqn.H:73
tmp< volScalarField > rAU
Definition: initCorrectPhi.H:1
Namespace for OpenFOAM.
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:83
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:82
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField