fixedTrim.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) 2012-2014 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
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 
26 Class
27  Foam::fixedTrim
28 
29 Description
30  Fixed trim coefficients
31 
32 SourceFiles
33  fixedTrim.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef fixedTrim_H
38 #define fixedTrim_H
39 
40 #include "trimModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class fixedTrim Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class fixedTrim
52 :
53  public trimModel
54 {
55 protected:
56 
57  // Protected data
58 
59  //- Geometric angle of attack [rad]
61 
62 
63 public:
64 
65  //- Run-time type information
66  TypeName("fixedTrim");
67 
68  //- Constructor
69  fixedTrim(const fv::rotorDiskSource& rotor, const dictionary& dict);
70 
71  //- Destructor
72  virtual ~fixedTrim() = default;
73 
74 
75  // Member functions
76 
77  //- Read
78  void read(const dictionary& dict);
79 
80  //- Return the geometric angle of attack [rad]
81  virtual tmp<scalarField> thetag() const;
82 
83  //- Correct the model
84  virtual void correct
85  (
86  const vectorField& U,
87  vectorField& force
88  );
89 
90  //- Correct the model for compressible flow
91  virtual void correct
92  (
93  const volScalarField rho,
94  const vectorField& U,
95  vectorField& force
96  );
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace Foam
103 
104 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
105 
106 #endif
107 
108 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:59
rho
rho
Definition: readInitialConditions.H:88
Foam::fixedTrim::fixedTrim
fixedTrim(const fv::rotorDiskSource &rotor, const dictionary &dict)
Constructor.
Definition: fixedTrim.C:48
Foam::fixedTrim::correct
virtual void correct(const vectorField &U, vectorField &force)
Correct the model.
Definition: fixedTrim.C:86
Foam::fixedTrim::read
void read(const dictionary &dict)
Read.
Definition: fixedTrim.C:62
Foam::Field< scalar >
Foam::fixedTrim
Fixed trim coefficients.
Definition: fixedTrim.H:50
Foam::fv::rotorDiskSource
Rotor disk source.
Definition: rotorDiskSource.H:127
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::fixedTrim::~fixedTrim
virtual ~fixedTrim()=default
Destructor.
trimModel.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::fixedTrim::TypeName
TypeName("fixedTrim")
Run-time type information.
Foam::trimModel
Trim model base class.
Definition: trimModel.H:52
U
U
Definition: pEqn.H:72
Foam::fixedTrim::thetag
virtual tmp< scalarField > thetag() const
Return the geometric angle of attack [rad].
Definition: fixedTrim.C:79
Foam::fixedTrim::thetag_
scalarField thetag_
Geometric angle of attack [rad].
Definition: fixedTrim.H:59
Foam::GeometricField< scalar, fvPatchField, volMesh >