CONFIG LIB 1.5
Configuration Files Library (by TGG 2020)
Loading...
Searching...
No Matches
ms2data_struct.h File Reference

This file contains ms2 (geometry info) data structure. More...

#include <string>
#include <vector>

Go to the source code of this file.

Classes

struct  MS2_Ref
 Reference values. More...
 
struct  MS2_Profile
 Profile definition. More...
 
struct  MS2_Section
 definition of section (used in "Section Wing") More...
 
struct  MS2_SecWing
 wing build from sections ( WING_TYPE_SECTIONS ) More...
 
struct  MS2_ModWingModule
 module used for "module wing" definition More...
 
struct  MS2_ModWing
 wing defined by modules More...
 
struct  MS2_NacelleWing
 data of nacelle type of wing More...
 
struct  MS2_Wing
 wing definition More...
 
struct  MS2_General
 general data for ms2 structure (geometry) More...
 
struct  MS2_SuperEllipse
 data for module of super ellipse type More...
 
struct  MS2_FusAirfoil
 data of airfoil taken to fuselage geometry generating More...
 
struct  MS2_FusCurve
 fuselage outline curve More...
 
struct  MS2_Fuselage_Params
 fuselage parameters More...
 
struct  MS2_Fuselage_File
 fuselage data file More...
 
struct  MS2_Fuselage
 fuselage definition More...
 
struct  MS2_Conn
 connection More...
 
struct  MS2_Wake
 wake More...
 
struct  MS2_Data_Struct
 MS2 data structure definition. More...
 

Enumerations

enum  MS2SymmOpt { SYM_OPT_SYM = 0 , SYM_OPT_RIGHT = 1 , SYM_OPT_LEFT = -1 }
 symmetry flag More...
 
enum  MS2OutOpt { OUT_OPT_NODES = 0 , OUT_OPT_PANELS = 1 }
 output type flag More...
 
enum  MS2WingSurf { WS_ALL = 0 , WS_TOP , WS_BOTTOM }
 section wing surface side More...
 
enum  MS2DivType {
  DT_LINEAR = 0 , DT_COSINE , DT_USER , DT_PROFILE ,
  DT_AUTO
}
 section wing type chord division More...
 
enum  MS2SpanDivType { SDT_LINEAR = 0 , SDT_COSINE , SDT_COSINE_EXT , SDT_COSINE_INT }
 section wing type chord division More...
 
enum  MS2ConnType { CON_H = 0 , CON_V , CON_P }
 connection type More...
 
enum  MS2WakeType { WAKE_H = 0 , WAKE_V }
 wake type More...
 
enum  MS2AirfoilSide { AS_UP = 0 , AS_DOWN }
 airfoil side for modules definition (see MS2_FusAirfoil::Side) More...
 
enum  MS2FusCvrType { ELLIPSE = 0 , AIRFOIL , CONSTANT }
 fuselage build from parameters curve's type More...
 
enum  MS2AirfoilSource { AIRFOIL_FILE = 0 , AIRFOIL_NACA , AIRFOIL_DATA }
 airfoil source More...
 
enum  MS2FusCvr {
  CRV_SPINE = 0 , CRV_UP_CONT , CRV_SIDE_CONT , CRV_DOWN_CONT ,
  CRV_CV_FACT_UP , CRV_CV_FACT_DOWN
}
 type of fuselage outline curve More...
 
enum  MS2FusEllipseType { ELLIPSE_NORMAL = 0 , ELLIPSE_SPINE }
 Fuselage curve (super ellipse ) type. More...
 
enum  MS2FusType { FT_FILE = 0 , FT_PARAMS }
 fuselage type More...
 
enum  MS2FusSecDivType { FDT_DATA = 0 , FDT_ARC , FDT_ANGLE }
 type of fuselage section division More...
 
enum  MS2WingType { WING_TYPE_SECTIONS = 0 , WING_TYPE_MODULES , WING_TYPE_NACELLE }
 type of wing More...
 
enum  MS2WingDivSource { WING_DIV_MASTER = 1 , WING_DIV_SLAVE = 0 , WING_DIV_INDEPENDENT = -1 }
 wing chordwise division source used in wing in case of intersection with fuselage (see MS2_Wing::DivSource) More...
 
