electricpy.primary

electricpy.primary(val, Np, Ns=1, invert=False)[source]

Electrical Transformer Primary Evaluator.

Returns a current or voltage value reflected across a transformer with a specified turns ratio Np/Ns. Converts to the primary side.

Parameters:
  • val (complex) – Value to be reflected across transformer.

  • Np (float) – Number of turns on primary side.

  • Ns (float, optional) – Number of turns on secondary side.

  • invert (bool, optional) – Control argument to invert the turns ratio, used when reflecting current across a voltage transformer, or voltage across a current transformer.

Returns:

reflection – The reflected value referred to the primary side according to Np and Ns.

Return type:

complex