pterasoftware.movements.free_flight_operating_point_movement¶
Contains the FreeFlightOperatingPointMovement class.
Classes¶
A class used to contain an OperatingPoint’s movements in a free flight simulation. |
Module Contents¶
- class pterasoftware.movements.free_flight_operating_point_movement.FreeFlightOperatingPointMovement(base_operating_point: pterasoftware.operating_point.OperatingPoint)[source]¶
A class used to contain an OperatingPoint’s movements in a free flight simulation.
In free flight, OperatingPoints are not prescribed via oscillation parameters. They are dynamically determined by the solver as it integrates rigid body dynamics at each time step. FreeFlightOperatingPointMovement holds the initial OperatingPoint and provides a mutable list that the solver populates as dynamics integration produces new states.
Contains the following methods:
max_period: FreeFlightOperatingPointMovement’s longest period of motion.
generate_operating_point_at_time_step: Creates the OperatingPoint at a single time step.
generate_operating_points: Creates the OperatingPoint at each time step, and returns them in a list.
- Parameters:
base_operating_point – The initial OperatingPoint representing the operating conditions at the start of the simulation.
- Returns:
None
- property max_period: float¶
The longest period of this OperatingPoint’s motion.
- Returns:
The longest period in seconds. If the motion is static, this will be 0.0.
- generate_operating_point_at_time_step(step: int, delta_time: float | int) pterasoftware.operating_point.OperatingPoint¶
Creates the OperatingPoint at a single time step.
- Parameters:
step – The time step index. Must be a non negative int.
delta_time – The time between each time step in seconds. Must be a positive number (int or float).
- Returns:
The OperatingPoint at this time step.
- generate_operating_points(num_steps: int, delta_time: float | int) list[pterasoftware.operating_point.OperatingPoint]¶
Creates the OperatingPoint at each time step, and returns them in a list.
- Parameters:
num_steps – The number of time steps in this movement. It must be a positive int.
delta_time – The time between each time step. It must be a positive number (int or float), and will be converted internally to a float. The units are in seconds.
- Returns:
The list of OperatingPoints associated with this CoreOperatingPointMovement.