3.3.2.13. A_FMM.Stack.get_energybalance

Stack.get_energybalance(u: ndarray, d: ndarray = None) tuple[float]

Get total energy balance of the stack given the inputs

Return total power reflected, transmitted and absorbed, normalized to the incidenc power.

Parameters:
  • u (1darray) – Modal coefficient of the left input.

  • d (1darray, optional) – Modal coefficent of the right input. Defaults to None.

Returns:

tuple contining tree floats with meaning:
  • Total power out from left side (reflection if only u).

  • Total power out from right side (transmission if only u).

  • Total power absorbed in the stack.

Return type:

tuple