Skip to main content
Version: 0.3.1

Conventions

Node order and layout​

Nodes run from the lower trailing edge, around the leading edge, to the upper trailing edge. In C++, coordinates are a 2 × N matrix: row 0 is x, row 1 is z. On the Philote server, x is flat: [x_0 … x_N, z_0 … z_N].

InterfaceGeometry inputWhat happens to it
C++ coordinate constructor2 × M points, at least 4Re-paneled to npanel + 1 nodes
Philote coordinates option{"x": [...], "z": [...]}Re-paneled; only initializes the server
Philote x inputExactly 2 * (npanel + 1) valuesUsed as the panel nodes, not re-paneled
CST server x outputnpanel + 1 cosine-spaced nodesConnects straight to the analysis x input

Many .dat files list points from the upper trailing edge first; reverse them.

Valid geometry​

  • Panel count from 4 to 4096. The CST server also needs an even count and 3–256 coefficients per surface.
  • Finite values, positive chord, no repeated neighbouring points, no self-intersection, and the leading edge listed once.
  • A finite trailing-edge gap is fine, and required for viscous analysis: a viscous solve throws if the trailing edge is thinner than 1e-6 chord (a known limitation).
  • For the Philote x input, cluster nodes at both edges yourself, since the server doesn't re-panel.

Units and references​

QuantityConvention
CoordinatesFractions of chord. Leading edge near x = 0, trailing edge near x = 1.
alphaDegrees, as are all d*/dalpha derivatives
ReBased on chord
Moment reference(0.25, 0), in geom.xref
Reference chordgeom.chord
Wake lengthOne chord, in geom.wakelen

The Philote x variable is labelled with length units, but values are still read as fractions of chord. Nothing rescales them.

Cl and cdpi are normalized by the reference chord and Cm by its square. Cd keeps mfoil's convention of a unit reference length, so to compare coefficients across shapes use unit-chord geometry rather than scaling a section.

Operating point​

InputValid values
alphaAny finite angle
cl (C++ only)Negative: fixed angle. Zero or positive: lift target.
ReFinite. Positive: viscous. Zero or negative: inviscid.
Ma0 <= Ma < 1. The model is valid only while the surface stays subsonic.

The Philote server always runs at a fixed angle. For a lift target, make alpha a design variable and constrain cl.

Array sizes​

N is npanel + 1 airfoil nodes; Nw is the number of wake nodes.

ResultInviscidViscous
GetCp()NN
GetCf(), GetTheta(), GetDeltaStar()emptyN + Nw, airfoil first
GetWakeCoords()empty2 × Nw
GetCd()0Wake momentum deficit
GetCdp()0Cd − Cdf
d*_dx gradients2 × N2 × N