pterasoftware.FreeFlightMovement¶
- class pterasoftware.FreeFlightMovement(
- *,
- airplane_movements: list[AirplaneMovement],
- operating_point_movement: FreeFlightOperatingPointMovement,
- delta_time: float | int,
- prescribed_num_steps: int,
- free_num_steps: int,
- max_wake_rows: int | None = None,
A class used to contain a FreeFlightUnsteadyProblem's movement.
In free flight, airplane geometry is prescribed (flapping, CG oscillation, etc.) but OperatingPoints are dynamically determined by the solver as it integrates rigid body dynamics at each time step. FreeFlightMovement pre generates all Airplanes upfront and provides a FreeFlightOperatingPointMovement whose mutable operating_points list the solver populates during simulation.
The simulation is divided into two phases. During the prescribed phase, the solver uses the operating conditions from the initial OperatingPoint. During the free flight phase, the solver integrates rigid body dynamics using MuJoCo and creates new OperatingPoints from the resulting state at each time step.
This method checks that all Wings maintain their symmetry type across all time steps. See the WingMovement class documentation for more details on this requirement. See the Wing class documentation for more information on symmetry types.
- Parameters:
airplane_movements -- A list of the AirplaneMovements associated with each of the FreeFlightUnsteadyProblem's Airplanes.
operating_point_movement -- A FreeFlightOperatingPointMovement holding the initial OperatingPoint. The solver populates its mutable operating_points list during simulation.
delta_time -- The time, in seconds, between each time step. It must be a positive number (int or float). It will be converted internally to a float.
prescribed_num_steps -- The number of prescribed flight time steps to simulate before the free flight time steps. It must be a positive int.
free_num_steps -- The number of free flight time steps to simulate after the prescribed time steps. It must be a positive int.
max_wake_rows -- The maximum number of chordwise wake ring vortex rows per Wing. Must be a positive int if set. The default is None (no truncation).
- Returns:
None