Skip to content

Add FrequencyResponse4 action

This continues in the saga of FrequencyResponse actions by adding FrequencyResponse4 which calculates transfer functions from mechanical and electrical nodes to optical nodes.

To summarize, the four actions are

  • FrequencyResponse: transfer functions from {mechanical,electrical} nodes -> {mechanical,electrical} nodes. The output matrix has shape
    • [frequencies, inputs, outputs]. (Note that this is, unfortunately, not [frequencies, outputs, inputs].)
  • FrequencyResponse2: transfer functions from optical nodes -> {mechanical,electrical} nodes. The output matrix has shape
    • [frequencies, outputs, inputs, (input) HOMs]
  • FrequencyResponse3: transfer functions from optical nodes -> optical nodes. The output matrix has shape
    • [frequencies, outputs, inputs, (output) HOMs, (input) HOMs]
  • FrequencyResponse4: transfer functions from {mechanical,electrical} -> optical nodes. The output matrix has shape
    • [frequencies, outputs, inputs, (output) HOMs]

The attached example shows the usage each of these four actions in more detail. FrequencyResponseFunctions.py

Merge request reports