incompressibleVarsI.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) 2021 PCOpt/NTUA
9 Copyright (C) 2021 FOSS GP
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27\*---------------------------------------------------------------------------*/
28
29// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
30
32{
33 return pPtr_();
34}
35
36
38{
39 return pPtr_();
40}
41
42
44{
45 return UPtr_();
46}
47
48
50{
51 return UPtr_();
52}
53
54
55inline const Foam::surfaceScalarField&
57{
58 return phiPtr_();
59}
60
61
63{
64 return phiPtr_();
65}
66
67
70{
71 return laminarTransportPtr_();
72}
73
74
77{
78 return laminarTransportPtr_();
79}
80
81
84{
85 return turbulence_;
86}
87
88
91{
92 return turbulence_;
93}
94
95
98{
99 return RASModelVariables_;
100}
101
102
105{
106 return RASModelVariables_;
107}
108
109
110// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
const volVectorField & UInst() const
Return const reference to velocity.
const surfaceScalarField & phiInst() const
Return const reference to volume flux.
autoPtr< volScalarField > pPtr_
Fields involved in the solution of the incompressible NS equations.
const autoPtr< incompressible::turbulenceModel > & turbulence() const
Return const reference to the turbulence model.
const singlePhaseTransportModel & laminarTransport() const
Return const reference to transport model.
const volScalarField & pInst() const
Return const reference to pressure.
const autoPtr< incompressible::RASModelVariables > & RASModelVariables() const
Return const reference to the turbulence model variables.
A simple single-phase transport model based on viscosityModel.