coupledToConstantDensityFluid.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) 2025-2026 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::clouds::coupledToConstantDensityFluid
26 
27 Description
28  Base class for clouds which are coupled to a constant density fluid
29 
30 SourceFiles
31  coupledToConstantDensityFluid.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef coupledToConstantDensityFluid_H
36 #define coupledToConstantDensityFluid_H
37 
38 #include "coupled.H"
39 #include "physicalProperties.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace clouds
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class coupledToConstantDensityFluid Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public coupled
55 {
56 private:
57 
58  // Private Data
59 
60  //- Reference to the mesh
61  const LagrangianMesh& mesh_;
62 
63  //- Physical properties dictionary
64  mutable autoPtr<Foam::physicalProperties> physicalPropertiesPtr_;
65 
66  //- Reference to the constant cloud density. Only valid if the
67  // Eulerian is multiphase. Null if the Eulerian is single phase.
68  const dimensionedScalar& rho_;
69 
70  //- Reference to the constant carrier density. Only valid if the
71  // Eulerian is multiphase. Null if the Eulerian is single phase.
72  const dimensionedScalar& rhoc_;
73 
74 
75  // Private Member Functions
76 
77  //- Get the physical properties dictionary
79 
80  //- Return a uniform field of values equal to one. Used in volume
81  // transfers to represent the Eulerian volume per unit volume.
83  (
84  const LagrangianSubMesh&
85  );
86 
87 
88 protected:
89 
90  // Protected Member Functions
91 
92  //- A uniform field of values equal to one. Used in volume
93  // transfers to represent the Eulerian volume per unit volume.
95 
96  //- A uniform field of values equal to one. Used in volume
97  // transfers to represent the Eulerian volume per unit volume.
99 
100 
101 public:
102 
103  // Public Static Data
104 
105  //- Run-time type information
106  TypeName("coupledToConstantDensityFluid");
107 
108 
109  // Public Data
110 
111  //- Cloud/carrier density ratio
113 
114 
115  // Constructors
116 
117  //- Construct from a reference to the cloud
119 
120 
121  //- Destructor
123 
124 
125  // Member Functions
126 
127  //- Cloud density
128  const dimensionedScalar& rho() const;
129 
130  //- Carrier density
131  const dimensionedScalar& rhoc() const;
132 
133  //- Corresponding Eulerian phase density
134  const dimensionedScalar& rhocPhase() const;
135 };
136 
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 
139 } // End namespace clouds
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
Class containing Lagrangian geometry and topology.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:61
Base class for clouds which are carried by a fluid.
Definition: carried.H:57
Base class for clouds which are coupled to a constant density fluid.
const dimensionedScalar & rhoc() const
Carrier density.
const CloudDerivedField< scalar > & onecPhase
A uniform field of values equal to one. Used in volume.
TypeName("coupledToConstantDensityFluid")
Run-time type information.
coupledToConstantDensityFluid(const cloud &c, const carried &)
Construct from a reference to the cloud.
const dimensionedScalar & rho() const
Cloud density.
const CloudDerivedField< scalar > & onec
A uniform field of values equal to one. Used in volume.
const dimensionedScalar rhoByRhoc
Cloud/carrier density ratio.
const dimensionedScalar & rhocPhase() const
Corresponding Eulerian phase density.
Base class for clouds which are coupled to a carrier.
Definition: coupled.H:55
A class representing the concept of 1 (scalar(1)) used to avoid unnecessary manipulations for objects...
Definition: one.H:51
A base class for physical properties.
A class for managing temporary objects.
Definition: tmp.H:55
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for OpenFOAM.