RCAIDE.Library.Methods.Powertrain.Converters.Generator.append_generator_conditions

append_generator_conditions#

append_generator_conditions(generator, segment, conditions)[source]#

Initializes generator operating conditions for a mission segment.

Parameters:
  • generator (RCAIDE.Library.Components.Converters.Generator) –

    Generator component with the following attributes:
    • tagstr

      Identifier for the generator

  • segment (RCAIDE.Framework.Mission.Segments.Segment) –

    Mission segment with the following attributes:
    • stateData
      Segment state
      • ones_rowfunction

        Function to create array of ones with specified length

  • conditions (RCAIDE.Framework.Mission.Common.Conditions) – Energy conditions container where generator conditions will be stored

Returns:

Results are stored in conditions.converters[generator.tag]

Return type:

None

Notes

This function initializes the necessary data structures for storing generator operating conditions during a mission segment. It creates zero-filled arrays for various input and output parameters.

The function initializes the following in conditions.converters[generator.tag]:
  • inputsConditions
    Input conditions container
    • torquenumpy.ndarray

      Input torque [N·m], initialized with zeros

    • powernumpy.ndarray

      Input mechanical power [W], initialized with zeros

    • omeganumpy.ndarray

      Angular velocity [rad/s], initialized with zeros

  • outputsConditions
    Output conditions container
    • currentnumpy.ndarray

      Output current [A], initialized with zeros

    • voltagenumpy.ndarray

      Output voltage [V], initialized with zeros

These parameters will be populated during the mission analysis to track the generator’s performance as it converts mechanical power to electrical power.