50 int Read_PRF_0(
char *cFile );
51 int Read_PRF_1(
char *cFile );
52 int Read_KOO(
char *cFile );
53 int Read_DAT(
char *cFile );
54 int Read_DAT_LEDNICER(
char *cFile );
57 void getiTypeByContent(
char *cFile );
58 void getiTypeByExt(
char *cFile );
61 int Write_PRF(
char *cFile );
62 int Write_DAT(
char *cFile );
65 void PRF2XFOIL(
void );
66 void XFOIL2PRF(
void );
67 void TE_correct(
void );
68 void Check(
int *nn,
double *X,
double *Z );
71 double dAverage(
double*,
int );
72 double dmin(
double d1,
double d2){
return( d2 < d1 ? d2 : d1 ); };
73 double dmax(
double d1,
double d2){
return( d2 > d1 ? d2 : d1 ); };
74 double tabmax(
double*,
int );
75 double tabmin(
double*,
int );
76 double dMaxT(
double*,
int* );
77 double dMinT(
double*,
int* );
78 double inter1(
double *xx,
double *yy,
unsigned long n,
double x );
79 unsigned long locate(
double xx[],
unsigned long n,
double x );
80 double apr3(
double dX,
double *dXX,
double *dYY );
81 void SortClean(
int *
N,
double *X );
82 void Sort1(
int N,
double dRA[] );
83 void Sort2(
int iN,
double dRA[],
double dKOL[],
int iOrder );
84 bool check_order(
double d1,
double d2,
int iFlag = 0 );
94 void (*
alert)(
char *c ) = NULL;
120 void Print( FILE* f=stdout );
122 int Read(
char *cFile );
124 int Write(
char *cFile,
int iTyp=0 );
134 int ReadNaca(
long int iNACA,
int NN=100 );
136 int ReadNaca(
char* cNACA,
int NN=100 );
AIRFOIL class to manipulate the airfoil geometry or it can read geometry data from file (5 commonly ...
double * Xf
X coordinates (Nf points)
void Print(FILE *f=stdout)
prints PRF file (default on stdout)
int GetReadType(void)
returns the type of format recognition: 0 - recognition by content (default), 1 - recognition by ...
double * Xd
X coordinates of lower contour (N points)
void Clean(void)
cleans local variables
int ReadNaca(long int iNACA, int NN=100)
generates NACA airfoil given by long int value (e.g. iNACA = 23012), NN - the number of points that...
double * Zf
Z coordinates (Nf points)
int Read(char *cFile)
reads profile file
int ReadStatus(void)
returns read status: 0 - no data, 1 - data read succesfuly
int Nf
size of the vectors with geometry data - compatible with Xfoil
int Write(char *cFile, int iTyp=0)
saves profile file - two types are available: 0 - native PANUKL (4 columns) 3 - SELIG (Xfoil comp...
char cName[100]
filename (without path)
int iType
File type: 0 - PRF - PANUKL (prf1) - native PANUKL (4 columns) format 1 - PRF - prf2 - by L....
int N
size of the vectors with geometry data - 4 column native PANUKL format
int iRead
0 - no data, 1 - data read succesfuly
int iGUI
GUI flag - messages displayed using wrapping function "alert".
double * Zg
Z coordinates of upper contour (N points)
void(* alert)(char *c)
virtual fuction to display the message (if iGUI > 0)
double * Zd
Z coordinates of lower contour (N points)
void SetReadType(int iRT)
sets the type of format recognition
double * Xg
X coordinates of upper contour (N points)
Simple I/O functions class.
class with overloaded "new" operator initializing object with zeros
This file contains some smart I/O functions.
This file contains some smart functions, operators, macros for safe initializing end erasing the memo...