16#include "PanelLoadTypes.h"
20namespace hydrodynamics
22namespace panel_formulas
31T CylinderDragCoefficient(
const T& re)
35 const double coefficients[8] = {-78.46675, 254.73873, -327.8864, 223.64577, -87.92234,
36 20.00769, -2.44894, 0.12479};
38 const T x = log10(re);
39 T cd = T(coefficients[7]);
40 for (
int i = 6; i >= 0; i--) {
41 cd = cd * x + coefficients[i];
58T VelocityReductionFactor(
const T& solidity,
unsigned& flags)
60 const T ratio = 1.08 - 0.97 * solidity;
62 flags |= kPanelFlagVelocityRatioClamped;
71T VelocityReductionFactor(
const T& solidity)
73 unsigned ignoredFlags = 0u;
74 return VelocityReductionFactor(solidity, ignoredFlags);