namespace JSBSim {
-IDENT(IdSrc,"$Id: FGAerodynamics.cpp,v 1.58 2016/05/22 17:02:13 bcoconni Exp $");
+IDENT(IdSrc,"$Id: FGAerodynamics.cpp,v 1.59 2016/05/23 17:23:36 bcoconni Exp $");
IDENT(IdHdr,ID_AERODYNAMICS);
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
unsigned int axis_ctr;
const double twovel=2*in.Vt;
+ // Calculate lift coefficient squared
+ // Make sure that aero/cl-squared is computed with the current qbar
+ if ( in.Qbar > 0) {
+ clsq = (vFw(eLift) + vFwAtCG(eLift))/ (in.Wingarea*in.Qbar);
+ clsq *= clsq;
+ }
+
RunPreFunctions();
// calculate some oft-used quantities for speed
exit(-1);
}
- // Calculate lift coefficient squared
- if ( in.Qbar > 0) {
- clsq = (vFw(eLift) + vFwAtCG(eLift))/ (in.Wingarea*in.Qbar);
- clsq *= clsq;
- }
-
// Calculate lift Lift over Drag
if ( fabs(vFw(eDrag) + vFwAtCG(eDrag)) > 0.0)
lod = fabs( (vFw(eLift) + vFwAtCG(eLift))/ (vFw(eDrag) + vFwAtCG(eDrag)));