buffalo_wings.airfoil.Naca4DigitCamber
- class buffalo_wings.airfoil.Naca4DigitCamber(mci, lci)[source]
Bases:
CamberCamber for the NACA 4-digit airfoils.
- Parameters:
mci (float)
lci (float)
- __init__(mci, lci)[source]
Initialize a NACA 4-digit camber line from its designation.
- Parameters:
mci (
float) – Maximum-camber index from the NACA designation.lci (
float) – Maximum-camber-location index from the NACA designation.
- Raises:
ValueError – If either designation index is outside the supported range.
- Return type:
None
Methods
__init__(mci, lci)Initialize a NACA 4-digit camber line from its designation.
arc_length(t_s, t_e)Calculate the arc-length distance between two points on surface.
joints()Return the locations of any joints/discontinuities in the camber line.
k(t)Calculate the curvature at parameter location.
k_t(t)Calculate the rate of change of curvature at parameter location.
Return parameter where the camber is maximum.
normal(t)Calculate the unit normal at parameter location.
tangent(t)Calculate the unit tangent at parameter location.
xy(t)Calculate the coordinates of geometry at parameter location.
xy_t(t)Calculate rates of change of the coordinates at parameter location.
xy_tt(t)Calculate second derivative of the coordinates at parameter location.
xy_ttt(t)Calculate third derivative of the coordinates at parameter location.
Attributes
Return the maximum-camber-location index.
Return the maximum-camber index.
- property max_camber_index: float
Return the maximum-camber index.
- Returns:
Maximum camber as a designation index.
- Return type:
float
- property loc_max_camber_index: float
Return the maximum-camber-location index.
- Returns:
Chordwise location of maximum camber as a designation index.
- Return type:
float
- joints()[source]
Return the locations of any joints/discontinuities in the camber line.
- Returns:
Xi-coordinates of any discontinuities.
- Return type:
List[float]
- max_camber_parameter()[source]
Return parameter where the camber is maximum.
- Returns:
Parameter where camber is maximum.
- Return type:
float
- arc_length(t_s, t_e)
Calculate the arc-length distance between two points on surface.
- Parameters:
t_s (
float) – Start point of distance calculation.t_e (
numpy.ndarray) – End point of distance calculation.
- Returns:
Distance from start point to end point.
- Return type:
numpy.ndarray
- k(t)
Calculate the curvature at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
Curvature of surface at point.
- Return type:
numpy.ndarray
- k_t(t)
Calculate the rate of change of curvature at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
Rate of change of curvature of surface at point.
- Return type:
numpy.ndarray
- normal(t)
Calculate the unit normal at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
Unit normal at point.
- Return type:
numpy.ndarray,numpy.ndarray
- tangent(t)
Calculate the unit tangent at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
Unit tangent at point.
- Return type:
numpy.ndarray,numpy.ndarray
- xy(t)
Calculate the coordinates of geometry at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
numpy.ndarray– X-coordinate of point.numpy.ndarray– Y-coordinate of point.
- Return type:
tuple[ndarray[tuple[int, …], dtype[float64]], ndarray[tuple[int, …], dtype[float64]]]
- xy_t(t)
Calculate rates of change of the coordinates at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
numpy.ndarray– Parametric rate of change of the x-coordinate of point.numpy.ndarray– Parametric rate of change of the y-coordinate of point.
- Return type:
tuple[ndarray[tuple[int, …], dtype[float64]], ndarray[tuple[int, …], dtype[float64]]]
- xy_tt(t)
Calculate second derivative of the coordinates at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
numpy.ndarray– Parametric second derivative of the x-coordinate of point.numpy.ndarray– Parametric second derivative of the y-coordinate of point.
- Return type:
tuple[ndarray[tuple[int, …], dtype[float64]], ndarray[tuple[int, …], dtype[float64]]]
- xy_ttt(t)
Calculate third derivative of the coordinates at parameter location.
- Parameters:
t (
numpy.ndarray) – Parameter for desired locations.- Returns:
numpy.ndarray– Parametric third derivative of the x-coordinate of point.numpy.ndarray– Parametric third derivative of the y-coordinate of point.
- Return type:
tuple[ndarray[tuple[int, …], dtype[float64]], ndarray[tuple[int, …], dtype[float64]]]