41enum series { four_digit, five_digit };
79 double sqr(
double x) {
return x*x; };
80 double cube(
double x) {
return x*x*x; };
82 double xcoord(
double angle);
83 double ytfunc(
double x,
double thmax );
85 void camber_four(
double *yc,
double *slope,
double x,
double maxor,
double posmax);
86 void camber_five(
double *yc,
double *slope,
double x,
double maxor,
double posmax,
double k1,
int iReflex);
88 void out_point(
double x,
double yc,
double yt,
double slope,
int is_upper, FILE *fp);
94 char *check_name(
char *name);
96 void ClearTabs(
void );
97 void CreateTabs(
int nn );
class with overloaded "new" operator initializing object with zeros
NACA_PROFILE class to generate 4-digit and 5-digit naca airfoils Created by Alexandre Naaman (hoser...
int generate_naca(char *name, int num, FILE *fp)
generates naca airfoil coordinates (NN points) and stores it in file defined by stream "fp"
void setTE0(int TE=1)
TE=1 forces the zero thickness trailing edge.
double * Z
z coordinates vecotr
int N
coordiantes vectors' size
double * X
x coordinates vector
This file contains some smart functions, operators, macros for safe initializing end erasing the memo...
A struct containing airfoil data.
double posmax
the location of maximum camber
int ireflex
reflex flag - if ireflex = 1, Cm should be close to 0 (5-digit serie)
double thmax
the maximum thickness
enum series serie
type of serie - 4- or 5-digit
double maxor
the maximum camber
double k1
constant to determine the desired lift coefficient (5-digit serie)
int iTE0
trailing edge flag, 1 - TE thickness equal to zero
const char * name
4- or 5-digit airfoil code