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