pterasoftware.AeroelasticWingCrossSectionMovement

class pterasoftware.AeroelasticWingCrossSectionMovement(
*,
base_wing_cross_section: WingCrossSection,
ampLp_Wcsp_Lpp: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
periodLp_Wcsp_Lpp: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
spacingLp_Wcsp_Lpp: np.ndarray | Sequence[str | Callable[[float], float]] = ('sine', 'sine', 'sine'),
phaseLp_Wcsp_Lpp: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
ampAngles_Wcsp_to_Wcs_ixyz: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
periodAngles_Wcsp_to_Wcs_ixyz: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
spacingAngles_Wcsp_to_Wcs_ixyz: np.ndarray | Sequence[str | Callable[[float], float]] = ('sine', 'sine', 'sine'),
phaseAngles_Wcsp_to_Wcs_ixyz: np.ndarray | Sequence[float | int] = (0.0, 0.0, 0.0),
)

A class used to contain a WingCrossSection's movement in an aeroelastic simulation.

In aeroelastic simulations, wing cross section geometry is prescribed via oscillation parameters (the same oscillation based generation as WingCrossSectionMovement), but the solver adds structural deformation angles at each time step. When creating the WingCrossSection at each time step, this class accepts an optional deformation that is added to the prescribed angles_Wcsp_to_Wcs_ixyz.

Parameters:
  • base_wing_cross_section -- The base WingCrossSection from which the WingCrossSection at each time step will be created.

  • ampLp_Wcsp_Lpp -- An array-like object of non negative numbers (int or float) with shape (3,) representing the amplitudes of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' Lp_Wcsp_Lpp parameters. Can be a tuple, list, or ndarray. Values are converted to floats internally. Each amplitude must be low enough that it doesn't drive its base value out of the range of valid values. Otherwise, this AeroelasticWingCrossSectionMovement will try to create WingCrossSections with invalid parameter values. The units are in meters. The default is (0.0, 0.0, 0.0).

  • periodLp_Wcsp_Lpp -- An array-like object of non negative numbers (int or float) with shape (3,) representing the periods of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' Lp_Wcsp_Lpp parameters. Can be a tuple, list, or ndarray. Values are converted to floats internally. Each element must be 0.0 if the corresponding element in ampLp_Wcsp_Lpp is 0.0 and non zero if not. The units are in seconds. The default is (0.0, 0.0, 0.0).

  • spacingLp_Wcsp_Lpp -- An array-like object of strs or callables with shape (3,) representing the spacing of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' Lp_Wcsp_Lpp parameters. Can be a tuple, list, or ndarray. Each element can be the str "sine", the str "uniform", or a callable custom spacing function. Custom spacing functions are for advanced users and must start at 0.0, return to 0.0 after one period of 2.0 * pi radians, have amplitude of 1.0, be periodic, return finite values only, and accept a float as input and return a float. Custom functions are scaled by ampLp_Wcsp_Lpp, shifted horizontally and vertically by phaseLp_Wcsp_Lpp and the base value, and have a period set by periodLp_Wcsp_Lpp. The default is ("sine", "sine", "sine").

  • phaseLp_Wcsp_Lpp -- An array-like object of numbers (int or float) with shape (3,) representing the phase offsets of the elements in the first time step's WingCrossSection's Lp_Wcsp_Lpp parameter relative to the base WingCrossSection's Lp_Wcsp_Lpp parameter. Can be a tuple, list, or ndarray. Elements must lie in the range (-180.0, 180.0]. Each element must be 0.0 if the corresponding element in ampLp_Wcsp_Lpp is 0.0 and non zero if not. Values are converted to floats internally. The units are in degrees. The default is (0.0, 0.0, 0.0).

  • ampAngles_Wcsp_to_Wcs_ixyz -- An array-like object of non negative numbers (int or float) with shape (3,) representing the amplitudes of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' angles_Wcsp_to_Wcs_ixyz parameters. Can be a tuple, list, or ndarray. Values are converted to floats internally. Each amplitude must be low enough that it doesn't drive its base value out of the range of valid values. Otherwise, this AeroelasticWingCrossSectionMovement will try to create WingCrossSections with invalid parameter values. The units are in degrees. The default is (0.0, 0.0, 0.0).

  • periodAngles_Wcsp_to_Wcs_ixyz -- An array-like object of non negative numbers (int or float) with shape (3,) representing the periods of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' angles_Wcsp_to_Wcs_ixyz parameters. Can be a tuple, list, or ndarray. Values are converted to floats internally. Each element must be 0.0 if the corresponding element in ampAngles_Wcsp_to_Wcs_ixyz is 0.0 and non zero if not. The units are in seconds. The default is (0.0, 0.0, 0.0).

  • spacingAngles_Wcsp_to_Wcs_ixyz -- An array-like object of strs or callables with shape (3,) representing the spacing of the AeroelasticWingCrossSectionMovement's changes in its WingCrossSections' angles_Wcsp_to_Wcs_ixyz parameters. Can be a tuple, list, or ndarray. Each element can be the str "sine", the str "uniform", or a callable custom spacing function. Custom spacing functions are for advanced users and must start at 0.0, return to 0.0 after one period of 2.0 * pi radians, have amplitude of 1.0, be periodic, return finite values only, and accept a float as input and return a float. Custom functions are scaled by ampAngles_Wcsp_to_Wcs_ixyz, shifted horizontally and vertically by phaseAngles_Wcsp_to_Wcs_ixyz and the base value, and have a period set by periodAngles_Wcsp_to_Wcs_ixyz. The default is ("sine", "sine", "sine").

  • phaseAngles_Wcsp_to_Wcs_ixyz -- An array-like object of numbers (int or float) with shape (3,) representing the phase offsets of the elements in the first time step's WingCrossSection's angles_Wcsp_to_Wcs_ixyz parameter relative to the base WingCrossSection's angles_Wcsp_to_Wcs_ixyz parameter. Can be a tuple, list, or ndarray. Elements must lie in the range (-180.0, 180.0]. Each element must be 0.0 if the corresponding element in ampAngles_Wcsp_to_Wcs_ixyz is 0.0 and non zero if not. Values are converted to floats internally. The units are in degrees. The default is (0.0, 0.0, 0.0).

Returns:

None