This script calculates the lifting force in Newtons and the lifting mass in Kg of a volume of hot air. You input the target air temperature of the canopy and it’s volume. The script currently presumes an ambient air temperature of 15 C with a standard air pressure value of 1.225Kg/M^3.
import math def hot_air(): Ht=float(input("Enter target temp in C ")) V= float(input("Enter canopy volume in M^3 ")) Dt=float(Ht-15) #The difference in temperature between target and ambient Pct=float(Dt/3) #For every 3 degrees C the density will decrease by 1% Dd=float((1.225/100)*Pct) #The density of the air once at target temperature hot_density=float(1.225-Dd) #the change in density Fi=round(float((V*Dd)*9.81),3) #calculating the lifting force in N, 9.81 is accelleration of gravity Lm=round(float(Fi/9.81),3) #calculating the lifting mass in Kg print("Lifting force = ",Fi ,"N") print("Lifting mass = ",Lm ,"Kg")