FlightGear next
WakeMesh.hxx
Go to the documentation of this file.
1// WakeMesh.hxx -- Mesh for the computation of a wing wake.
2//
3// Written by Bertrand Coconnier, started March 2017.
4//
5// Copyright (C) 2017 Bertrand Coconnier - bcoconni@users.sf.net
6//
7// This program is free software; you can redistribute it and/or modify it under
8// the terms of the GNU General Public License as published by the Free Software
9// Foundation; either version 2 of the License, or (at your option) any later
10// version.
11//
12// This program is distributed in the hope that it will be useful, but WITHOUT
13// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15// details.
16//
17// You should have received a copy of the GNU General Public License along with
18// this program; if not, write to the Free Software Foundation, Inc., 51
19// Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20//
21// $Id$
22
23#ifndef _FG_WAKEMESH_HXX
24#define _FG_WAKEMESH_HXX
25
26#include <string>
27
28#include "AeroElement.hxx"
29
30namespace FGTestApi { namespace PrivateAccessor { namespace FDM { class Accessor; } } }
31
32
33class WakeMesh : public SGReferenced {
34public:
35 WakeMesh(double _span, double _chord, const std::string& aircraft_name);
36 virtual ~WakeMesh();
37 double computeAoA(double vel, double rho, double weight);
38 SGVec3d getInducedVelocityAt(const SGVec3d& at) const;
39
40protected:
42
43 int nelm;
44 double span, chord;
45 std::vector<AeroElement_ptr> elements;
46 double **influenceMtx, **Gamma;
47};
48
49typedef SGSharedPtr<WakeMesh> WakeMesh_ptr;
50
51#endif
SGSharedPtr< WakeMesh > WakeMesh_ptr
Definition WakeMesh.hxx:49
std::vector< AeroElement_ptr > elements
Definition WakeMesh.hxx:45
double ** influenceMtx
Definition WakeMesh.hxx:46
double ** Gamma
Definition WakeMesh.hxx:46
virtual ~WakeMesh()
Definition WakeMesh.cxx:80
double computeAoA(double vel, double rho, double weight)
Definition WakeMesh.cxx:86
SGVec3d getInducedVelocityAt(const SGVec3d &at) const
Definition WakeMesh.cxx:113
WakeMesh(double _span, double _chord, const std::string &aircraft_name)
Definition WakeMesh.cxx:36
double span
Definition WakeMesh.hxx:44
friend class FGTestApi::PrivateAccessor::FDM::Accessor
Definition WakeMesh.hxx:41
double chord
Definition WakeMesh.hxx:44