BendModeToForce

class lsst.ts.ofc.BendModeToForce(component: str, ofc_data: OFCData)

Bases: object

Bending mode class to compute actuator forces and mirror stresses from bending modes and retrieve bending modes from actuator forces.

Parameters

componentstring

Name of the component. Must be in the ofc_data.bend_mode dictionary.

ofc_dataOFCData

Data container class.

Attributes

componentstring

Name of the component in the ofc_data.bend_mode dictionary.

ofc_dataOFCData

OFC data container class.

RCONDfloat

Cutoff for small singular values, used when computing pseudo-inverse matrix.

bending_mode_stresses_positivenp.ndarray[float]

Bending mode stresses in psi/um for tensile stress.

bending_mode_stresses_negativenp.ndarray[float]

Bending mode stresses in psi/um for compressive stress.

rot_matnp.ndarray[float]

Influence matrix relating bending mode to actuator force.

Raises

RuntimeError

If the component attribute string is not a valid entry in the ofc_data.bend_mode dictionary. If the component name does not map into a valid entry in the ofc_data.comp_dof_idx dictionary.

Attributes Summary

RCOND

Methods Summary

bending_mode(force)

Compute the bending mode.

force(dof)

Calculate the actuator forces in N based on the degree of freedom (DOF).

get_stresses_from_dof(dof)

Calculated mirror stress in psi per bending mode of the mirror.

Attributes Documentation

RCOND = 0.0001

Methods Documentation

bending_mode(force: ndarray[float]) ndarray[float]

Compute the bending mode.

Parameters

forcenumpy.ndarray

Actuator forces in N.

Returns

numpy.ndarray

Estimated bending mode in um.

force(dof: ndarray[float]) ndarray[float]

Calculate the actuator forces in N based on the degree of freedom (DOF).

Parameters

dofnumpy.ndarray

Mirror DOF in um.

Returns

numpy.ndarray

Actuator forces in N.

get_stresses_from_dof(dof: ndarray[float]) ndarray[float]

Calculated mirror stress in psi per bending mode of the mirror.

Parameters

dofnumpy.ndarray

Mirror bending mode DOF in um.

Returns

np.ndarray

Mirror stress in psi per bending mode.