Skip to content

New Feature : Add different losses calculations #3

Description

@Keith-Maxwell

This is the computation used by the website launchercalculator :

//=== Losses calculation by Y.Lobanovsky ===
var Const = (First_stage_isp_vac-(First_stage_isp_vac-First_stage_isp_sea_level)*.169);
var Const2 = (Math.exp(112.13/(Const+(Const-First_stage_isp_sea_level)/((1.-.169)*1.8872)*(-.8612))));
var Gravity_losses_at_specific_altitude = 9.81*(500./Math.sqrt((1.015*Math.sqrt((((Thrust_to_weight_ratio-1.)*9.81)*
		(Const2*(Const/First_stage_isp_sea_level)*
		((Thrust_to_weight_ratio-1.)*9.81)-(1.-Const2*(Const/First_stage_isp_sea_level))*9.81))))*9.81));

var Gravity_losses = 4./3.*
((Thrust_to_weight_ratio<1.46)
		? Gravity_losses_at_specific_altitude*(1.5+2.5*(Thrust_to_weight_ratio-1.17)-4.25*(Thrust_to_weight_ratio-1.17)*(Thrust_to_weight_ratio-1.17))
		: 1.865*Gravity_losses_at_specific_altitude);

//=== Additional losses calculation by J.Schilling ===
var Ascent_Time = 519;
if (elFirst_stage_run_time.textContent != "NaN") 
    {Ascent_Time = parseFloat(elFirst_stage_run_time.textContent) + parseFloat(elSecond_stage_run_time.textContent) + 2.;}

//var Gravity_losses_Time_Correction = 0.275*(0.0013*Math.pow(Ascent_Time,2)+0.0882*Ascent_Time-396)
var First_stage_delta_v0 = 3612.;
if(elFirst_stage_delta_v.textContent != "NaN")First_stage_delta_v0 = parseFloat(elFirst_stage_delta_v.textContent);
var Gravity_losses_Time_Correction = 0.178*((9140-First_stage_delta_v0)/First_stage_delta_v0)*(0.0013*Math.pow(Ascent_Time,2)+0.0882*Ascent_Time-396)

Gravity_losses = Gravity_losses+Gravity_losses_Time_Correction;
//var Gravity_lossesPr = Gravity_losses + Irremovable_Gravity_Losses;


var Aerodynamic_losses = Math.exp(-Starting_point_Altitude/7.16)/(Lift_off_Mass/2945000)*Math.pow(Max_midsection_D/10.1, 2.) *
    ((Thrust_to_weight_ratio>1.17)
        ? (.045+.1*Math.pow(Thrust_to_weight_ratio-1.17, 1.5))*1000.
        : (.045+.1*(1.3332*Thrust_to_weight_ratio*Thrust_to_weight_ratio-2.9399*Thrust_to_weight_ratio+1.6148))*1000.);

var Summary_losses = Gravity_losses+Aerodynamic_losses+145.;

It would be nice to verify how it compares to the existing model, and maybe add the choice. This model requires more data such as Thrust To Weight Ratio or Ascent Time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions