select_morphp: Select morphing points

Description Usage Arguments Value Examples

Description

The function selects the morphing points (which control a mesh morphing) from airfoil points. Each morphing point is selected such that it is neares to a corresponding point from xcoord vector.

Usage

1
select_morphp(airfoil, surf, xcoord)

Arguments

airfoil

A data frame containing coordinates of airfoil points.

surf

A character string indicating upper or lower curve of the airfoil.

xcoord

A vector of x-coordinates of the requested points.

Value

A list of two elements: a logical vector ($sel) indicating which points are selected and a data frame ($coord) containing coordinates of the selected points.

Examples

1
2
3
x_coord <- seq(0.15, 0.9, len = 5)
morph_up <- select_morphp(rae2822_airfoil, "up", x_coord)
morph_lo <- select_morphp(rae2822_airfoil, "lo", x_coord)

kmarchlewski/morphfoil documentation built on Oct. 8, 2020, 5:34 p.m.