Skip to content

Commit

Permalink
Fix 2nd actuator deflection lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ybeyer committed Nov 17, 2023
1 parent 79c0de6 commit 2365dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aircraft.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void Wing::plot() {
QVector3D flapForceVector( 0, 0, -m_cL_flap[i] );
// QVector3D ladForceVector( m_coeffLocal.m_c_XYZ_b[0][i], m_coeffLocal.m_c_XYZ_b[1][i], m_coeffLocal.m_c_XYZ_b[2][i] );
QVector3D inflowVector( m_v_i[i][0], m_v_i[i][1], m_v_i[i][2] );
QVector3D spanVector( m_vortex.m_x[i+1]-m_vortex.m_x[1], m_vortex.m_y[i+1]-m_vortex.m_y[1], m_vortex.m_z[i+1]-m_vortex.m_z[1] );
QVector3D spanVector( m_vortex.m_x[i+1]-m_vortex.m_x[i], m_vortex.m_y[i+1]-m_vortex.m_y[i], m_vortex.m_z[i+1]-m_vortex.m_z[i] );
QVector3D ladForceVector = QVector3D::crossProduct(inflowVector,spanVector);
// QVector3D ladForceVector( 0, 0, -m_cL_act2[i] );
ladForceVector.normalize();
Expand Down

0 comments on commit 2365dd7

Please sign in to comment.