enum  MS2WingRibType { WING_RIB_OPEN = 0 , WING_RIB_EXTERNAL , WING_RIB_BOTH , WING_RIB_INTERNAL }
 closing ribs type More...
 
enum  MS2ControlSurfaceDef { CTRL_DEF_RELATIVE = 0 , CTRL_DEF_UNIT }
 the method of defining the hinge position of the control surface More...
 
enum  MS2WingModuleType { WING_MOD_TYPE_ROOT = 0 , WING_MOD_TYPE_EQUI_LINE , WING_MOD_TYPE_LINE , WING_MOD_TYPE_ARC }
 types of modules used in module wing creation More...
 
enum  MS2WingModulePanConc { WING_MOD_PAN_CONC_LEFT = 0 , WING_MOD_PAN_CONC_CENTER , WING_MOD_PAN_CONC_RIGHT }
 module wing's module panels distribution More...
 
enum  MS2SwirlType { SWIRL_UP = 0 , SWIRL_DOWN }
 nacelle swirl direction More...
 
enum  MS2SwirlRange { FULL_NACELLE = 0 , HALF_NACELLE }
 nacelle swirl range More...
 

Detailed Description

This file contains ms2 (geometry info) data structure.

Definition in file ms2data_struct.h.

Enumeration Type Documentation

◆ MS2AirfoilSide

airfoil side for modules definition (see MS2_FusAirfoil::Side)

Enumerator
AS_UP 

upper part

AS_DOWN 

lower part

Definition at line 80 of file ms2data_struct.h.

81{
82 AS_UP = 0,
83 AS_DOWN
84};
@ AS_UP
upper part
@ AS_DOWN
lower part

◆ MS2AirfoilSource

airfoil source

Enumerator
AIRFOIL_FILE 

airfoil geometry defined in the separate file

AIRFOIL_NACA 

airfoil geometry computed for 4- and 5-digit NACA profiles

AIRFOIL_DATA 

airfoil geometry embeded in MS2 file

Definition at line 93 of file ms2data_struct.h.

94{
95 AIRFOIL_FILE = 0,
98};
@ AIRFOIL_DATA
airfoil geometry embeded in MS2 file
@ AIRFOIL_NACA
airfoil geometry computed for 4- and 5-digit NACA profiles
@ AIRFOIL_FILE
airfoil geometry defined in the separate file

◆ MS2ConnType

connection type

Enumerator
CON_H 

horizontal (e.g. T tail)

CON_V 

vertical (e.g. winglets)

CON_P 

parallel

Definition at line 67 of file ms2data_struct.h.

68{
69 CON_H = 0,
70 CON_V,
71 CON_P
72};
@ CON_H
horizontal (e.g. T tail)
@ CON_V
vertical (e.g. winglets)
@ CON_P
parallel

◆ MS2ControlSurfaceDef

the method of defining the hinge position of the control surface

Enumerator
CTRL_DEF_RELATIVE 

relative - the position is defined in relation to the chord length
(measured from the airfoil nose in X case or from the chord line in Z case)

CTRL_DEF_UNIT 

positon defined in units used to whole geometry definition

Definition at line 151 of file ms2data_struct.h.

