fluid.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) 2022-2023 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::solvers::fluid
26 
27 Description
28  Solver module for steady or transient turbulent flow of compressible fluids
29  with heat-transfer for HVAC and similar applications, with optional
30  mesh motion and change.
31 
32  Uses the flexible PIMPLE (PISO-SIMPLE) solution for time-resolved and
33  pseudo-transient and steady simulations.
34 
35  Optional fvModels and fvConstraints are provided to enhance the simulation
36  in many ways including adding various sources, Lagrangian particles,
37  radiation, surface film etc. and constraining or limiting the solution.
38 
39  Reference:
40  \verbatim
41  Greenshields, C. J., & Weller, H. G. (2022).
42  Notes on Computational Fluid Dynamics: General Principles.
43  CFD Direct Ltd.: Reading, UK.
44  \endverbatim
45 
46 SourceFiles
47  fluid.C
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef fluid_H
52 #define fluid_H
53 
54 #include "isothermalFluid.H"
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 namespace solvers
62 {
63 
64 /*---------------------------------------------------------------------------*\
65  Class fluid Declaration
66 \*---------------------------------------------------------------------------*/
67 
68 class fluid
69 :
70  public isothermalFluid
71 {
72 
73 protected:
74 
75  // Thermophysical transport
76 
79 
80 
81 public:
82 
83  //- Runtime type information
84  TypeName("fluid");
85 
86 
87  // Constructors
88 
89  //- Construct from region mesh
90  fluid(fvMesh& mesh);
91 
92  //- Disallow default bitwise copy construction
93  fluid(const fluid&) = delete;
94 
95 
96  //- Destructor
97  virtual ~fluid();
98 
99 
100  // Member Functions
101 
102  //- Called at the start of the PIMPLE loop
103  virtual void prePredictor();
104 
105  //- Construct and solve the energy equation,
106  // convert to temperature
107  // and update thermophysical and transport properties
108  virtual void thermophysicalPredictor();
109 
110  //- Correct the momentum and thermophysical transport modelling
111  virtual void postCorrector();
112 
113 
114  // Member Operators
115 
116  //- Disallow default bitwise assignment
117  void operator=(const fluid&) = delete;
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace solvers
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:99
const fvMesh & mesh
Region mesh.
Definition: solver.H:101
Solver module for steady or transient turbulent flow of compressible fluids with heat-transfer for HV...
Definition: fluid.H:70
virtual void thermophysicalPredictor()
Construct and solve the energy equation,.
virtual void prePredictor()
Called at the start of the PIMPLE loop.
Definition: fluid.C:68
void operator=(const fluid &)=delete
Disallow default bitwise assignment.
virtual void postCorrector()
Correct the momentum and thermophysical transport modelling.
Definition: fluid.C:79
TypeName("fluid")
Runtime type information.
autoPtr< fluidThermoThermophysicalTransportModel > thermophysicalTransport
Definition: fluid.H:77
fluid(fvMesh &mesh)
Construct from region mesh.
Definition: fluid.C:43
virtual ~fluid()
Destructor.
Definition: fluid.C:62
Solver module for steady or transient turbulent flow of compressible isothermal fluids with optional ...
Namespace for OpenFOAM.