public final class CSTCurveUtils extends java.lang.Object
CSTCurve
curves.
Modified by: Joseph A. Huwaldt
Constructor and Description |
---|
CSTCurveUtils() |
Modifier and Type | Method and Description |
---|---|
static BasicCSTCurve |
approxAirfoilPoints(int order,
GeomVector<Dimensionless> xhat,
Parameter<Length> rLE,
GeomVector<Dimensionless> tanTE,
PointString<?> points,
Parameter<Length> tol)
Method that returns a
BasicCSTCurve that approximates the input list of
points on either the upper or lower surface of a blunt nosed airfoil. |
static BasicCSTCurve |
getCamberDist(CSTCurve upper,
CSTCurve lower)
Return a
BasicCSTCurve that represents the camber distribution for an
airfoil formed by the input upper and lower airfoil curves. |
static BasicCSTCurve |
getThicknessDist(CSTCurve upper,
CSTCurve lower)
Return a
BasicCSTCurve that represents the thickness distribution for an
airfoil formed by the input upper and lower airfoil curves. |
public CSTCurveUtils()
public static BasicCSTCurve approxAirfoilPoints(int order, GeomVector<Dimensionless> xhat, Parameter<Length> rLE, GeomVector<Dimensionless> tanTE, PointString<?> points, Parameter<Length> tol) throws RootException
BasicCSTCurve
that approximates the input list of
points on either the upper or lower surface of a blunt nosed airfoil. This is
useful to approximate a specific airfoil or blunt LE body shape. This method offers
control over the leading edge radius and the trailing edge slope. The input points
must be ordered from leading edge to trailing edge and must be co-planar. In
addition, the input xhat (chord- wise direction vector) must be parallel to or
contained in the plane containing the points. The origin of the resulting CSTCurve
will be taken as the first point in the input list of points and the trailing edge
offset will be taken as the distance from the last point in the input list to the
line formed by passing xhat through the origin point. Finally, the points must
represent a shape that can be modeled by a blunt-nosed CST curve with the given
class function or the fit will be very poor.order
- The order for the Bezier curve used for the shape function. This
controls the accuracy that the input points are approximated.xhat
- The chord-wise direction to assume for the input points. This vector
must lie parallel to the plane containing the points being
approximated. May not be null.rLE
- The LE radius to use for the airfoil. May not be null.tanTE
- The trailing edge tangent vector on the airfoil curve. May not be null.points
- The list of airfoil points ordered from leading edge to trailing edge
to be approximated by a CSTCurve. May not be null.tol
- The tolerance to use when determining if the input points are
co-planar. May not be null.RootException
- if a fit to the points could not be made.public static BasicCSTCurve getThicknessDist(CSTCurve upper, CSTCurve lower)
BasicCSTCurve
that represents the thickness distribution for an
airfoil formed by the input upper and lower airfoil curves. The input curves must
be of the same order.upper
- The CSTCurve
that represents the upper surface of the airfoil.
May not be null.lower
- The CSTCurve
that represents the lower surface of the airfoil.
May not be null.public static BasicCSTCurve getCamberDist(CSTCurve upper, CSTCurve lower)
BasicCSTCurve
that represents the camber distribution for an
airfoil formed by the input upper and lower airfoil curves. The input curves must
be of the same order.upper
- The CSTCurve
that represents the upper surface of the airfoil.
May not be null.lower
- The CSTCurve
that represents the lower surface of the airfoil.
May not be null.