User Tools

Site Tools


aircraft:tmd:airbrake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
aircraft:tmd:airbrake [2017/01/23 23:09] – created jhaircraft:tmd:airbrake [2019/07/07 10:50] (current) – [Airbrake] jh
Line 2: Line 2:
  
 In the Aerofly FS 2 an ''airbrake'' represents a controllable area that creates drag. In the Aerofly FS 2 an ''airbrake'' represents a controllable area that creates drag.
 +
 +=== Other Aerodynamic classes ===
 +
 +[[aerowing]], [[airfoil]], [[aerofuselage]], [[propeller]], [[aerodrag]]
  
 ===== Function Description ===== ===== Function Description =====
  
 The airbrake is probably using something similar to this formula: The airbrake is probably using something similar to this formula:
-<code>F_d = 0.5 * rho v^2 * Cd * Area * Control</code>+<code>F_d = 0.5 * rho v^2 * Cd * Area * Control</code>
  
 Where Where
-  * The ''Body'' ([[rigidbody]]) velocity vector and the ''X0'' vector are multiplied using the vector dot product to find out how much the X0 axis of the airbrake is aligned with the current direction of flight. The norm (length) of the velocity (v) is multiplied by that dot product then squared.+  * is the velocity
   * Cd is the drag coefficient for the maximum ''Area''   * Cd is the drag coefficient for the maximum ''Area''
   * ''Area'' is the surface size in square meters perpendicular to X0.   * ''Area'' is the surface size in square meters perpendicular to X0.
   * ''Control'' is the dynamic input values between ''0.0'' and ''1.0'' that scales the Area linearly   * ''Control'' is the dynamic input values between ''0.0'' and ''1.0'' that scales the Area linearly
   * ''X0'' is the direction of the airbrake where it is acting (usually this is the x-axis but it could also be pointing upwards.   * ''X0'' is the direction of the airbrake where it is acting (usually this is the x-axis but it could also be pointing upwards.
 +  * rho is the air density at the Body.R position in the world (+R0 properly rotated with the Body orientation as far as the author of this text wants to believe)
  
 +Then the calculated drag is acted upon the ''Body'' at the ''R0'' location along the ''X0'' axis. The real formula used may be a lot more complex to account for the rotation speed of the ''Body''.
  
-=== Other Aerodynamic classes ===+===== Example Code ===== 
 +> **Caution**: Requires a [[rigidbody]] with the name ''Fuselage''
  
-[[aerowing]][[airfoil]][[aerofuselage]][[propeller]][[aerodrag]][[bladeforce]][[bodyaerodynamics]]+<code>            <[airbrake][Airbrake][] 
 +                <[string8][Body][Fuselage]
 +                <[tmvector3d][R0][ 0.0 0.0 0.0 ]
 +                <[tmvector3d][X0][ 1.0 0.0 0.0 ]
 +                <[float64][Cd][1.5]
 +                <[float64][Area][1.0]
 +                <[string8][Control][ServoAirbrake.Output]
 +            ></code>
  
aircraft/tmd/airbrake.1485209390.txt.gz · Last modified: 2017/01/23 23:09 by jh