DSAeroToolsSim.Models.Drag package

DSAeroToolsSim.Models.Drag.simpleDrag module

Simple Drag Model

DSAeroToolsSim

REQUIRED INPUT STRUCTURE

Vehicle.State.Trajectory.V[-1]

Vehicle.State.Aero.CL[-1]

Latest CL must already be appended

Vehicle.State.Aero.CD0[-1]

Latest CD0 must already be appended

Vehicle.State.Atmosphere.rho[-1]

Latest rho must already be appended

Vehicle.State.Atmosphere.SoS[-1]

Latest SoS must already be appended

Vehicle.DragModel.e

Vehicle.DragModel.isCompressible

DSAeroToolsSim.Models.Drag.simpleDrag.compressibleFactor(Vehicle, SoS, v, CL)

Compressible (Wave) Drag Factor

Calculates the compressible (wave) drag addition at a given velocity, lift coefficient, and speed of sound.

This method is only called if Vehicle.DragModel.isCompressible is True.

Parameters:
  • Vehicle (Vehicle) – Vehicle from which the drag is being called for. Automatically passed when a call to the Wrapper is made.

  • SoS (float) – Speed of Sound

  • v (float) – Vehicle Velocity

  • CL (float) – Lift Coefficient

Returns:

Addition to the drag coefficient due to compressibility (wave drag)

Return type:

float

DSAeroToolsSim.Models.Drag.simpleDrag.simpleDrag(Vehicle, *args)

Simple Drag Model

Appends ‘CD’ and ‘drag’ to Vehicle.State.Aero.CD and Vehicle.State.Aero.drag, respectively.

It also returns ‘drag’ for convenience. See segments for example.

# Note: simpleDrag requires the following variables to have already been appended to the state:

  • Vehicle.State.Trajectory.V

  • Vehicle.State.Aero.CL

  • Vehicle.State.Aero.CD0

  • Vehicle.State.Atmosphere.rho

  • Vehicle.State.Atmosphere.SoS

Parameters:

Vehicle (Vehicle) – Vehicle from which the drag is being called for. Automatically passed when a call to the Wrapper is made.

Returns:

Drag force for the given velocity, lift coefficient, and parasitic drag coefficient

Return type:

float