src/AircraftTrajectories/Models/Optimisation/Boeing747-400.cs
/// <summary>
/// Calculate the drag for the given speed and altitude
/// </summary>
/// <param name="airspeed">The current airspeed</param>
/// <param name="altitude">The current altitude</param>
/// <returns></returns>
Calculate the drag for the given speed and altitude
Calculate the drag for the given speed and altitude
public double Drag(double airspeed, double altitude)
        {
            double ktsToMps = 0.514444444;
            airspeed = (airspeed * ktsToMps);
            var isa = new ISA(altitude);
            double dragPolar = DragPolar(isa.Rho, airspeed);
            return dragPolar * 0.5 * isa.Rho * airspeed * airspeed * ReferenceArea;
        }
public double Drag ( double airspeed , double altitude ) { double ktsToMps = 0.514444444 ; airspeed = ( airspeed * ktsToMps ) ; var isa = new ISA ( altitude ) ; double dragPolar = DragPolar ( isa . Rho , airspeed ) ; return dragPolar * 0.5 * isa . Rho * airspeed * airspeed * ReferenceArea ; }
Calculate the drag for the given speed and altitude
Calculate the drag for the given speed and altitude
None
airspeed
double
The current airspeed
The current airspeed
altitude
double
The current altitude
The current altitude