RCAIDE.Library.Methods.Powertrain.Propulsors.Electric_Rotor.append_electric_rotor_residual_and_unknown

append_electric_rotor_residual_and_unknown#

append_electric_rotor_residual_and_unknown(propulsor, segment)[source]#

Appends the torque matching residual and unknown for an electric rotor propulsor.

Parameters:
  • propulsor (RCAIDE.Library.Components.Propulsors.Electric_Rotor) –

    Electric rotor propulsor component with the following attributes:
    • tagstr

      Identifier for the propulsor

    • motorData
      Electric motor component
      • design_currentfloat

        Design current of the motor [A]

  • 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

      • unknownsdict

        Dictionary of unknown variables for the solver

      • residualsData
        Residuals for the solver
        • networkdict

          Network residuals

Returns:

Results are stored in segment.state.unknowns and segment.state.residuals.network

Return type:

None

Notes

This function sets up the necessary variables for solving the torque balance between the electric motor and the rotor. It adds:

  • An unknown variable for the motor current, initialized with the design current

  • A residual for the torque balance between the motor and rotor

The torque balance residual will be driven to zero during the numerical solution process, ensuring that the motor provides exactly the torque required by the rotor at the current flight condition.

Major Assumptions
  • The motor current is initialized with the design value

  • The torque balance residual is initialized as zero