select_constr: Select points constraining morphing

Description Usage Arguments Value Examples

Description

The function selects points from airfoil points which should not be moved during morphing of a mesh.

Usage

1
select_constr(airfoil, surf, limits)

Arguments

airfoil

A data frame containing coordinates of airfoil points.

surf

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

limits

A matrix which in each row contains limits within wich the constraining points should lie.

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
constr_up <- select_constr(rae2822_airfoil, "up", rbind(c(0, 0), c(1, 1)))
constr_lo <- select_constr(rae2822_airfoil, "lo", rbind(c(0, 0), c(1, 1)))

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