CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
panukl_prs.h
1/*********************************************************************/
2/* */
3/* Config files library - (C) TGG 2015 */
4/* */
5/*********************************************************************/
6/* Warszawa, 2015 */
7/*********************************************************************/
8/* */
9/* File: panukl_prs.h */
10/* */
11/* Author: T.Grabowski */
12/* */
13/* Contents - prs file data (pressure distribution) class */
14/* */
15/* */
16/*********************************************************************/
17/* */
18/* */
19
20#ifndef _PANUKL_PRS_H_
21#define _PANUKL_PRS_H_
22
23#include "iofun.h"
24
26
27class PRS_FILE : public IOFUN
28{
29 public:
30
31 char PAN_file[256];
32 char DAT_file[256];
33 char TXT_file[256];
34 char OUT_file[256];
35 char CZY_file[256];
36 char BLN_file[256];
37 char EPS_file[256];
38 char SDS_file[256];
39
40 int iEps;
41 int iInd;
42 int iMach;
44 int iNZ_Eps;
45 int iNum1;
46 int iNum2;
47 int iMeth;
48 int iAngle;
49 int iPitchX;
51
52 double dXEps;
53 double dYX1_Eps;
54 double dYX2_Eps;
55 double dZ1_Eps;
56 double dZ2_Eps;
57 double dXNum1;
58 double dXNum2;
59 double dMach;
60
61 char PRS_file[256];
62
63 PRS_FILE( void );
64 ~PRS_FILE( void );
65
67 void Clean( void );
69 int ReadPRS( const char *FileName );
71 int WritePRS( const char *Filename );
73 void DefNames( char *OUTdir );
75 void DefFile( char *cRob, char *cFile, const char *cExt );
76
77};
78
79#endif /*_PANUKL_PRS_H_*/
Simple I/O functions class.
Definition iofun.h:42
Parameters file for Press program (computation of pressure distribution)
Definition panukl_prs.h:28
void Clean(void)
cleans local variables
char SDS_file[256]
output file - the same as [.out] in SDSA format [.sdsa]
Definition panukl_prs.h:38
int iNXY_Eps
number of mesh nodes for velocity field calculation longwise X (iEps=2) or Y (iEps=1) axis
Definition panukl_prs.h:43
int iPitchX
flag to take X component of forces for pitching moment calculation(0/1)
Definition panukl_prs.h:49
double dYX1_Eps
Y coordinate of left bound (or X in case iEps=2) of plane where velocity field is calculated.
Definition panukl_prs.h:53
double dYX2_Eps
Y coordinate of right bound (or X in case iEps=2) of plane where velocity field is calculated.
Definition panukl_prs.h:54
int iMach
compressibility flag (0-none, 1-Prandtl-Galuert, 2-Karman-Tsien) - not active in case compressibility...
Definition panukl_prs.h:42
int iAngle
averaging flag (0/1)
Definition panukl_prs.h:48
int iInd
calculation of induced drag - flag (0,1)
Definition panukl_prs.h:41
double dZ1_Eps
Z coordinate of lower bound of plane where velocity field is calculated.
Definition panukl_prs.h:55
int iMeth
number of differentiation method (see PANUKL manual)
Definition panukl_prs.h:47
char CZY_file[256]
output file - spanwise loads distribution [.czy]
Definition panukl_prs.h:35
int iEps
calculation of velocity and downwash distribution - flag (0-none,1-YZ plane,2-XZ plane)
Definition panukl_prs.h:40
double dZ2_Eps
Z coordinate of upper bound of plane where velocity field is calculated.
Definition panukl_prs.h:56
double dXNum2
upper bound of range of X coordinate taken for global coefficients calculation
Definition panukl_prs.h:58
double dXEps
X coordinate (or Y coordinate in case iEps=2) of plane where velocity field is calculated.
Definition panukl_prs.h:52
char PAN_file[256]
input file - doublet distribution file [.PAN]
Definition panukl_prs.h:31
int iNum2
number of the last panel taken for global coefficients calculation
Definition panukl_prs.h:46
double dMach
Mach number to take into account compressibility effect - not active in case compressibility was set ...
Definition panukl_prs.h:59
char PRS_file[256]
name of current [.prs] file
Definition panukl_prs.h:61
int iNum1
number of the first panel taken for global coefficients calculation
Definition panukl_prs.h:45
char TXT_file[256]
output file - pressure distribution [.txt] and other results
Definition panukl_prs.h:33
int iOutFiles
flag to control output files names: 0 - automatic names derived from PRS_file, 1 - set by user
Definition panukl_prs.h:50
char DAT_file[256]
input file - mesh + wake data file [.DAT]
Definition panukl_prs.h:32
double dXNum1
lower bound of range of X coordinate taken for global coefficients calculation
Definition panukl_prs.h:57
char EPS_file[256]
output file - velocity and downwash distribution [.eps]
Definition panukl_prs.h:37
void DefNames(char *OUTdir)
set default names of output files
int WritePRS(const char *Filename)
writes the [.prs] file
int iNZ_Eps
number of mesh nodes for velocity field calculation longwise Z
Definition panukl_prs.h:44
void DefFile(char *cRob, char *cFile, const char *cExt)
set default name if it is empty
int ReadPRS(const char *FileName)
reads the [.prs] file
char OUT_file[256]
output file - aerodynamic forces and moments coefficients & other global results [....
Definition panukl_prs.h:34
char BLN_file[256]
output file - contour of cross section [.bln]
Definition panukl_prs.h:36
This file contains some smart I/O functions.