Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature : Add different losses calculations #3

Open
Keith-Maxwell opened this issue Feb 12, 2021 · 0 comments
Open

New Feature : Add different losses calculations #3

Keith-Maxwell opened this issue Feb 12, 2021 · 0 comments

Comments

@Keith-Maxwell
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant