CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
panukl_acd.h
1/*********************************************************************/
2/* */
3/* Config files library - (C) TGG 2018 */
4/* */
5/*********************************************************************/
6/* Warszawa, 2018 */
7/*********************************************************************/
8/* */
9/* File: panukl_acd.h */
10/* */
11/* Author: J.Mieloszyk, modif. T.Grabowski */
12/* */
13/* Contents - acd file data (propeller info) class */
14/* */
15/* */
16/*********************************************************************/
17/* */
18/* */
19
20#ifndef _PANUKL_ACD_H_
21#define _PANUKL_ACD_H_
22
23#include <iostream>
24#include <fstream>
25#include <vector>
26
28
29struct PropDef
30{
31 int Id;
32 double X0;
33 double Y0;
34 double Z0;
35 double Xthrust;
36 double Ythrust;
37 double Zthrust;
38 double Omega;
39 double D;
40 double T;
41 double P;
42};
43
45
47{
48 public:
49
50 double ro;
51 double V;
52 std::vector <PropDef> Prop;
53
54 ACD_FILE( void );
55 ~ACD_FILE( void );
57 void Clean();
59 int Read( char *FileName );
61 int Write( char *Filename );
62
63};
64#endif /*_PANUKL_ACD_H_*/
Parameters file to add propellers info to 3D panel code.
Definition panukl_acd.h:47
void Clean()
cleans local variables
int Read(char *FileName)
reads parameters file
int Write(char *Filename)
writes parameters file
double V
airspeed [m/s]
Definition panukl_acd.h:51
double ro
air density [kg/m^3]
Definition panukl_acd.h:50
std::vector< PropDef > Prop
vector of propellers
Definition panukl_acd.h:52
Structure to define actuator (propeller disc)
Definition panukl_acd.h:30
double Zthrust
Z component of thrust direction.
Definition panukl_acd.h:37
double Y0
Y coordinate of disc center.
Definition panukl_acd.h:33
double P
shaft power of propeller [W]
Definition panukl_acd.h:41
double Ythrust
Y component of thrust direction.
Definition panukl_acd.h:36
int Id
identification number
Definition panukl_acd.h:31
double D
propeller diameter [m]
Definition panukl_acd.h:39
double T
thrust generated by propeller [N]
Definition panukl_acd.h:40
double Xthrust
X component of thrust direction (for definition vector normal to actuator disc plane,...
Definition panukl_acd.h:35
double X0
X coordinate of disc center.
Definition panukl_acd.h:32
double Z0
Z coordinate of disc center.
Definition panukl_acd.h:34
double Omega
propeller angular rate in RPM, positive direction of rotation (right hand rule) defined around the th...
Definition panukl_acd.h:38