class KerbalDyn::Part::SolidRocket

A class respresenting booster rockets

Some of its methods are defined in the Mixin::FuelTank module.

Public Instance Methods

burn_time() click to toggle source
# File lib/kerbaldyn/part/solid_rocket.rb, line 24
def burn_time
  return self.capacity / self.fuel_consumption
end
fuel_consumption() click to toggle source

The fuel consumption in m^3/s

To convert to liters/second, multiply by 1000

# File lib/kerbaldyn/part/solid_rocket.rb, line 20
def fuel_consumption
  return self['fuelConsumption'].to_f / 1000.0
end
heat_production() click to toggle source
# File lib/kerbaldyn/part/solid_rocket.rb, line 13
def heat_production
  return self['heatProduction'].to_f
end
thrust() click to toggle source
# File lib/kerbaldyn/part/solid_rocket.rb, line 9
def thrust
  return self['thrust'].to_f
end