aerosandbox.geometry.propulsor

Attributes

Classes

Propulsor

Definition for a Propulsor, which could be a propeller, a rotor, or a jet engine.

Module Contents

class aerosandbox.geometry.propulsor.Propulsor(name='Untitled', xyz_c=None, xyz_normal=None, radius=1.0, length=0.0, color=None, analysis_specific_options=None)[source]

Bases: aerosandbox.AeroSandboxObject

Definition for a Propulsor, which could be a propeller, a rotor, or a jet engine.

Assumes a disk- or cylinder-shaped propulsor.

Parameters:
  • name (Optional[str]) –

  • xyz_c (Union[aerosandbox.geometry.common.np.ndarray, List[float]]) –

  • xyz_normal (Union[aerosandbox.geometry.common.np.ndarray, List[float]]) –

  • radius (float) –

  • length (float) –

  • color (Optional[Union[str, Tuple[float]]]) –

  • analysis_specific_options (Optional[Dict[type, Dict[str, Any]]]) –

name = 'Untitled'[source]
xyz_c[source]
xyz_normal[source]
radius = 1.0[source]
length = 0.0[source]
color = None[source]
analysis_specific_options = None[source]
__repr__()[source]
Return type:

str

xsec_area()[source]

Returns the cross-sectional area of the propulsor, in m^2.

Return type:

float

xsec_perimeter()[source]

Returns the cross-sectional perimeter of the propulsor, in m.

Return type:

float

volume()[source]

Returns the volume of the propulsor, in m^3.

Return type:

float

compute_frame()[source]

Computes the local coordinate frame of the propulsor, in aircraft geometry axes.

xg_local is aligned with the propulsor’s normal vector.

zg_local is roughly aligned with the z-axis of the aircraft geometry axes, but projected onto the propulsor’s plane.

yg_local is the cross product of zg_local and xg_local.

Returns: A tuple:

xg_local: The x-axis of the local coordinate frame, in aircraft geometry axes. yg_local: The y-axis of the local coordinate frame, in aircraft geometry axes. zg_local: The z-axis of the local coordinate frame, in aircraft geometry axes.

Return type:

Tuple[aerosandbox.geometry.common.np.ndarray, aerosandbox.geometry.common.np.ndarray, aerosandbox.geometry.common.np.ndarray]

get_disk_3D_coordinates(theta=None, l_over_length=None)[source]
Parameters:
  • theta (Union[float, aerosandbox.geometry.common.np.ndarray]) –

  • l_over_length (Union[float, aerosandbox.geometry.common.np.ndarray]) –

Return type:

Tuple[Union[float, aerosandbox.geometry.common.np.ndarray]]

translate(xyz)[source]

Returns a copy of this propulsor that has been translated by xyz.

Parameters:

xyz (Union[aerosandbox.geometry.common.np.ndarray, List[float]]) – The amount to translate the propulsor, in meters. Given in aircraft geometry axes, as with everything else.

Return type:

Propulsor

Returns: A copy of this propulsor, translated by xyz.

aerosandbox.geometry.propulsor.p_disk[source]