airinnova / pytornado

:airplane: An implementation of the vortex-lattice method (VLM)
https://pytornado.readthedocs.io/
Apache License 2.0
25 stars 7 forks source link

Lift Force #9

Closed bharswami closed 4 years ago

bharswami commented 4 years ago

In Matlab Tornado (or PyTornado) the total lift force is calculated across all surfaces or only the first wing? Is CL calculated using this lift force?

aarondettmann commented 4 years ago

Yes, the forces on all surfaces (wings, horizontal/vertical tail etc.) are summed up into a global force vector. This force vector is then transformed into the aerodynamic coordinate system to express lift, drag and the side force. A few more hints can be found here:

In case you are interested in the code itself and potentially improving it, the summing of panel forces and transformation into the aerodynamic coordinate system is done here:

https://github.com/airinnova/pytornado/blob/0c88624e6a4f4629d136365c3aa8e31c2d538e73/src/lib/pytornado/aero/c_results.cpp#L38

bharswami commented 4 years ago

Thanks for your reply Aaron. I have a code that computes Lift and Drag for each panel. The freestream is in the negative x-direction. How to compute FX,FY,FZ,L,M,N.

On Sun, Dec 22, 2019 at 3:04 PM Aaron Dettmann notifications@github.com wrote:

Yes, the forces on all surfaces (wings, horizontal/vertical tail etc.) are summed up into a global force vector. This force vector is then transformed into the aerodynamic coordinate system to express lift, drag and the side force. A few more hints can be found here:

- https://pytornado.readthedocs.io/en/latest/theory/coordinate_systems.html

In case you are interested in the code itself and potentially improving it, the summing of panel forces and transformation into the aerodynamic coordinate system is done here:

https://github.com/airinnova/pytornado/blob/0c88624e6a4f4629d136365c3aa8e31c2d538e73/src/lib/pytornado/aero/c_results.cpp#L38

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/9?email_source=notifications&email_token=AHHO5AJQ2AULUEI7WFYAQMLQZ4YCJA5CNFSM4J6KQYQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHPL6SQ#issuecomment-568246090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AND5FQMXAHSCAOEZZLQZ4YCJANCNFSM4J6KQYQA .

aarondettmann commented 4 years ago

PyTornado computes both global forces in the body-fixed coordinate system (Fx, Fy and Fz) as well as global forces in the aerodynamic coordinate system (FL, FD, FC). These two systems differ if angle of attack and/or side slip angle are non-zero (see). The transformation in PyTornado is implemented according to [1].

[1] Drela, M.: Flight Vehicle Aerodynamics. Cambridge, Massachusetts: MIT Press, 2014. -- ISBN 978-0-262-52644-9

bharswami commented 4 years ago

Thanks Aaron