radialActuationDisk.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) 2011-2025 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::fv::radialActuationDisk
26 
27 Description
28  Actuation disk source including radial thrust
29 
30  Constant values for momentum source for actuation disk
31 
32  \f[
33  T = 2 \rho A U_{o}^2 a (1-a)
34  \f]
35 
36  and
37 
38  \f[
39  U_1 = (1 - a)U_{o}
40  \f]
41 
42  where:
43  \vartable
44  A | disk area
45  U_o | upstream velocity
46  a | 1 - Cp/Ct
47  U_1 | velocity at the disk
48  \endvartable
49 
50  The thrust is distributed by a radial function:
51 
52  \f[
53  thrust(r) = T (C_0 + C_1 r^2 + C_2 r^4)
54  \f]
55 
56 Usage
57  Example usage:
58  \verbatim
59  radialActuationDisk1
60  {
61  type radialActuationDisk;
62 
63  cellZone radialActuationDisk1;
64 
65  U U; // Name of the velocity field
66 
67  diskDir (-1 0 0); // Disk direction
68  Cp 0.1; // Power coefficient
69  Ct 0.5; // Thrust coefficient
70  diskArea 5.0; // Disk area
71  coeffs (0.1 0.5 0.01); // Radial distribution coefficients
72  upstreamPoint (0 0 0); // Upstream point
73  }
74  \endverbatim
75 
76 
77 SourceFiles
78  radialActuationDisk.C
79  radialActuationDiskTemplates.C
80 
81 \*---------------------------------------------------------------------------*/
82 
83 #ifndef radialActuationDisk_H
84 #define radialActuationDisk_H
85 
86 #include "actuationDisk.H"
87 #include "FixedList.H"
88 
89 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
90 
91 namespace Foam
92 {
93 namespace fv
94 {
95 
96 /*---------------------------------------------------------------------------*\
97  Class radialActuationDisk Declaration
98 \*---------------------------------------------------------------------------*/
99 
100 class radialActuationDisk
101 :
102  public actuationDisk
103 {
104  // Private Data
105 
106  //- Coefficients for the radial distribution
107  FixedList<scalar, 3> radialCoeffs_;
108 
109 
110  // Private Member Functions
111 
112  //- Non-virtual read
113  void readCoeffs(const dictionary& dict);
114 
115  //- Add resistance to the UEqn
116  template<class RhoFieldType>
117  inline void addRadialActuationDiskAxialInertialResistance
118  (
119  vectorField& Usource,
120  const labelList& cells,
121  const scalarField& V,
122  const RhoFieldType& rho,
123  const vectorField& U
124  ) const;
125 
126 
127 public:
128 
129  //- Runtime type information
130  TypeName("radialActuationDisk");
131 
132 
133  // Constructors
134 
135  //- Construct from components
137  (
138  const word& name,
139  const word& modelType,
140  const fvMesh& mesh,
141  const dictionary& dict
142  );
143 
144  //- Disallow default bitwise copy construction
146 
147 
148  //- Destructor
149  virtual ~radialActuationDisk()
150  {}
151 
152 
153  // Member Functions
154 
155  //- Source term to momentum equation
156  virtual void addSup
157  (
158  const volVectorField& U,
159  fvMatrix<vector>& eqn
160  ) const;
161 
162  //- Source term to compressible momentum equation
163  virtual void addSup
164  (
165  const volScalarField& rho,
166  const volVectorField& U,
167  fvMatrix<vector>& eqn
168  ) const;
169 
170 
171  // IO
172 
173  //- Read dictionary
174  virtual bool read(const dictionary& dict);
175 
176 
177  // Member Operators
178 
179  //- Disallow default bitwise assignment
180  void operator=(const radialActuationDisk&) = delete;
181 };
182 
183 
184 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
185 
186 } // End namespace fv
187 } // End namespace Foam
188 
189 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 
191 #endif
192 
193 // ************************************************************************* //
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvMatrix.H:118
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:96
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvModelI.H:69
const word & name() const
Return const access to the source name.
Definition: fvModelI.H:57
Actuation disk source including radial thrust.
virtual void addSup(const volVectorField &U, fvMatrix< vector > &eqn) const
Source term to momentum equation.
radialActuationDisk(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual ~radialActuationDisk()
Destructor.
void operator=(const radialActuationDisk &)=delete
Disallow default bitwise assignment.
TypeName("radialActuationDisk")
Runtime type information.
A class for handling words, derived from string.
Definition: word.H:62
const cellShapeList & cells
U
Definition: pEqn.H:72
Namespace for OpenFOAM.
labelList fv(nPoints)
dictionary dict