CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
sdsa_file.h
1/*********************************************************************/
2/* */
3/* Config files library - (C) TGG 2015 */
4/* */
5/*********************************************************************/
6/* Warszawa, 2018 */
7/*********************************************************************/
8/* */
9/* File: sdsa_file.h */
10/* */
11/* Author: T.Grabowski */
12/* */
13/* Contents - sdsa file (simple output file) class declaration */
14/* */
15/* */
16/*********************************************************************/
17/* */
18/* */
19
20#ifndef _SDSA_FILE_H_
21#define _SDSA_FILE_H_
22
23#include "iofun.h"
24
26
27class SDSA_FILE : public IOFUN
28{
29 int file_flag;
30 char file_name[256];
31
32 public:
33
34 double S;
35 double MAC;
36 double B;
37 double Swet;
38 double X;
39 double Z;
40 double Alfa;
41 double Beta;
42 double Mach;
43 double P;
44 double Q;
45 double R;
46 double Cx;
47 double Cy;
48 double Cz;
49 double Cl;
50 double Cm;
51 double Cn;
52 double Cxs;
53 double Cys;
54 double Czs;
55 double Cls;
56 double Cms;
57 double Cns;
58 double Cxi;
59 double Czi;
60
61 SDSA_FILE( void );
62 ~SDSA_FILE( void );
63
65 void Clean( void );
67 void SetName( const char *FileName );
69 int Read( const char *FileName );
71 int Read( void );
73 int Write( const char *FileName );
75 int Write( void );
76};
77
78#endif /*_SDSA_FILE_H_*/
Simple I/O functions class.
Definition iofun.h:42
Simple output file of Press program: reference values, aerodynamic coefficients, flow parameters.
Definition sdsa_file.h:28
double B
reference wingspan
Definition sdsa_file.h:36
double R
yaw rate [rad/s]
Definition sdsa_file.h:45
double Mach
Mach number.
Definition sdsa_file.h:42
double Cxi
induced drag coefficient
Definition sdsa_file.h:58
int Read(void)
reads the [.sdsa] file defined by SetName function
Definition sdsa_file.cpp:86
double S
reference area
Definition sdsa_file.h:34
double Z
Z coordinate fo the origin for moment components.
Definition sdsa_file.h:39
double Cls
rolling moment coefficient (stability axis system)
Definition sdsa_file.h:55
void Clean(void)
cleans local variables
Definition sdsa_file.cpp:26
double Cxs
drag coefficient (stability axis system - pressure component)
Definition sdsa_file.h:52
double Cx
drag coefficient (body axis system - pressure component)
Definition sdsa_file.h:46
double Cl
rolling moment coefficient (body axis system)
Definition sdsa_file.h:49
double Swet
wetted area
Definition sdsa_file.h:37
double Czi
lift coefficients that relates to induced drag
Definition sdsa_file.h:59
double Cys
sideforce coefficient (stability axis system)
Definition sdsa_file.h:53
double X
X coordinate fo the origin for moment components.
Definition sdsa_file.h:38
double Cns
yawing moment coefficient (stability axis system)
Definition sdsa_file.h:57
double Beta
sideslip angle [deg]
Definition sdsa_file.h:41
double Cz
lift coefficient (body axis system)
Definition sdsa_file.h:48
double Cn
yawing moment coefficient (body axis system)
Definition sdsa_file.h:51
void SetName(const char *FileName)
set pathname for the [.sdsa] file
Definition sdsa_file.cpp:39
double P
roll rate [rad/s]
Definition sdsa_file.h:43
double Cms
pitching moment coefficient (stability axis system)
Definition sdsa_file.h:56
double MAC
mean aerodynamic chord
Definition sdsa_file.h:35
double Q
pitch rate [rad/s]
Definition sdsa_file.h:44
double Cm
pitching moment coefficient (body axis system)
Definition sdsa_file.h:50
double Cy
sideforce coefficient (body axis system)
Definition sdsa_file.h:47
double Czs
lift coefficient (stability axis system)
Definition sdsa_file.h:54
double Alfa
angle of attack [deg]
Definition sdsa_file.h:40
int Write(void)
writes the [.sdsa] file defined by SetName function
This file contains some smart I/O functions.