Module aerodynamics

This API is added by CC: VS and allows CC: Tweaked computers to access information from Valkyrien Skies' Aerodynamics Utilities.

Functions

getDefaultMax () Gets the default maximum constant atmospheric height
getDefaultSeaLevel () Gets the default sea level constant for atmospheric calculations
getDragCoefficient () Gets the drag coefficient constant for atmospheric calculations
getGravitationalAcceleration () Gets the gravitational acceleration constant for atmospheric calculations
getUniversalGasConstant () Gets the universal gas constant for atmospheric calculations
getAirMolarMass () Gets the air molar mass constant for atmospheric calculations
getAtmosphericParameters () Gets the atmospheric parameters for the dimension
getAirDensity (y) Gets the density of air at a Y value adapted to a real life altitude, where Y = 60 is sea level, and Y = 320 is the top of the Troposphere
getAirPressure (y) Gets the air pressure at Y
getAirTemperature (y) Gets the air temperature at Y


Functions

getDefaultMax ()
Gets the default maximum constant atmospheric height

Returns:

    number The default maximum atmospheric height constant
getDefaultSeaLevel ()
Gets the default sea level constant for atmospheric calculations

Returns:

    number The default sea level constant
getDragCoefficient ()
Gets the drag coefficient constant for atmospheric calculations

Returns:

    number The drag coefficient constant
getGravitationalAcceleration ()
Gets the gravitational acceleration constant for atmospheric calculations

Returns:

    number The gravitational acceleration constant
getUniversalGasConstant ()
Gets the universal gas constant for atmospheric calculations

Returns:

    number The universal gas constant
getAirMolarMass ()
Gets the air molar mass constant for atmospheric calculations

Returns:

    number The air molar mass constant
getAtmosphericParameters ()
Gets the atmospheric parameters for the dimension

Returns:

    table A table with the maxY, sealevel, and gravity keys
getAirDensity (y)
Gets the density of air at a Y value adapted to a real life altitude, where Y = 60 is sea level, and Y = 320 is the top of the Troposphere

Parameters:

  • y number or nil The Y level, defaults to the computer's World Space position

Returns:

    number The air density at the given Y value, in kg/m^3
getAirPressure (y)
Gets the air pressure at Y

Parameters:

  • y number or nil The Y level, defaults to the computer's World Space position

Returns:

    number The air pressure at the given Y value, in Pascals (Pa)
getAirTemperature (y)
Gets the air temperature at Y

Parameters:

  • y number or nil The Y level, defaults to the computer's World Space position

Returns:

    number he air temperature at the given Y value, in Kelvin (K)
generated by LDoc 1.5.0 Last updated 2025-12-25 15:07:55