Skip to content

DOFDefinition changes to allow better outputs

Daniel Brown requested to merge feature/dof-ac-in-out into develop

DOFDefinition has been depreciated and called LocalDegreeOfFreedom now. LocalDegreeOfFreedom now have an input and output AC attribute AC_IN is what node is driven when the DOF is excited, `DOF.AC.i`. AC_OUT is what nodes are combined to make the output of the DOF.

Added example of radiation pressure instabilties and comparison to theory. Also uses the improved LocalDegreeOfFreedom to excite and readout HARD/SOFT motions easily.

Added finesse.utilities.misc.DepreciationHelper:

DOFDefinition = DeprecationHelper(
    "DOFDefinition",
    "finesse.components.general.LocalDegreeOfFreedom",
    LocalDegreeOfFreedom,
    "3.b0",
)

This will raise a warning when the target version hasn't been reached and an exception once it has so that it forces us to remember when to deal with any leftover uses of a class in code/examples.

Merge request reports