CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
panukl_con.h
1/*********************************************************************/
2/* */
3/* Config files library - (C) TGG 2018 */
4/* */
5/*********************************************************************/
6/* Warszawa, 2018 */
7/*********************************************************************/
8/* */
9/* File: panukl_con.h */
10/* */
11/* Author: T.Grabowski */
12/* */
13/* Contents - con file data (grid connection) class */
14/* */
15/* */
16/*********************************************************************/
17/* */
18/* */
19
20#ifndef _PANUKL_CON_H_
21#define _PANUKL_CON_H_
22
23#include "iofun.h"
24
26
27class CON_FILE : public IOFUN
28{
29 public:
30
31 char DAT_file_1[256];
32 char DAT_file_2[256];
33
34 char DAT_file[256];
35
36 double dTrans1[3];
37 double dTrans2[3];
38 double dRot1[3];
39 double dRot2[3];
40 double dOrig1[3];
41 double dOrig2[3];
44
45 double dSref;
46 double dBref;
47 double dMACref;
48 double dX25ref;
49 double dZ25ref;
51
52 char CON_file[256];
53
54 CON_FILE( void );
55 ~CON_FILE( void );
56
58 void Clean( void );
60 int ReadCON( char *FileName );
62 int WriteCON( char *Filename );
63};
64
65#endif /*_PANUKL_CON_H_*/
Parameters file for Connect program - grid connection.
Definition panukl_con.h:28
double dZ25ref
Z coordinate of reference origin for moment calculation defined by user.
Definition panukl_con.h:49
int iRotFlag2
2nd grid rotation origin option (0 user defined, 1 (0,0,0), 2 1/4 of MAC)
Definition panukl_con.h:43
double dRot2[3]
rotation of the 2nd grid (3 angles) [deg]
Definition panukl_con.h:39
void Clean(void)
cleans local variables
double dSref
reference area defined by user
Definition panukl_con.h:45
char DAT_file_1[256]
1st data (mesh+wake) file [.DAT] - input
Definition panukl_con.h:31
double dRot1[3]
rotation of the 1st grid (3 angles) [deg]
Definition panukl_con.h:38
int ReadCON(char *FileName)
reads parameters [.con] file
char DAT_file[256]
connected data (mesh+wake) file [.DAT] - output
Definition panukl_con.h:34
char DAT_file_2[256]
2nd data (mesh+wake) file [.DAT] - input
Definition panukl_con.h:32
char CON_file[256]
name of current [.con] file
Definition panukl_con.h:52
double dTrans1[3]
translation of the 1st grid (3 coordinates)
Definition panukl_con.h:36
double dOrig1[3]
origin of rotation of the 1st grid (3 coordinates)
Definition panukl_con.h:40
double dX25ref
X coordinate of reference origin for moment calculation defined by user.
Definition panukl_con.h:48
double dBref
reference wingspan defined by user
Definition panukl_con.h:46
int iRotFlag1
1st grid rotation origin option (0 user defined, 1 (0,0,0), 2 1/4 of MAC)
Definition panukl_con.h:42
int iFlagRef
reference values option (0 user defined, 1 master, 2 slave)
Definition panukl_con.h:50
double dMACref
mean aerodynamic chord by user
Definition panukl_con.h:47
double dOrig2[3]
origin of rotation of the 2nd grid (3 coordinates)
Definition panukl_con.h:41
double dTrans2[3]
translation of the 2nd grid (3 coordinates)
Definition panukl_con.h:37
int WriteCON(char *Filename)
writes parameters [.con] file
Simple I/O functions class.
Definition iofun.h:42
This file contains some smart I/O functions.