finesse.components.cavity.Cavity.generate_abcd_str¶
- Cavity.generate_abcd_str()[source]¶
Generates a string representation of the cavity round-trip ABCD matrix operations.
This can be useful for debugging purposes as the returned string will correspond exactly to the operation performed internally for calculating the round-trip matrices.
The format of each matrix symbol will be
<comp>__<from_port>_<to_port>
, e.g. the reflection at the rear (port two) surface of a mirror named ITM would be represented asITM__p2_p2
. The matrix multiplication is denoted via the@
symbol.- Returns
- abcd_strstr
A string representing the operation to obtain the cavity round-trip ABCD matrix (in either plane).