AngleExpression#

class AngleExpression[source]#

Bases: SingleAttributeModel

AngleExpression class for define the angle expression for Rotation.spec. The result of the expression is assumed to be in radians.

Example

>>> fl.AngleExpression("0.1*sin(t)")

Attributes

value: str#

The expression defining the rotation angle as a function of time.

Methods

preprocess(**kwargs)[source]#

Convert all dimensioned fields to flow360 base unit system, recursively.

Copy-on-write: returns self when no value in the subtree required conversion, skipping the pydantic re-validation rebuild for unchanged nodes.