def __init__(self, propDict = None): self.general = propertyCollection() self.general.props['burnoutWebThres'] = floatProperty('Web Burnout Threshold', 'm', 2.54e-5, 3.175e-3) self.general.props['burnoutThrustThres'] = floatProperty('Thrust Burnout Threshold', '%', 0.01, 10) self.general.props['timestep'] = floatProperty('Simulation Timestep', 's', 0.0001, 0.1) self.general.props['ambPressure'] = floatProperty('Ambient Pressure', 'Pa', 0.0001, 102000) self.general.props['mapDim'] = intProperty('Grain Map Dimension', '', 250, 2000) self.units = propertyCollection() for unit in unitLabels: self.units.props[unit] = enumProperty(unitLabels[unit], getAllConversions(unit)) if propDict is not None: self.applyDict(dictionary)
def __init__(self, manager): props = {'Kn': motorlib.floatProperty('Kn', '', 0, 1000)} super().__init__(manager, 'Initial Kn', 'Use this tool to set the nozzle throat to achieve a specific Kn at startup.', props, False)
def __init__(self, manager): props = {'diameter': motorlib.floatProperty('Diameter', 'm', 0, 1)} super().__init__(manager, 'Motor diameter', 'Use this tool to set the diameter of all grains in the motor.', props, False)
def __init__(self, manager): props = {'Kn': motorlib.floatProperty('Kn', '', 0, 1000)} super().__init__( manager, 'Max Kn', 'Use this tool to set the nozzle throat to keep the Kn below a certain value during the burn.', props, True)