152{
155};
@ CTRL_DEF_UNIT
positon defined in units used to whole geometry definition
@ CTRL_DEF_RELATIVE
relative - the position is defined in relation to the chord length (measured from the airfoil nose ...

◆ MS2DivType

enum MS2DivType

section wing type chord division

Enumerator
DT_LINEAR 

linear (constant chordwise length)

DT_COSINE 

constant chordwise angle projection

DT_USER 

user defined

DT_PROFILE 

based on airfoil data

DT_AUTO 

"unknown" in MS2Edit, in SLAVE wing case (see MS2WingDivSource)

Definition at line 50 of file ms2data_struct.h.

51{
52 DT_LINEAR = 0,
53 DT_COSINE,
54 DT_USER,
56 DT_AUTO
57};
@ DT_PROFILE
based on airfoil data
@ DT_USER
user defined
@ DT_AUTO
"unknown" in MS2Edit, in SLAVE wing case (see MS2WingDivSource)
@ DT_LINEAR
linear (constant chordwise length)
@ DT_COSINE
constant chordwise angle projection

◆ MS2FusCvr

enum MS2FusCvr

type of fuselage outline curve

Definition at line 100 of file ms2data_struct.h.

101{
102 CRV_SPINE = 0,
103 CRV_UP_CONT,
104 CRV_SIDE_CONT,
105 CRV_DOWN_CONT,
106 CRV_CV_FACT_UP,
107 CRV_CV_FACT_DOWN
108};

◆ MS2FusCvrType

fuselage build from parameters curve's type

Definition at line 86 of file ms2data_struct.h.

87{
88 ELLIPSE = 0,
89 AIRFOIL,
90 CONSTANT
91};
AIRFOIL class to manipulate the airfoil geometry or it can read geometry data from file (5 commonly ...
Definition airfoil.h:41

◆ MS2FusEllipseType

Fuselage curve (super ellipse ) type.

Definition at line 110 of file ms2data_struct.h.

111{
112 ELLIPSE_NORMAL = 0,
113 ELLIPSE_SPINE,
114};

◆ MS2FusSecDivType

type of fuselage section division

Enumerator
FDT_DATA 

coordinates defined by user (FT_FILE) or by parameters (FT_PARAMS)

FDT_ARC 

coordinates calculated using constant arc length rule

FDT_ANGLE 

coordinates calculated using constant angle rule

Definition at line 122 of file ms2data_struct.h.

123{
124 FDT_DATA = 0,
125 FDT_ARC,
126 FDT_ANGLE
127};
@ FDT_DATA
coordinates defined by user (FT_FILE) or by parameters (FT_PARAMS)
@ FDT_ARC
coordinates calculated using constant arc length rule
@ FDT_ANGLE
coordinates calculated using constant angle rule

◆ MS2FusType

enum MS2FusType

fuselage type

Enumerator
FT_FILE 

from *.f file

FT_PARAMS 

built from parameters

Definition at line 116 of file ms2data_struct.h.

117{
118 FT_FILE = 0,
119 FT_PARAMS
120};
@ FT_FILE
from *.f file
@ FT_PARAMS
built from parameters

◆ MS2OutOpt

enum MS2OutOpt

output type flag

Enumerator
OUT_OPT_NODES 

mesh written as nodes

OUT_OPT_PANELS 

mesh written as panels

Definition at line 37 of file ms2data_struct.h.

38{
39 OUT_OPT_NODES = 0,
41};
@ OUT_OPT_NODES
mesh written as nodes
@ OUT_OPT_PANELS
mesh written as panels

◆ MS2SpanDivType

section wing type chord division

Enumerator
SDT_LINEAR 

linear (constant spanwise length)

SDT_COSINE 

constant spanwise angle projection (0,pi)

SDT_COSINE_EXT 

constant spanwise angle projection (pi/2, pi)

SDT_COSINE_INT 

constant spanwise angle projection (0, pi/2)

Definition at line 59 of file ms2data_struct.h.

60{
61 SDT_LINEAR = 0,
65};
@ SDT_COSINE_EXT
constant spanwise angle projection (pi/2, pi)
@ SDT_LINEAR
linear (constant spanwise length)
@ SDT_COSINE_INT
constant spanwise angle projection (0, pi/2)
@ SDT_COSINE
constant spanwise angle projection (0,pi)

◆ MS2SwirlRange

nacelle swirl range

Definition at line 179 of file ms2data_struct.h.

180{
181 FULL_NACELLE = 0,
182 HALF_NACELLE
183};

◆ MS2SwirlType

nacelle swirl direction

Definition at line 173 of file ms2data_struct.h.

174{
175 SWIRL_UP = 0,
176 SWIRL_DOWN
177};

◆ MS2SymmOpt

enum MS2SymmOpt

symmetry flag

Enumerator
SYM_OPT_SYM 

symmetrical object

SYM_OPT_RIGHT 

right half

SYM_OPT_LEFT 

left half

Definition at line 30 of file ms2data_struct.h.

31{
32 SYM_OPT_SYM = 0,
33 SYM_OPT_RIGHT = 1,
34 SYM_OPT_LEFT = -1
35};
@ SYM_OPT_SYM
symmetrical object
@ SYM_OPT_LEFT
left half
@ SYM_OPT_RIGHT
right half

◆ MS2WakeType

wake type

Enumerator
WAKE_H 

horizontal (e.g. wing, horzontal tail)

WAKE_V 

vertical (e.g. vertical stabilizer)

Definition at line 74 of file ms2data_struct.h.

75{
76 WAKE_H = 0,
77 WAKE_V
78};
@ WAKE_H
horizontal (e.g. wing, horzontal tail)
@ WAKE_V
vertical (e.g. vertical stabilizer)

◆ MS2WingDivSource

wing chordwise division source used in wing in case of intersection with fuselage (see MS2_Wing::DivSource)

Enumerator
WING_DIV_MASTER 

wing enforces fuselage's chord division

WING_DIV_SLAVE 

fuselage enforces wing's chord division

WING_DIV_INDEPENDENT 

wing has its own division and doesn't enforce division to fuselage

Definition at line 136 of file ms2data_struct.h.

137{
138 WING_DIV_MASTER = 1,
139 WING_DIV_SLAVE = 0,
141};
@ WING_DIV_MASTER
wing enforces fuselage's chord division
@ WING_DIV_INDEPENDENT
wing has its own division and doesn't enforce division to fuselage
@ WING_DIV_SLAVE
fuselage enforces wing's chord division

◆ MS2WingModulePanConc

module wing's module panels distribution

Definition at line 165 of file ms2data_struct.h.

166{
167 WING_MOD_PAN_CONC_LEFT = 0,
168 WING_MOD_PAN_CONC_CENTER,
169 WING_MOD_PAN_CONC_RIGHT
170};

◆ MS2WingModuleType

types of modules used in module wing creation

Definition at line 157 of file ms2data_struct.h.

158{
159 WING_MOD_TYPE_ROOT = 0,
160 WING_MOD_TYPE_EQUI_LINE,
161 WING_MOD_TYPE_LINE,
162 WING_MOD_TYPE_ARC
163};

◆ MS2WingRibType

closing ribs type

Enumerator
WING_RIB_OPEN 

no closing ribs (e.g. wing is open and connected with winglets)

WING_RIB_EXTERNAL 

only external rib (typical situataion external rib on wing tip)

WING_RIB_BOTH 

both ribs are present (e.g. in case of slotted flap)

WING_RIB_INTERNAL 

only internal rib

Definition at line 143 of file ms2data_struct.h.

144{
145 WING_RIB_OPEN = 0,
149};
@ WING_RIB_BOTH
both ribs are present (e.g. in case of slotted flap)
@ WING_RIB_OPEN
no closing ribs (e.g. wing is open and connected with winglets)
@ WING_RIB_EXTERNAL
only external rib (typical situataion external rib on wing tip)
@ WING_RIB_INTERNAL
only internal rib

◆ MS2WingSurf

section wing surface side

Enumerator
WS_ALL 

both surfaces (up and bottom)

WS_TOP 

upper surface (up)

WS_BOTTOM 

lower surface (bottom)

Definition at line 43 of file ms2data_struct.h.

44{
45 WS_ALL = 0,
46 WS_TOP,
48};
@ WS_TOP
upper surface (up)
@ WS_ALL
both surfaces (up and bottom)
@ WS_BOTTOM
lower surface (bottom)

◆ MS2WingType

type of wing

Enumerator
WING_TYPE_SECTIONS 

wing defined by sections

WING_TYPE_MODULES 

wing defined by modules

WING_TYPE_NACELLE 

jet engine nacelle

Definition at line 129 of file ms2data_struct.h.

130{
134};
@ WING_TYPE_MODULES
wing defined by modules
@ WING_TYPE_SECTIONS
wing defined by sections
@ WING_TYPE_NACELLE
jet engine nacelle