import math

# width of solar panel
wpanel = .8 #m

# length of panel
lpanel= .8 #m

# Area of panel
A = wpanel * lpanel

# solar irrandiance
E=1000 #Watt/m^2

# solar panel efficiency
e=0.20

# incident angle
theta = 10*math.pi/180 # 10 degrees expressed in radians

# mass
m = 5 #kg     1 kg = 2.2046 lb
print("Total drone mass = ", m, "kg")

# gravitational field
g = 9.8 #N/kg

# density of air
rho = 1.23 #kg/m^3


# required thrust
Fthrust = m*g

#available power
P=E*e*A*math.cos(theta)

print("Solar Power Output = ", P, " Watts")

#calculate thrust speed
#Fthrust = mg = rho*A*v**2/2
v=4*P/(2*m*g*rho)
print("Thrust air speed = ",v, " m/s")


#calculate rotor area
Ar=4*P/(rho*v**3)

print("Total Rotor Area = ",Ar," m^2")

#calculate rotor diameter (assuming 4)
d=2*math.sqrt(Ar/(4*math.pi))
print("Single Rotor Diameter (assuming 4 total) = ",d," m")


0ca4867c257f57945690d4bff5c7797dea8e7025
<mask token>

<mask token>
print('Total drone mass = ', m, 'kg')
<mask token>
print('Solar Power Output = ', P, ' Watts')
<mask token>
print('Thrust air speed = ', v, ' m/s')
<mask token>
print('Total Rotor Area = ', Ar, ' m^2')
<mask token>
print('Single Rotor Diameter (assuming 4 total) = ', d, ' m')

<mask token>
wpanel = 0.8
lpanel = 0.8
A = wpanel * lpanel
E = 1000
e = 0.2
theta = 10 * math.pi / 180
m = 5
print('Total drone mass = ', m, 'kg')
g = 9.8
rho = 1.23
Fthrust = m * g
P = E * e * A * math.cos(theta)
print('Solar Power Output = ', P, ' Watts')
v = 4 * P / (2 * m * g * rho)
print('Thrust air speed = ', v, ' m/s')
Ar = 4 * P / (rho * v ** 3)
print('Total Rotor Area = ', Ar, ' m^2')
d = 2 * math.sqrt(Ar / (4 * math.pi))
print('Single Rotor Diameter (assuming 4 total) = ', d, ' m')

import math
wpanel = 0.8
lpanel = 0.8
A = wpanel * lpanel
E = 1000
e = 0.2
theta = 10 * math.pi / 180
m = 5
print('Total drone mass = ', m, 'kg')
g = 9.8
rho = 1.23
Fthrust = m * g
P = E * e * A * math.cos(theta)
print('Solar Power Output = ', P, ' Watts')
v = 4 * P / (2 * m * g * rho)
print('Thrust air speed = ', v, ' m/s')
Ar = 4 * P / (rho * v ** 3)
print('Total Rotor Area = ', Ar, ' m^2')
d = 2 * math.sqrt(Ar / (4 * math.pi))
print('Single Rotor Diameter (assuming 4 total) = ', d, ' m')

import math

# width of solar panel
wpanel = .8 #m

# length of panel
lpanel= .8 #m

# Area of panel
A = wpanel * lpanel

# solar irrandiance
E=1000 #Watt/m^2

# solar panel efficiency
e=0.20

# incident angle
theta = 10*math.pi/180 # 10 degrees expressed in radians

# mass
m = 5 #kg     1 kg = 2.2046 lb
print("Total drone mass = ", m, "kg")

# gravitational field
g = 9.8 #N/kg

# density of air
rho = 1.23 #kg/m^3


# required thrust
Fthrust = m*g

#available power
P=E*e*A*math.cos(theta)

print("Solar Power Output = ", P, " Watts")

#calculate thrust speed
#Fthrust = mg = rho*A*v**2/2
v=4*P/(2*m*g*rho)
print("Thrust air speed = ",v, " m/s")


#calculate rotor area
Ar=4*P/(rho*v**3)

print("Total Rotor Area = ",Ar," m^2")

#calculate rotor diameter (assuming 4)
d=2*math.sqrt(Ar/(4*math.pi))
print("Single Rotor Diameter (assuming 4 total) = ",d," m")

