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
-
property
-
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:
-
get_lower_side
() → pandas.core.frame.DataFrame[source]¶ Point set of lower side of the profile.
DataFrame keys are ‘x’ and ‘z’, given in meters.
-
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 form 0. to 1.
-
get_sides
() → pandas.core.frame.DataFrame[source]¶ Point set of the whole profile
Points are given from trailing edge to trailing edge, starting by upper side.
-
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.
-
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 –
-
property
thickness_ratio
¶ thickness-to-chord ratio
-