26#include <simgear/structure/SGSharedPtr.hxx>
27#include <simgear/math/SGVec3.hxx>
28#include <simgear/debug/logstream.hxx>
39 double y1 = -0.5*
span;
47 SGVec3d(-
chord, y2, 0.)));
55 SGVec3d normal =
elements[
i]->getNormal();
56 SGVec3d collPt =
elements[
i]->getCollocationPoint();
58 for (
int j=0; j <
nelm; ++j)
70 for (
int j=0; j <
nelm; ++j)
74 SG_LOG(SG_FLIGHT, SG_WARN,
75 "Failed to build wake mesh. " << aircraft_name <<
" ( span:"
76 << _span <<
", chord:" << _chord <<
") wake will be ignored.");
90 for (
int k=1; k<=
nelm; ++k)
100 SGVec3d v(-vel, 0.0, 0.0);
105 double sinAlpha = -weight/f[2];
110 return asin(sinAlpha);
115 SGVec3d v(0., 0., 0.);
std::vector< AeroElement_ptr > elements
double computeAoA(double vel, double rho, double weight)
SGVec3d getInducedVelocityAt(const SGVec3d &at) const
WakeMesh(double _span, double _chord, const std::string &aircraft_name)
double ** nr_matrix(long nrl, long nrh, long ncl, long nch)
int nr_gaussj(double **a, int n, double **b, int m)
void nr_free_matrix(double **m, long nrl, long nrh, long ncl, long nch)