Namespace NWH.Aerodynamics.Airfoils
Classes
AerodynamicDragObject
Simulates aerodynamic drag on non-lifting bodies such as fuselages, landing gear, and external stores. Calculates direction-dependent drag based on projected area and coefficient of drag for each face.
Airfoil
Represents a finite wing that simulates aerodynamic forces using section-based calculations. Supports 1500+ airfoil profiles, automatic mesh fitting, control surface integration, and mirroring for symmetric aircraft. The airfoil is divided into spanwise sections, with each section calculating local lift, drag, and moment forces.
AirfoilProfile
ScriptableObject containing aerodynamic performance data for an airfoil cross-section. Stores lift, drag, and moment coefficient curves as functions of angle of attack.
AirfoilProfile.PolarItem
AirfoilSection
Represents one spanwise section of an airfoil that calculates local aerodynamic forces. Each section independently computes lift, drag, and moment based on local flow conditions.
AirfoilTransform
Lightweight transform replacement for airfoil positioning and orientation calculations. Provides efficient local-to-world coordinate transformations without the overhead of Unity's Transform component.
OrthogonalPlaneFit
Finds the best-fitting plane for a set of 3D points using Principal Component Analysis (PCA). The plane is defined by an origin point and a normal vector.
SymmetricEigenSolver
Solves for eigenvalues and eigenvectors of 3x3 symmetric matrices. Uses the Symmetric QR Algorithm with Householder tridiagonalization and Wilkinson shift.
Structs
ArrayAlias<T>
Utility class for porting C++ pointer arithmetic code that uses pointer offsets. Provides array access with a base index offset, emulating C++ pointer behavior.
FinitePlane
Represents a quadrilateral plane defined by four corner points in local space. Used to define finite airfoil geometry with corner points a, b, c, d arranged clockwise or counter-clockwise.
Enums
Airfoil.MirrorAxis
SymmetricEigenSolver.SortType
Specifies the sorting order for eigenvalues and corresponding eigenvectors.