Professional Documents
Culture Documents
Cosmo Logic Impulse Study
Cosmo Logic Impulse Study
Cosmo Logic Impulse Study
#include <cmath>
#include <ctime>
#include <stdlib.h>
using namespace std;
int main()
{
srand(time(NULL));
const float pi = 3.14159265359; //the value of pi
float VHlaunch; //volume of hydrogen on laucnh
float VHelaunch; //volume of helium on launch
float Vburst = 1150.347; //burst volume in m^3
float VHr; //hydrogen volume ratio
float VHer; //helium volume ratio
float maxaltH; //max alt hyrogen
float maxaltHe; //max alt helium
float DlaunchH; //diameter of hydrogen balloon
float DlaunchHe; //diamter of helium balloon
float SlaunchH; //surface area of hydrogen balloon
float SlaunchHe; //surface area of helium balloon
float GrossLiftH; //gross lift of hydrogen balloon
float GrossLiftHe; //gross lift of helium balloon
float freeLiftH; //free lift of hydrogen balloon
float freeLiftHe; //free lift of helium balloon
float NLiftH; //normal lift hydrogen
float NLiftHe; //normal lift helium
float VaccH; //hydrogen ascent velocity
float VaccHe; //helium ascent velocity
float flighttimeH;//hydrogen balloon flight time
float flighttimeHe; //helium balloon flight time
const float cd = .25; //balloon cd value for lift
const float g = 9.80665; //gravitational acceleration
const float rhoAir = 1.275; //air density
const
const
const
const
const
const
const
const
const
float
float
float
const