optimization.variable.radius
Radius of Curvature Variable Module
This module contains the RadiusVariable class, which represents a variable for the radius of a surface in an optic. The class inherits from the VariableBehavior class.
Kramer Harrison, 2024
Classes
|
Represents a variable for the radius of a surface in an optic. |
- class RadiusVariable(optic, surface_number, scaler=None, **kwargs)[source]
Represents a variable for the radius of a surface in an optic.
- Parameters:
- surface_number
The index of the surface in the optic.
- Type:
int
- get_value()[source]
Returns the current value of the radius.
- Returns:
The current value of the radius.
- Return type:
float
- inverse_scale(scaled_value)
Inverse scale the value of the variable.
- Parameters:
scaled_value – The scaled value to inverse scale
- scale(value)
Scale the value of the variable for improved optimization performance.
- Parameters:
value – The value to scale