Debian Codegraph @

src/FDM/AIWake/WakeMesh.hxx

raw symbols SCIP
1 // WakeMesh.hxx -- Mesh for the computation of a wing wake.
2 // Written by Bertrand Coconnier, started March 2017.
3 //
4 // SPDX-FileCopyrightText: (C) 2017 Bertrand Coconnier - [email protected]
5 // SPDX-License-Identifier: GPL-2.0-or-later
6
7 #ifndef _FG_WAKEMESH_HXX
8 #define _FG_WAKEMESH_HXX
9
10 #include <string>
11
12 #include <simgear/math/SGVec3.hxx>
13
14 #include "AeroElement.hxx"
15
16 namespace FGTestApi {
17 namespace PrivateAccessor {
18 namespace FDM {
19 class Accessor;
20 }
21 } // namespace PrivateAccessor
22 } // namespace FGTestApi
23
24
25 class WakeMesh : public SGReferenced
26 {
27 public:
28 WakeMesh(double _span, double _chord, const std::string& aircraft_name);
29 virtual ~WakeMesh();
30 double computeAoA(double vel, double rho, double weight);
31 SGVec3d getInducedVelocityAt(const SGVec3d& at) const;
32
33 protected:
34 friend class FGTestApi::PrivateAccessor::FDM::Accessor;
35
36 int nelm;
37 double span, chord;
38 std::vector<AeroElement_ptr> elements;
39 double **influenceMtx, **Gamma;
40 };
41
42 typedef SGSharedPtr<WakeMesh> WakeMesh_ptr;
43
44 #endif