fastoad.models.geometry.profiles.profile module¶
Management of 2D wing profiles
- class fastoad.models.geometry.profiles.profile.Coordinates2D(x, y)¶
Bases:
tuple
Create new instance of Coordinates2D(x, y)
- property x¶
Alias for field number 0
- property y¶
Alias for field number 1
- class fastoad.models.geometry.profiles.profile.Profile(chord_length: float = 0.0)[source]¶
Bases:
object
Class for managing 2D wing profiles :param chord_length: :param x: :param y:
- property thickness_ratio: float¶
thickness-to-chord ratio
- set_points(x: Sequence, z: Sequence, keep_chord_length: bool = True, keep_relative_thickness: bool = True)[source]¶
Sets points of the 2D profile.
Provided points are expected to be in order around the profile (clockwise or anti-clockwise).
- Parameters
x – in meters
z – in meters
keep_relative_thickness –
keep_chord_length –
- get_mean_line() → pandas.core.frame.DataFrame[source]¶
Point set of mean line of the profile.
DataFrame keys are ‘x’ and ‘z’, given in meters.
- get_relative_thickness() → pandas.core.frame.DataFrame[source]¶
Point set of relative thickness of the profile.
DataFrame keys are ‘x’ and ‘thickness’ and are relative to chord_length. ‘x’ is from 0. to 1.
- get_upper_side() → pandas.core.frame.DataFrame[source]¶
Point set of upper side of the profile.
DataFrame keys are ‘x’ and ‘z’, given in meters.