1 /**********************************************************************
2 
3  FILENAME:     uiuc_aircraft.h
4 
5 ----------------------------------------------------------------------
6 
7  DESCRIPTION:  creates maps for all keywords and variables expected in
8                aircraft input file, includes all parameters that
9                define the aircraft for use in the uiuc aircraft models.
10 
11 ----------------------------------------------------------------------
12 
13  STATUS:       alpha version
14 
15 ----------------------------------------------------------------------
16 
17  REFERENCES:
18 
19 ----------------------------------------------------------------------
20 
21  HISTORY:      01/26/2000   initial release
22                02/10/2000   (JS) changed aeroData to aeroParts (etc.)
23                             added Twin Otter 2.5 equation variables
24                             added Dx_cg (etc.) to init & record maps
25                             added controlsMixer to top level map
26                02/18/2000   (JS) added variables needed for 1D file
27                             reading of CL and CD as functions of alpha
28                02/29/2000   (JS) added variables needed for 2D file
29                             reading of CL, CD, and Cm as functions of
30                             alpha and delta_e; of CY and Cn as function
31                             of alpha and delta_r; and of Cl and Cn as
32                             functions of alpha and delta_a
33                03/02/2000   (JS) added record features for 1D and 2D
34                             interpolations
35                03/29/2000   (JS) added Cmfa interpolation functions
36                             and Weight; added misc map
37                04/01/2000   (JS) added throttle, longitudinal, lateral,
38                             and rudder inputs to record map
39                03/09/2001   (DPM) added support for gear
40                06/18/2001   (RD) added variables needed for aileron,
41                             rudder, and throttle_pct input files.
42                             Added Alpha, Beta, U_body, V_body, and
43                             W_body to init map.  Added variables
44                             needed to ignore elevator, aileron, and
45                             rudder pilot inputs.  Added CZ as a function
46                             of alpha, CZfa.  Added twinotter to engine
47                             group.
48                07/05/2001   (RD) added pilot_elev_no_check, pilot_ail_no
49                             _check, and pilot_rud_no_check variables.
50                             This allows pilot to fly aircraft after the
51                             input files have been used.
52                08/27/2001   (RD) Added xxx_init_true and xxx_init for
53                             P_body, Q_body, R_body, Phi, Theta, Psi,
54                             U_body, V_body, and W_body to help in
55                             starting the A/C at an initial condition.
56                10/25/2001   (RD) Added new variables needed for the non-
57                             linear Twin Otter model at zero flaps
58                             (Cxfxxf0).
59                11/12/2001   (RD) Added variables needed for Twin Otter
60                             non-linear model with flaps (Cxfxxf).
61                             Zero flap variables removed.
62                01/11/2002   (AP) Added keywords for bootTime
63                02/13/2002   (RD) Added variables so linear aero model
64                             values can be recorded
65                02/18/2002   (RD) Added variables necessary to use the
66                             uiuc_3Dinterp_quick() function.  Takes
67                             advantage of data in a "nice" form (data
68                             that are in a rectangular matrix).
69                04/21/2002   (MSS) Added new variables for apparent mass effects
70                             and options for computing *_2U coefficient
71                             scale factors.
72                08/29/2002   (MSS) Added simpleSingleModel
73                09/18/2002   (MSS) Added downwash options
74                03/03/2003   (RD) Changed flap_cmd_deg to flap_cmd (rad)
75                03/16/2003   (RD) Added trigger variables
76                08/20/2003   (RD) Removed old_flap_routine.  Changed spoiler
77                             variables to match flap convention.  Changed
78                             flap_pos_pct to flap_pos_norm
79                10/31/2003   (RD) Added variables and keywords for pah and alh
80                             autopilots
81                11/04/2003   (RD) Added variables and keywords for rah and hh
82                             autopilots
83 
84 ----------------------------------------------------------------------
85 
86  AUTHOR(S):    Bipin Sehgal       <bsehgal@uiuc.edu>
87                Jeff Scott         <jscott@mail.com>
88                Robert Deters      <rdeters@uiuc.edu>
89                David Megginson    <david@megginson.com>
90                Ann Peedikayil          <peedikay@uiuc.edu>
91 
92 ----------------------------------------------------------------------
93 
94  VARIABLES:
95 
96 ----------------------------------------------------------------------
97 
98  INPUTS:       none
99 
100 ----------------------------------------------------------------------
101 
102  OUTPUTS:      none
103 
104 ----------------------------------------------------------------------
105 
106  CALLED BY:    uiuc_1DdataFileReader.cpp
107                uiuc_2DdataFileReader.cpp
108                uiuc_aerodeflections.cpp
109                uiuc_coefficients.cpp
110                uiuc_engine.cpp
111                uiuc_initializemaps.cpp
112                uiuc_menu.cpp
113                uiuc_recorder.cpp
114 
115 ----------------------------------------------------------------------
116 
117  CALLS TO:     none
118 
119 ----------------------------------------------------------------------
120 
121  COPYRIGHT:    (C) 2000 by Michael Selig
122 
123  This program is free software; you can redistribute it and/or
124  modify it under the terms of the GNU General Public License
125  as published by the Free Software Foundation.
126 
127  This program is distributed in the hope that it will be useful,
128  but WITHOUT ANY WARRANTY; without even the implied warranty of
129  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
130  GNU General Public License for more details.
131 
132  You should have received a copy of the GNU General Public License
133  along with this program; if not, write to the Free Software
134  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
135 
136 **********************************************************************/
137 
138 
139 #ifndef _AIRCRAFT_H_
140 #define _AIRCRAFT_H_
141 
142 #include <simgear/compiler.h>
143 
144 #include <FDM/LaRCsim/ls_types.h>
145 
146 #include <map>
147 #include <fstream>
148 #include <cmath>
149 
150 #include "uiuc_parsefile.h"
151 #include "uiuc_flapdata.h"
152 
153 typedef ::stack :: iterator LIST;
154 
155 /* Add more keywords here if required*/
156 enum {init_flag = 1000, geometry_flag, controlSurface_flag, controlsMixer_flag,
157       mass_flag, engine_flag, CD_flag, CL_flag, Cm_flag, CY_flag, Cl_flag,
158       Cn_flag, gear_flag, ice_flag, record_flag, misc_flag, fog_flag};
159 
160 // init ======= Initial values for equation of motion
161 // added to uiuc_map_init.cpp
162 enum {Dx_pilot_flag = 2000,
163       Dy_pilot_flag,
164       Dz_pilot_flag,
165       Dx_cg_flag,
166       Dy_cg_flag,
167       Dz_cg_flag,
168       Altitude_flag,
169       V_north_flag,
170       V_east_flag,
171       V_down_flag,
172       P_body_flag,
173       Q_body_flag,
174       R_body_flag,
175       Phi_flag,
176       Theta_flag,
177       Psi_flag,
178       Long_trim_flag,
179       recordRate_flag,
180       recordStartTime_flag,
181       use_V_rel_wind_2U_flag,
182       nondim_rate_V_rel_wind_flag,
183       use_abs_U_body_2U_flag,
184       dyn_on_speed_flag,
185       dyn_on_speed_zero_flag,
186       use_dyn_on_speed_curve1_flag,
187       use_Alpha_dot_on_speed_flag,
188       use_gamma_horiz_on_speed_flag,
189       gamma_horiz_on_speed,
190       downwashMode_flag,
191       downwashCoef_flag,
192       Alpha_flag,
193       Beta_flag,
194       U_body_flag,
195       V_body_flag,
196       W_body_flag,
197       ignore_unknown_keywords_flag,
198       trim_case_2_flag,
199       use_uiuc_network_flag,
200       icing_demo_flag,
201       outside_control_flag};
202 
203 // geometry === Aircraft-specific geometric quantities
204 // added to uiuc_map_geometry.cpp
205 enum {bw_flag = 3000, cbar_flag, Sw_flag, ih_flag, bh_flag, ch_flag, Sh_flag};
206 
207 // controlSurface = Control surface deflections and properties
208 // added to uiuc_map_controlSurface.cpp
209 enum {de_flag = 4000, da_flag, dr_flag,
210       set_Long_trim_flag, set_Long_trim_deg_flag, zero_Long_trim_flag,
211       elevator_step_flag, elevator_singlet_flag, elevator_doublet_flag,
212       elevator_input_flag, aileron_input_flag, rudder_input_flag, flap_pos_input_flag,
213       pilot_elev_no_flag, pilot_ail_no_flag, pilot_rud_no_flag,
214       flap_max_flag, flap_rate_flag, use_flaps_flag,
215       spoiler_max_flag, spoiler_rate_flag, use_spoilers_flag,
216       aileron_sas_KP_flag,
217       aileron_sas_max_flag,
218       aileron_stick_gain_flag,
219       elevator_sas_KQ_flag,
220       elevator_sas_max_flag,
221       elevator_sas_min_flag,
222       elevator_stick_gain_flag,
223       rudder_sas_KR_flag,
224       rudder_sas_max_flag,
225       rudder_stick_gain_flag,
226       use_elevator_sas_type1_flag,
227       use_aileron_sas_type1_flag,
228       use_rudder_sas_type1_flag,
229       ap_pah_flag, ap_alh_flag, ap_Theta_ref_flag, ap_alt_ref_flag,
230       ap_rah_flag, ap_Phi_ref_flag, ap_hh_flag, ap_Psi_ref_flag};
231 
232 // controlsMixer == Controls mixer
233 enum {nomix_flag = 5000};
234 
235 //mass ======== Aircraft-specific mass properties
236 // added to uiuc_map_mass.cpp
237 enum {Weight_flag = 6000,
238       Mass_flag, I_xx_flag, I_yy_flag, I_zz_flag, I_xz_flag,
239       Mass_appMass_ratio_flag, I_xx_appMass_ratio_flag,
240       I_yy_appMass_ratio_flag, I_zz_appMass_ratio_flag,
241       Mass_appMass_flag,       I_xx_appMass_flag,
242       I_yy_appMass_flag,       I_zz_appMass_flag};
243 
244 // engine ===== Propulsion data
245 // added to uiuc_map_engine.cpp
246 enum {simpleSingle_flag = 7000, simpleSingleModel_flag,
247       c172_flag, cherokee_flag, gyroForce_Q_body_flag, gyroForce_R_body_flag,
248       omega_flag, omegaRPM_flag, polarInertia_flag,
249       slipstream_effects_flag, propDia_flag,
250       eta_q_Cm_q_flag,
251       eta_q_Cm_adot_flag,
252       eta_q_Cmfade_flag,
253       eta_q_Cm_de_flag,
254       eta_q_Cl_beta_flag,
255       eta_q_Cl_p_flag,
256       eta_q_Cl_r_flag,
257       eta_q_Cl_dr_flag,
258       eta_q_CY_beta_flag,
259       eta_q_CY_p_flag,
260       eta_q_CY_r_flag,
261       eta_q_CY_dr_flag,
262       eta_q_Cn_beta_flag,
263       eta_q_Cn_p_flag,
264       eta_q_Cn_r_flag,
265       eta_q_Cn_dr_flag,
266       Throttle_pct_input_flag, forcemom_flag, Xp_input_flag, Zp_input_flag, Mp_input_flag};
267 
268 // CD ========= Aerodynamic x-force quantities (longitudinal)
269 // added to uiuc_map_CD.cpp
270 enum {CDo_flag = 8000, CDK_flag, CLK_flag, CD_a_flag, CD_adot_flag, CD_q_flag, CD_ih_flag,
271       CD_de_flag, CD_dr_flag, CD_da_flag, CD_beta_flag,
272       CD_df_flag,
273       CD_ds_flag,
274       CD_dg_flag,
275       CDfa_flag, CDfCL_flag, CDfade_flag, CDfdf_flag, CDfadf_flag,
276       CXo_flag, CXK_flag, CX_a_flag, CX_a2_flag, CX_a3_flag, CX_adot_flag,
277       CX_q_flag, CX_de_flag, CX_dr_flag, CX_df_flag, CX_adf_flag,
278       CXfabetaf_flag, CXfadef_flag, CXfaqf_flag};
279 
280 // CL ========= Aerodynamic z-force quantities (longitudinal)
281 // added to uiuc_map_CL.cpp
282 enum {CLo_flag = 9000, CL_a_flag, CL_adot_flag, CL_q_flag, CL_ih_flag, CL_de_flag,
283       CL_df_flag,
284       CL_ds_flag,
285       CL_dg_flag,
286       CLfa_flag, CLfade_flag, CLfdf_flag, CLfadf_flag,
287       CZo_flag, CZ_a_flag, CZ_a2_flag, CZ_a3_flag, CZ_adot_flag,
288       CZ_q_flag, CZ_de_flag, CZ_deb2_flag, CZ_df_flag, CZ_adf_flag,
289       CZfa_flag, CZfabetaf_flag, CZfadef_flag, CZfaqf_flag};
290 
291 // Cm ========= Aerodynamic m-moment quantities (longitudinal)
292 // added to uiuc_map_Cm.cpp
293 enum {Cmo_flag = 10000, Cm_a_flag, Cm_a2_flag, Cm_adot_flag, Cm_q_flag,
294       Cm_ih_flag, Cm_de_flag, Cm_b2_flag, Cm_r_flag,
295       Cm_df_flag,
296       Cm_ds_flag,
297       Cm_dg_flag,
298       Cmfa_flag, Cmfade_flag, Cmfdf_flag, Cmfadf_flag,
299       Cmfabetaf_flag, Cmfadef_flag, Cmfaqf_flag};
300 
301 // CY ========= Aerodynamic y-force quantities (lateral)
302 // added to uiuc_map_CY.cpp
303 enum {CYo_flag = 11000, CY_beta_flag, CY_p_flag, CY_r_flag, CY_da_flag,
304       CY_dr_flag, CY_dra_flag, CY_bdot_flag, CYfada_flag, CYfbetadr_flag,
305       CYfabetaf_flag, CYfadaf_flag, CYfadrf_flag, CYfapf_flag, CYfarf_flag};
306 
307 // Cl ========= Aerodynamic l-moment quantities (lateral)
308 // added to uiuc_map_Cl.cpp
309 enum {Clo_flag = 12000, Cl_beta_flag, Cl_p_flag, Cl_r_flag, Cl_da_flag,
310       Cl_dr_flag, Cl_daa_flag, Clfada_flag, Clfbetadr_flag, Clfabetaf_flag,
311       Clfadaf_flag, Clfadrf_flag, Clfapf_flag, Clfarf_flag};
312 
313 // Cn ========= Aerodynamic n-moment quantities (lateral)
314 // added to uiuc_map_Cn.cpp
315 enum {Cno_flag = 13000, Cn_beta_flag, Cn_p_flag, Cn_r_flag, Cn_da_flag,
316       Cn_dr_flag, Cn_q_flag, Cn_b3_flag, Cnfada_flag, Cnfbetadr_flag,
317       Cnfabetaf_flag, Cnfadaf_flag, Cnfadrf_flag, Cnfapf_flag, Cnfarf_flag};
318 
319 // gear ======= Landing gear model quantities
320 // added to uiuc_map_gear.cpp
321 enum {Dx_gear_flag = 14000, Dy_gear_flag, Dz_gear_flag, cgear_flag,
322       kgear_flag, muGear_flag, strutLength_flag,
323       gear_max_flag, gear_rate_flag, use_gear_flag};
324 
325 // ice ======== Ice model quantities
326 // added to uiuc_map_ice.cpp
327 enum {iceTime_flag = 15000, transientTime_flag, eta_ice_final_flag,
328       beta_probe_wing_flag, beta_probe_tail_flag,
329       kCDo_flag, kCDK_flag, kCD_a_flag, kCD_adot_flag, kCD_q_flag, kCD_de_flag,
330       kCXo_flag, kCXK_flag, kCX_a_flag, kCX_a2_flag, kCX_a3_flag, kCX_adot_flag,
331       kCX_q_flag, kCX_de_flag, kCX_dr_flag, kCX_df_flag, kCX_adf_flag,
332       kCLo_flag, kCL_a_flag, kCL_adot_flag, kCL_q_flag, kCL_de_flag,
333       kCZo_flag, kCZ_a_flag, kCZ_a2_flag, kCZ_a3_flag, kCZ_adot_flag,
334       kCZ_q_flag, kCZ_de_flag, kCZ_deb2_flag, kCZ_df_flag, kCZ_adf_flag,
335       kCmo_flag, kCm_a_flag, kCm_a2_flag, kCm_adot_flag, kCm_q_flag,
336       kCm_de_flag, kCm_b2_flag, kCm_r_flag, kCm_df_flag,
337       kCYo_flag, kCY_beta_flag, kCY_p_flag, kCY_r_flag, kCY_da_flag,
338       kCY_dr_flag, kCY_dra_flag, kCY_bdot_flag,
339       kClo_flag, kCl_beta_flag, kCl_p_flag, kCl_r_flag, kCl_da_flag,
340       kCl_dr_flag, kCl_daa_flag,
341       kCno_flag, kCn_beta_flag, kCn_p_flag, kCn_r_flag, kCn_da_flag,
342       kCn_dr_flag, kCn_q_flag, kCn_b3_flag, bootTime_flag,
343 
344       eta_wing_left_input_flag, eta_wing_right_input_flag,
345       eta_tail_input_flag, nonlin_ice_case_flag, eta_tail_flag,
346       eta_wing_left_flag, eta_wing_right_flag,
347 
348       demo_eps_alpha_max_flag, demo_eps_pitch_max_flag,
349       demo_eps_pitch_min_flag, demo_eps_roll_max_flag,
350       demo_eps_thrust_min_flag, demo_eps_flap_max_flag,
351       demo_eps_airspeed_max_flag, demo_eps_airspeed_min_flag,
352       demo_boot_cycle_tail_flag, demo_boot_cycle_wing_left_flag,
353       demo_boot_cycle_wing_right_flag, demo_eps_pitch_input_flag,
354       tactilefadef_flag, tactile_pitch_flag, demo_ap_pah_on_flag,
355       demo_ap_alh_on_flag, demo_ap_rah_on_flag, demo_ap_hh_on_flag,
356       demo_ap_Theta_ref_flag, demo_ap_alt_ref_flag,
357       demo_ap_Phi_ref_flag, demo_ap_Psi_ref_flag,
358       demo_tactile_flag, demo_ice_tail_flag,
359       demo_ice_left_flag, demo_ice_right_flag};
360 
361 // record ===== Record desired quantites to file
362 enum {Simtime_record = 16000, dt_record,
363 
364       cbar_2U_record, b_2U_record, ch_2U_record,
365 
366       // added to uiuc_map_record1.cpp
367       Weight_record, Mass_record, I_xx_record, I_yy_record, I_zz_record, I_xz_record,
368       Mass_appMass_ratio_record, I_xx_appMass_ratio_record,
369       I_yy_appMass_ratio_record, I_zz_appMass_ratio_record,
370       Mass_appMass_record,       I_xx_appMass_record,
371       I_yy_appMass_record,       I_zz_appMass_record,
372 
373       // added to uiuc_map_record1.cpp
374       Dx_pilot_record, Dy_pilot_record, Dz_pilot_record,
375       Dx_cg_record, Dy_cg_record, Dz_cg_record,
376       Lat_geocentric_record, Lon_geocentric_record, Radius_to_vehicle_record,
377       Latitude_record, Longitude_record, Altitude_record,
378       Phi_record, Theta_record, Psi_record,
379       Phi_deg_record, Theta_deg_record, Psi_deg_record,
380 
381       // added to uiuc_map_record1.cpp
382       V_dot_north_record, V_dot_east_record, V_dot_down_record,
383       U_dot_body_record, V_dot_body_record, W_dot_body_record,
384       A_X_pilot_record, A_Y_pilot_record, A_Z_pilot_record,
385       A_X_cg_record, A_Y_cg_record, A_Z_cg_record,
386       N_X_pilot_record, N_Y_pilot_record, N_Z_pilot_record,
387       N_X_cg_record, N_Y_cg_record, N_Z_cg_record,
388       P_dot_body_record, Q_dot_body_record, R_dot_body_record,
389 
390       // added to uiuc_map_record2.cpp
391       V_north_record, V_east_record, V_down_record,
392       V_north_rel_ground_record, V_east_rel_ground_record, V_down_rel_ground_record,
393       V_north_airmass_record, V_east_airmass_record, V_down_airmass_record,
394       V_north_rel_airmass_record, V_east_rel_airmass_record, V_down_rel_airmass_record,
395       U_gust_record, V_gust_record, W_gust_record,
396       U_body_record, V_body_record, W_body_record,
397       V_rel_wind_record, V_true_kts_record, V_rel_ground_record,
398       V_inertial_record, V_ground_speed_record, V_equiv_record,
399       V_equiv_kts_record, V_calibrated_record, V_calibrated_kts_record,
400       P_local_record, Q_local_record, R_local_record,
401       P_body_record, Q_body_record, R_body_record,
402       P_total_record, Q_total_record, R_total_record,
403       Phi_dot_record, Theta_dot_record, Psi_dot_record,
404       Latitude_dot_record, Longitude_dot_record, Radius_dot_record,
405 
406       // added to uiuc_map_record2.cpp
407       Alpha_record, Alpha_deg_record, Alpha_dot_record, Alpha_dot_deg_record,
408       Beta_record, Beta_deg_record, Beta_dot_record, Beta_dot_deg_record,
409       Gamma_vert_record, Gamma_vert_deg_record, Gamma_horiz_record, Gamma_horiz_deg_record,
410 
411       // added to uiuc_map_record3.cpp
412       Density_record, V_sound_record, Mach_number_record,
413       Static_pressure_record, Total_pressure_record, Impact_pressure_record,
414       Dynamic_pressure_record,
415       Static_temperature_record, Total_temperature_record,
416 
417       // added to uiuc_map_record3.cpp
418       Gravity_record, Sea_level_radius_record, Earth_position_angle_record,
419       Runway_altitude_record, Runway_latitude_record, Runway_longitude_record,
420       Runway_heading_record, Radius_to_rwy_record,
421       D_pilot_north_of_rwy_record, D_pilot_east_of_rwy_record, D_pilot_above_rwy_record,
422       X_pilot_rwy_record, Y_pilot_rwy_record, H_pilot_rwy_record,
423       D_cg_north_of_rwy_record, D_cg_east_of_rwy_record, D_cg_above_rwy_record,
424       X_cg_rwy_record, Y_cg_rwy_record, H_cg_rwy_record,
425 
426       // added to uiuc_map_record3.cpp
427       Throttle_3_record, Throttle_pct_record,
428 
429       // added to uiuc_map_record3.cpp
430       Long_control_record, Long_trim_record, Long_trim_deg_record,
431       elevator_record, elevator_deg_record,
432       Lat_control_record, aileron_record, aileron_deg_record,
433       Rudder_pedal_record, rudder_record, rudder_deg_record,
434       Flap_handle_record, flap_cmd_record, flap_cmd_deg_record,
435       flap_pos_record, flap_pos_deg_record, flap_pos_norm_record,
436       Spoiler_handle_record, spoiler_cmd_deg_record,
437       spoiler_pos_deg_record, spoiler_pos_norm_record, spoiler_pos_record,
438       spoiler_cmd_record,
439 
440       // added to uiuc_map_record4.cpp
441       CD_record, CDfaI_record, CDfCLI_record, CDfadeI_record, CDfdfI_record,
442       CDfadfI_record, CX_record, CXfabetafI_record, CXfadefI_record,
443       CXfaqfI_record,
444       CDo_save_record, CDK_save_record, CLK_save_record, CD_a_save_record, CD_adot_save_record,
445       CD_q_save_record, CD_ih_save_record,
446       CD_de_save_record, CD_dr_save_record, CD_da_save_record, CD_beta_save_record,
447       CD_df_save_record,
448       CD_ds_save_record,
449       CD_dg_save_record,
450       CXo_save_record,
451       CXK_save_record, CX_a_save_record, CX_a2_save_record, CX_a3_save_record,
452       CX_adot_save_record, CX_q_save_record, CX_de_save_record,
453       CX_dr_save_record, CX_df_save_record, CX_adf_save_record,
454       CL_record, CLfaI_record, CLfadeI_record, CLfdfI_record, CLfadfI_record,
455       CZ_record, CZfaI_record, CZfabetafI_record, CZfadefI_record,
456       CZfaqfI_record,
457       CLo_save_record, CL_a_save_record, CL_adot_save_record, CL_q_save_record,
458       CL_ih_save_record, CL_de_save_record,
459       CL_df_save_record,
460       CL_ds_save_record,
461       CL_dg_save_record,
462       CZo_save_record, CZ_a_save_record,
463       CZ_a2_save_record, CZ_a3_save_record, CZ_adot_save_record,
464       CZ_q_save_record, CZ_de_save_record, CZ_deb2_save_record,
465       CZ_df_save_record, CZ_adf_save_record,
466       Cm_record, CmfaI_record, CmfadeI_record, CmfdfI_record, CmfadfI_record,
467       CmfabetafI_record, CmfadefI_record, CmfaqfI_record,
468       Cmo_save_record, Cm_a_save_record, Cm_a2_save_record,
469       Cm_adot_save_record, Cm_q_save_record, Cm_ih_save_record,
470       Cm_de_save_record, Cm_b2_save_record, Cm_r_save_record,
471       Cm_df_save_record,
472       Cm_ds_save_record,
473       Cm_dg_save_record,
474       CY_record, CYfadaI_record, CYfbetadrI_record, CYfabetafI_record,
475       CYfadafI_record, CYfadrfI_record, CYfapfI_record, CYfarfI_record,
476       CYo_save_record, CY_beta_save_record, CY_p_save_record,
477       CY_r_save_record, CY_da_save_record, CY_dr_save_record,
478       CY_dra_save_record, CY_bdot_save_record,
479       Cl_record, ClfadaI_record, ClfbetadrI_record, ClfabetafI_record,
480       ClfadafI_record, ClfadrfI_record, ClfapfI_record, ClfarfI_record,
481       Clo_save_record, Cl_beta_save_record, Cl_p_save_record, Cl_r_save_record,
482       Cl_da_save_record, Cl_dr_save_record, Cl_daa_save_record,
483       Cn_record, CnfadaI_record, CnfbetadrI_record, CnfabetafI_record,
484       CnfadafI_record, CnfadrfI_record, CnfapfI_record, CnfarfI_record,
485       Cno_save_record, Cn_beta_save_record, Cn_p_save_record, Cn_r_save_record,
486       Cn_da_save_record, Cn_dr_save_record, Cn_q_save_record,
487       Cn_b3_save_record,
488 
489       // added to uiuc_map_record5.cpp
490       F_X_wind_record, F_Y_wind_record, F_Z_wind_record,
491       F_X_aero_record, F_Y_aero_record, F_Z_aero_record,
492       F_X_engine_record, F_Y_engine_record, F_Z_engine_record,
493       F_X_gear_record, F_Y_gear_record, F_Z_gear_record,
494       F_X_record, F_Y_record, F_Z_record,
495       F_north_record, F_east_record, F_down_record,
496 
497       // added to uiuc_map_record5.cpp
498       M_l_aero_record, M_m_aero_record, M_n_aero_record,
499       M_l_engine_record, M_m_engine_record, M_n_engine_record,
500       M_l_gear_record, M_m_gear_record, M_n_gear_record,
501       M_l_rp_record, M_m_rp_record, M_n_rp_record,
502       M_l_cg_record, M_m_cg_record, M_n_cg_record,
503 
504       // added to uiuc_map_record5.cpp
505       flapper_freq_record, flapper_phi_record,
506       flapper_phi_deg_record, flapper_Lift_record, flapper_Thrust_record,
507       flapper_Inertia_record, flapper_Moment_record,
508 
509       // added to uiuc_map_record5.cpp
510       debug1_record,
511       debug2_record,
512       debug3_record,
513       V_down_fpm_record,
514       eta_q_record,
515       rpm_record,
516       elevator_sas_deg_record,
517       aileron_sas_deg_record,
518       rudder_sas_deg_record,
519       w_induced_record,
520       downwashAngle_deg_record,
521       alphaTail_deg_record,
522       gammaWing_record,
523       LD_record,
524       gload_record,
525       gyroMomentQ_record,
526       gyroMomentR_record,
527 
528       // added to uiuc_map_record5.cpp
529       Gear_handle_record, gear_cmd_norm_record, gear_pos_norm_record,
530 
531       // added to uiuc_map_record5.cpp
532       debug4_record,
533       debug5_record,
534       debug6_record,
535       debug7_record,
536       debug8_record,
537       debug9_record,
538       debug10_record,
539 
540       // added to uiuc_map_record6.cpp
541       CL_clean_record, CL_iced_record,
542       CD_clean_record, CD_iced_record,
543       Cm_clean_record, Cm_iced_record,
544       Ch_clean_record, Ch_iced_record,
545       Cl_clean_record, Cl_iced_record,
546       Cn_clean_record, Cn_iced_record,
547       CLclean_wing_record, CLiced_wing_record,
548       CLclean_tail_record, CLiced_tail_record,
549       Lift_clean_wing_record, Lift_iced_wing_record,
550       Lift_clean_tail_record, Lift_iced_tail_record,
551       Gamma_clean_wing_record, Gamma_iced_wing_record,
552       Gamma_clean_tail_record, Gamma_iced_tail_record,
553       w_clean_wing_record, w_iced_wing_record,
554       w_clean_tail_record, w_iced_tail_record,
555       V_total_clean_wing_record, V_total_iced_wing_record,
556       V_total_clean_tail_record, V_total_iced_tail_record,
557       beta_flow_clean_wing_record, beta_flow_clean_wing_deg_record,
558       beta_flow_iced_wing_record, beta_flow_iced_wing_deg_record,
559       beta_flow_clean_tail_record, beta_flow_clean_tail_deg_record,
560       beta_flow_iced_tail_record, beta_flow_iced_tail_deg_record,
561       Dbeta_flow_wing_record, Dbeta_flow_wing_deg_record,
562       Dbeta_flow_tail_record, Dbeta_flow_tail_deg_record,
563       pct_beta_flow_wing_record, pct_beta_flow_tail_record, eta_ice_record,
564       eta_wing_right_record, eta_wing_left_record, eta_tail_record,
565       delta_CL_record, delta_CD_record, delta_Cm_record, delta_Cl_record,
566       delta_Cn_record,
567 
568       // added to uiuc_map_record6.cpp
569       boot_cycle_tail_record, boot_cycle_wing_left_record,
570       boot_cycle_wing_right_record, autoIPS_tail_record,
571       autoIPS_wing_left_record, autoIPS_wing_right_record,
572       eps_pitch_input_record, eps_alpha_max_record, eps_pitch_max_record,
573       eps_pitch_min_record, eps_roll_max_record, eps_thrust_min_record,
574       eps_flap_max_record, eps_airspeed_max_record, eps_airspeed_min_record,
575       tactilefadefI_record,
576 
577       // added to uiuc_map_record6.cpp
578       ap_pah_on_record, ap_alh_on_record, ap_Theta_ref_deg_record,
579       ap_Theta_ref_rad_record, ap_alt_ref_ft_record, trigger_on_record,
580       ap_rah_on_record, ap_Phi_ref_rad_record, ap_Phi_ref_deg_record,
581       ap_hh_on_record, ap_Psi_ref_rad_record, ap_Psi_ref_deg_record,
582       trigger_num_record, trigger_toggle_record, trigger_counter_record,
583 
584       // added to uiuc_map_record6.cpp
585       T_local_to_body_11_record, T_local_to_body_12_record,
586       T_local_to_body_13_record, T_local_to_body_21_record,
587       T_local_to_body_22_record, T_local_to_body_23_record,
588       T_local_to_body_31_record, T_local_to_body_32_record,
589       T_local_to_body_33_record};
590 
591 
592 // misc ======= Miscellaneous inputs
593 // added to uiuc_map_misc.cpp
594 enum {simpleHingeMomentCoef_flag = 17000, flapper_flag,
595       flapper_phi_init_flag};
596 
597 //321654
598 // fog ======== Fog field quantities
599 enum {fog_segments_flag = 18000, fog_point_flag};
600 
601 //321654
602 struct AIRCRAFT
603 {
604   // ParseFile stuff [] Bipin to add more comments
605   ParseFile *airplane;
606 #define  airplane           aircraft_->airplane
607   ParseFile *initParts;
608 #define  initParts          aircraft_->initParts
609   ParseFile *geometryParts;
610 #define  geometryParts      aircraft_->geometryParts
611   ParseFile *massParts;
612 #define  massParts          aircraft_->massParts
613   ParseFile *aeroDragParts;
614 #define  aeroDragParts      aircraft_->aeroDragParts
615   ParseFile *aeroLiftParts;
616 #define  aeroLiftParts      aircraft_->aeroLiftParts
617   ParseFile *aeroPitchParts;
618 #define  aeroPitchParts     aircraft_->aeroPitchParts
619   ParseFile *aeroSideforceParts;
620 #define  aeroSideforceParts aircraft_->aeroSideforceParts
621   ParseFile *aeroRollParts;
622 #define  aeroRollParts      aircraft_->aeroRollParts
623   ParseFile *aeroYawParts;
624 #define  aeroYawParts       aircraft_->aeroYawParts
625   ParseFile *engineParts;
626 #define  engineParts        aircraft_->engineParts
627   ParseFile *gearParts;
628 #define  gearParts          aircraft_->gearParts
629   ParseFile *recordParts;
630 #define  recordParts        aircraft_->recordParts
631 
632   /*= Keywords (token1) ===========================================*/
633   std::map <string,int>      Keyword_map;
634 #define      Keyword_map         aircraft_->Keyword_map
635 
636   double CD, CX, CL, CZ, Cm, CY, Cl, Cn;
637 #define CD  aircraft_->CD
638 #define CX  aircraft_->CX
639 #define CL  aircraft_->CL
640 #define CZ  aircraft_->CZ
641 #define Cm  aircraft_->Cm
642 #define CY  aircraft_->CY
643 #define Cl  aircraft_->Cl
644 #define Cn  aircraft_->Cn
645   double CXclean_wing, CXclean_tail, CXiced_wing, CXiced_tail;
646   double CLclean_wing, CLclean_tail, CLiced_wing, CLiced_tail;
647   double CZclean_wing, CZclean_tail, CZiced_wing, CZiced_tail;
648 #define CXclean_wing  aircraft_->CXclean_wing
649 #define CXclean_tail  aircraft_->CXclean_tail
650 #define CXiced_wing   aircraft_->CXiced_wing
651 #define CXiced_tail   aircraft_->CXiced_tail
652 #define CLclean_wing  aircraft_->CLclean_wing
653 #define CLclean_tail  aircraft_->CLclean_tail
654 #define CLiced_wing   aircraft_->CLiced_wing
655 #define CLiced_tail   aircraft_->CLiced_tail
656 #define CZclean_wing  aircraft_->CZclean_wing
657 #define CZclean_tail  aircraft_->CZclean_tail
658 #define CZiced_wing   aircraft_->CZiced_wing
659 #define CZiced_tail   aircraft_->CZiced_tail
660 
661   /*========================================*/
662   /* Variables (token2) - 17 groups (000329)*/
663   /*========================================*/
664 
665   /* Variables (token2) ===========================================*/
666   /* init ========== Initial values for equations of motion =======*/
667 
668   std::map <string,int> init_map;
669 #define      init_map          aircraft_->init_map
670 
671   int recordRate;
672 #define recordRate             aircraft_->recordRate
673   double recordStartTime;
674 #define recordStartTime        aircraft_->recordStartTime
675   bool use_V_rel_wind_2U;
676 #define use_V_rel_wind_2U      aircraft_->use_V_rel_wind_2U
677   bool nondim_rate_V_rel_wind;
678 #define nondim_rate_V_rel_wind aircraft_->nondim_rate_V_rel_wind
679   bool use_abs_U_body_2U;
680 #define use_abs_U_body_2U      aircraft_->use_abs_U_body_2U
681   double dyn_on_speed;
682 #define dyn_on_speed           aircraft_->dyn_on_speed
683   double dyn_on_speed_zero;
684 #define dyn_on_speed_zero      aircraft_->dyn_on_speed_zero
685   bool use_dyn_on_speed_curve1;
686 #define use_dyn_on_speed_curve1 aircraft_->use_dyn_on_speed_curve1
687 
688   bool use_Alpha_dot_on_speed;
689 #define use_Alpha_dot_on_speed  aircraft_->use_Alpha_dot_on_speed
690   double Alpha_dot_on_speed;
691 #define Alpha_dot_on_speed      aircraft_->Alpha_dot_on_speed
692 
693   bool use_gamma_horiz_on_speed;
694 #define use_gamma_horiz_on_speed aircraft_->use_gamma_horiz_on_speed
695   double gamma_horiz_on_speed;
696 #define gamma_horiz_on_speed     aircraft_->gamma_horiz_on_speed
697 
698 
699   bool b_downwashMode;
700 #define b_downwashMode          aircraft_->b_downwashMode
701   int downwashMode;
702 #define downwashMode            aircraft_->downwashMode
703   double downwashCoef;
704 #define downwashCoef            aircraft_->downwashCoef
705   double gammaWing;
706 #define gammaWing               aircraft_->gammaWing
707   double downwash;
708 #define downwash                aircraft_->downwash
709   double downwashAngle;
710 #define downwashAngle           aircraft_->downwashAngle
711   double alphaTail;
712 #define alphaTail               aircraft_->alphaTail
713 
714 
715   bool P_body_init_true;
716   double P_body_init;
717 #define P_body_init_true       aircraft_->P_body_init_true
718 #define P_body_init            aircraft_->P_body_init
719   bool Q_body_init_true;
720   double Q_body_init;
721 #define Q_body_init_true       aircraft_->Q_body_init_true
722 #define Q_body_init            aircraft_->Q_body_init
723   bool R_body_init_true;
724   double R_body_init;
725 #define R_body_init_true       aircraft_->R_body_init_true
726 #define R_body_init            aircraft_->R_body_init
727   bool Phi_init_true;
728   double Phi_init;
729 #define Phi_init_true          aircraft_->Phi_init_true
730 #define Phi_init               aircraft_->Phi_init
731   bool Theta_init_true;
732   double Theta_init;
733 #define Theta_init_true        aircraft_->Theta_init_true
734 #define Theta_init             aircraft_->Theta_init
735   bool Psi_init_true;
736   double Psi_init;
737 #define Psi_init_true          aircraft_->Psi_init_true
738 #define Psi_init               aircraft_->Psi_init
739   bool Alpha_init_true;
740   double Alpha_init;
741 #define Alpha_init_true        aircraft_->Alpha_init_true
742 #define Alpha_init             aircraft_->Alpha_init
743   bool Beta_init_true;
744   double Beta_init;
745 #define Beta_init_true         aircraft_->Beta_init_true
746 #define Beta_init              aircraft_->Beta_init
747   bool U_body_init_true;
748   double U_body_init;
749 #define U_body_init_true       aircraft_->U_body_init_true
750 #define U_body_init            aircraft_->U_body_init
751   bool V_body_init_true;
752   double V_body_init;
753 #define V_body_init_true       aircraft_->V_body_init_true
754 #define V_body_init            aircraft_->V_body_init
755   bool W_body_init_true;
756   double W_body_init;
757 #define W_body_init_true       aircraft_->W_body_init_true
758 #define W_body_init            aircraft_->W_body_init
759   bool trim_case_2;
760 #define trim_case_2            aircraft_->trim_case_2
761   bool use_uiuc_network;
762   string server_IP;
763   int port_num;
764 #define use_uiuc_network       aircraft_->use_uiuc_network
765 #define server_IP              aircraft_->server_IP
766 #define port_num               aircraft_->port_num
767   bool icing_demo;
768 #define icing_demo             aircraft_->icing_demo
769   bool outside_control;
770 #define outside_control        aircraft_->outside_control
771 
772   /* Variables (token2) ===========================================*/
773   /* geometry ====== Aircraft-specific geometric quantities =======*/
774 
775   std::map <string,int> geometry_map;
776 #define      geometry_map        aircraft_->geometry_map
777 
778   double bw, cbar, Sw, ih, bh, chord_h, Sh;
779 #define bw   aircraft_->bw
780 #define cbar aircraft_->cbar
781 #define Sw   aircraft_->Sw
782 #define ih   aircraft_->ih
783 #define bh   aircraft_->bh
784 #define chord_h   aircraft_->chord_h
785 #define Sh   aircraft_->Sh
786 
787 
788   /* Variables (token2) ===========================================*/
789   /* controlSurface  Control surface deflections and properties ===*/
790 
791   std::map <string,int> controlSurface_map;
792 #define      controlSurface_map  aircraft_->controlSurface_map
793 
794   double demax, demin;
795   double damax, damin;
796   double drmax, drmin;
797 #define demax             aircraft_->demax
798 #define demin             aircraft_->demin
799 #define damax             aircraft_->damax
800 #define damin             aircraft_->damin
801 #define drmax             aircraft_->drmax
802 #define drmin             aircraft_->drmin
803 
804   double aileron, elevator, rudder;
805 #define aileron           aircraft_->aileron
806 #define elevator          aircraft_->elevator
807 #define rudder            aircraft_->rudder
808   //  double flap;
809   //#define flap              aircraft_->flap
810 
811   bool set_Long_trim, zero_Long_trim;
812   double Long_trim_constant;
813 #define set_Long_trim      aircraft_->set_Long_trim
814 #define Long_trim_constant aircraft_->Long_trim_constant
815 #define zero_Long_trim     aircraft_->zero_Long_trim
816 
817   bool elevator_step;
818   double elevator_step_angle, elevator_step_startTime;
819 #define elevator_step              aircraft_->elevator_step
820 #define elevator_step_angle        aircraft_->elevator_step_angle
821 #define elevator_step_startTime    aircraft_->elevator_step_startTime
822 
823   bool elevator_singlet;
824   double elevator_singlet_angle, elevator_singlet_startTime;
825   double elevator_singlet_duration;
826 #define elevator_singlet           aircraft_->elevator_singlet
827 #define elevator_singlet_angle     aircraft_->elevator_singlet_angle
828 #define elevator_singlet_startTime aircraft_->elevator_singlet_startTime
829 #define elevator_singlet_duration  aircraft_->elevator_singlet_duration
830 
831   bool elevator_doublet;
832   double elevator_doublet_angle, elevator_doublet_startTime;
833   double elevator_doublet_duration;
834 #define elevator_doublet           aircraft_->elevator_doublet
835 #define elevator_doublet_angle     aircraft_->elevator_doublet_angle
836 #define elevator_doublet_startTime aircraft_->elevator_doublet_startTime
837 #define elevator_doublet_duration  aircraft_->elevator_doublet_duration
838 
839   bool elevator_input;
840   string elevator_input_file;
841   double elevator_input_timeArray[7500];
842   double elevator_input_deArray[7500];
843   int elevator_input_ntime;
844   double elevator_input_startTime;
845 #define elevator_input             aircraft_->elevator_input
846 #define elevator_input_file        aircraft_->elevator_input_file
847 #define elevator_input_timeArray   aircraft_->elevator_input_timeArray
848 #define elevator_input_deArray     aircraft_->elevator_input_deArray
849 #define elevator_input_ntime       aircraft_->elevator_input_ntime
850 #define elevator_input_startTime   aircraft_->elevator_input_startTime
851 
852   bool aileron_input;
853   string aileron_input_file;
854   double aileron_input_timeArray[1500];
855   double aileron_input_daArray[1500];
856   int aileron_input_ntime;
857   double aileron_input_startTime;
858 #define aileron_input             aircraft_->aileron_input
859 #define aileron_input_file        aircraft_->aileron_input_file
860 #define aileron_input_timeArray   aircraft_->aileron_input_timeArray
861 #define aileron_input_daArray     aircraft_->aileron_input_daArray
862 #define aileron_input_ntime       aircraft_->aileron_input_ntime
863 #define aileron_input_startTime   aircraft_->aileron_input_startTime
864 
865   bool rudder_input;
866   string rudder_input_file;
867   double rudder_input_timeArray[500];
868   double rudder_input_drArray[500];
869   int rudder_input_ntime;
870   double rudder_input_startTime;
871 #define rudder_input             aircraft_->rudder_input
872 #define rudder_input_file        aircraft_->rudder_input_file
873 #define rudder_input_timeArray   aircraft_->rudder_input_timeArray
874 #define rudder_input_drArray     aircraft_->rudder_input_drArray
875 #define rudder_input_ntime       aircraft_->rudder_input_ntime
876 #define rudder_input_startTime   aircraft_->rudder_input_startTime
877 
878   bool pilot_elev_no;
879 #define pilot_elev_no            aircraft_->pilot_elev_no
880   bool pilot_elev_no_check;
881 #define pilot_elev_no_check      aircraft_->pilot_elev_no_check
882 
883   bool pilot_ail_no;
884 #define pilot_ail_no             aircraft_->pilot_ail_no
885   bool pilot_ail_no_check;
886 #define pilot_ail_no_check       aircraft_->pilot_ail_no_check
887 
888   bool pilot_rud_no;
889 #define pilot_rud_no             aircraft_->pilot_rud_no
890   bool pilot_rud_no_check;
891 #define pilot_rud_no_check       aircraft_->pilot_rud_no_check
892 
893   double flap_max, flap_rate;
894 #define flap_max                 aircraft_->flap_max
895 #define flap_rate                aircraft_->flap_rate
896   bool use_flaps;
897 #define use_flaps                aircraft_->use_flaps
898 
899   double spoiler_max, spoiler_rate;
900 #define spoiler_max                 aircraft_->spoiler_max
901 #define spoiler_rate                aircraft_->spoiler_rate
902   bool use_spoilers;
903 #define use_spoilers                aircraft_->use_spoilers
904 
905 
906   bool flap_pos_input;
907   string flap_pos_input_file;
908   double flap_pos_input_timeArray[500];
909   double flap_pos_input_dfArray[500];
910   int flap_pos_input_ntime;
911   double flap_pos_input_startTime;
912 #define flap_pos_input             aircraft_->flap_pos_input
913 #define flap_pos_input_file        aircraft_->flap_pos_input_file
914 #define flap_pos_input_timeArray   aircraft_->flap_pos_input_timeArray
915 #define flap_pos_input_dfArray     aircraft_->flap_pos_input_dfArray
916 #define flap_pos_input_ntime       aircraft_->flap_pos_input_ntime
917 #define flap_pos_input_startTime   aircraft_->flap_pos_input_startTime
918 
919 
920   // SAS system: pitch, roll and yaw damping  MSS
921   double elevator_sas_KQ;
922   double elevator_sas_max;
923   double elevator_sas_min;
924   double elevator_stick_gain;
925   double aileron_sas_KP;
926   double aileron_sas_max;
927   double aileron_stick_gain;
928   double rudder_sas_KR;
929   double rudder_sas_max;
930   double rudder_stick_gain;
931 
932 
933 
934 #define elevator_sas_KQ             aircraft_->elevator_sas_KQ
935 #define elevator_sas_max            aircraft_->elevator_sas_max
936 #define elevator_sas_min            aircraft_->elevator_sas_min
937 #define elevator_stick_gain         aircraft_->elevator_stick_gain
938 #define aileron_sas_KP              aircraft_->aileron_sas_KP
939 #define aileron_sas_max             aircraft_->aileron_sas_max
940 #define aileron_stick_gain          aircraft_->aileron_stick_gain
941 #define rudder_sas_KR               aircraft_->rudder_sas_KR
942 #define rudder_sas_max              aircraft_->rudder_sas_max
943 #define rudder_stick_gain           aircraft_->rudder_stick_gain
944 
945   double elevator_sas;
946 #define elevator_sas                aircraft_->elevator_sas
947   double aileron_sas;
948 #define aileron_sas                 aircraft_->aileron_sas
949   double rudder_sas;
950 #define rudder_sas                  aircraft_->rudder_sas
951 
952   bool use_elevator_sas_type1;
953 #define use_elevator_sas_type1      aircraft_->use_elevator_sas_type1
954   bool use_elevator_sas_max;
955 #define use_elevator_sas_max        aircraft_->use_elevator_sas_max
956   bool use_elevator_sas_min;
957 #define use_elevator_sas_min        aircraft_->use_elevator_sas_min
958   bool use_elevator_stick_gain;
959 #define use_elevator_stick_gain     aircraft_->use_elevator_stick_gain
960   bool use_aileron_sas_type1;
961 #define use_aileron_sas_type1       aircraft_->use_aileron_sas_type1
962   bool use_aileron_sas_max;
963 #define use_aileron_sas_max         aircraft_->use_aileron_sas_max
964   bool use_aileron_stick_gain;
965 #define use_aileron_stick_gain      aircraft_->use_aileron_stick_gain
966   bool use_rudder_sas_type1;
967 #define use_rudder_sas_type1        aircraft_->use_rudder_sas_type1
968   bool use_rudder_sas_max;
969 #define use_rudder_sas_max          aircraft_->use_rudder_sas_max
970   bool use_rudder_stick_gain;
971 #define use_rudder_stick_gain       aircraft_->use_rudder_stick_gain
972 
973 
974 
975   /* Variables (token2) ===========================================*/
976   /* controlsMixer = Control mixer ================================*/
977 
978   std::map <string,int> controlsMixer_map;
979 #define      controlsMixer_map  aircraft_->controlsMixer_map
980 
981   double nomix;
982 #define nomix  aircraft_->nomix
983 
984 
985   /* Variables (token2) ===========================================*/
986   /* mass =========== Aircraft-specific mass properties ===========*/
987 
988   std::map <string,int> mass_map;
989 #define      mass_map            aircraft_->mass_map
990 
991   double Weight;
992 #define Weight  aircraft_->Weight
993 
994   double Mass_appMass_ratio;
995 #define Mass_appMass_ratio aircraft_->Mass_appMass_ratio
996   double I_xx_appMass_ratio;
997 #define I_xx_appMass_ratio aircraft_->I_xx_appMass_ratio
998   double I_yy_appMass_ratio;
999 #define I_yy_appMass_ratio aircraft_->I_yy_appMass_ratio
1000   double I_zz_appMass_ratio;
1001 #define I_zz_appMass_ratio aircraft_->I_zz_appMass_ratio
1002   double Mass_appMass;
1003 #define Mass_appMass aircraft_->Mass_appMass
1004   double I_xx_appMass;
1005 #define I_xx_appMass aircraft_->I_xx_appMass
1006   double I_yy_appMass;
1007 #define I_yy_appMass aircraft_->I_yy_appMass
1008   double I_zz_appMass;
1009 #define I_zz_appMass aircraft_->I_zz_appMass
1010 
1011   /* Variables (token2) ===========================================*/
1012   /* engine ======== Propulsion data ==============================*/
1013 
1014   std::map <string,int> engine_map;
1015 #define      engine_map            aircraft_->engine_map
1016 
1017   double simpleSingleMaxThrust;
1018 #define simpleSingleMaxThrust  aircraft_->simpleSingleMaxThrust
1019 
1020   bool simpleSingleModel;
1021 #define simpleSingleModel  aircraft_->simpleSingleModel
1022   double t_v0;
1023 #define t_v0  aircraft_->t_v0
1024   double dtdv_t0;
1025 #define dtdv_t0  aircraft_->dtdv_t0
1026   double v_t0;
1027 #define v_t0  aircraft_->v_t0
1028   double dtdvvt;
1029 #define dtdvvt  aircraft_->dtdvvt
1030 
1031   double tc, induced, eta_q;
1032 #define tc      aircraft_->tc
1033 #define induced aircraft_->induced
1034 #define eta_q   aircraft_->eta_q
1035 
1036   bool Throttle_pct_input;
1037   string Throttle_pct_input_file;
1038   double Throttle_pct_input_timeArray[1500];
1039   double Throttle_pct_input_dTArray[1500];
1040   int Throttle_pct_input_ntime;
1041   double Throttle_pct_input_startTime;
1042 #define Throttle_pct_input            aircraft_->Throttle_pct_input
1043 #define Throttle_pct_input_file       aircraft_->Throttle_pct_input_file
1044 #define Throttle_pct_input_timeArray  aircraft_->Throttle_pct_input_timeArray
1045 #define Throttle_pct_input_dTArray    aircraft_->Throttle_pct_input_dTArray
1046 #define Throttle_pct_input_ntime      aircraft_->Throttle_pct_input_ntime
1047 #define Throttle_pct_input_startTime  aircraft_->Throttle_pct_input_startTime
1048   bool gyroForce_Q_body, gyroForce_R_body;
1049   double minOmega, maxOmega, minOmegaRPM, maxOmegaRPM, engineOmega, polarInertia;
1050 #define gyroForce_Q_body              aircraft_->gyroForce_Q_body
1051 #define gyroForce_R_body              aircraft_->gyroForce_R_body
1052 #define minOmega                      aircraft_->minOmega
1053 #define maxOmega                      aircraft_->maxOmega
1054 #define minOmegaRPM                   aircraft_->minOmegaRPM
1055 #define maxOmegaRPM                   aircraft_->maxOmegaRPM
1056 #define engineOmega                   aircraft_->engineOmega
1057 #define polarInertia                  aircraft_->polarInertia
1058 
1059   // propeller slipstream effects
1060   bool b_slipstreamEffects;
1061   double propDia;
1062   double eta_q_Cm_q, eta_q_Cm_q_fac;
1063   double eta_q_Cm_adot, eta_q_Cm_adot_fac;
1064   double eta_q_Cmfade, eta_q_Cmfade_fac;
1065   double eta_q_Cm_de, eta_q_Cm_de_fac;
1066   double eta_q_Cl_beta, eta_q_Cl_beta_fac;
1067   double eta_q_Cl_p, eta_q_Cl_p_fac;
1068   double eta_q_Cl_r, eta_q_Cl_r_fac;
1069   double eta_q_Cl_dr, eta_q_Cl_dr_fac;
1070   double eta_q_CY_beta, eta_q_CY_beta_fac;
1071   double eta_q_CY_p, eta_q_CY_p_fac;
1072   double eta_q_CY_r, eta_q_CY_r_fac;
1073   double eta_q_CY_dr, eta_q_CY_dr_fac;
1074   double eta_q_Cn_beta, eta_q_Cn_beta_fac;
1075   double eta_q_Cn_p, eta_q_Cn_p_fac;
1076   double eta_q_Cn_r, eta_q_Cn_r_fac;
1077   double eta_q_Cn_dr, eta_q_Cn_dr_fac;
1078 
1079 #define b_slipstreamEffects  aircraft_->b_slipstreamEffects
1080 #define propDia              aircraft_->propDia
1081 #define eta_q_Cm_q           aircraft_->eta_q_Cm_q
1082 #define eta_q_Cm_q_fac       aircraft_->eta_q_Cm_q_fac
1083 #define eta_q_Cm_adot        aircraft_->eta_q_Cm_adot
1084 #define eta_q_Cm_adot_fac    aircraft_->eta_q_Cm_adot_fac
1085 #define eta_q_Cmfade         aircraft_->eta_q_Cmfade
1086 #define eta_q_Cmfade_fac     aircraft_->eta_q_Cmfade_fac
1087 #define eta_q_Cm_de          aircraft_->eta_q_Cm_de
1088 #define eta_q_Cm_de_fac      aircraft_->eta_q_Cm_de_fac
1089 #define eta_q_Cl_beta        aircraft_->eta_q_Cl_beta
1090 #define eta_q_Cl_beta_fac    aircraft_->eta_q_Cl_beta_fac
1091 #define eta_q_Cl_p           aircraft_->eta_q_Cl_p
1092 #define eta_q_Cl_p_fac       aircraft_->eta_q_Cl_p_fac
1093 #define eta_q_Cl_r           aircraft_->eta_q_Cl_r
1094 #define eta_q_Cl_r_fac       aircraft_->eta_q_Cl_r_fac
1095 #define eta_q_Cl_dr          aircraft_->eta_q_Cl_dr
1096 #define eta_q_Cl_dr_fac      aircraft_->eta_q_Cl_dr_fac
1097 #define eta_q_CY_beta        aircraft_->eta_q_CY_beta
1098 #define eta_q_CY_beta_fac    aircraft_->eta_q_CY_beta_fac
1099 #define eta_q_CY_p           aircraft_->eta_q_CY_p
1100 #define eta_q_CY_p_fac       aircraft_->eta_q_CY_p_fac
1101 #define eta_q_CY_r           aircraft_->eta_q_CY_r
1102 #define eta_q_CY_r_fac       aircraft_->eta_q_CY_r_fac
1103 #define eta_q_CY_dr          aircraft_->eta_q_CY_dr
1104 #define eta_q_CY_dr_fac      aircraft_->eta_q_CY_dr_fac
1105 #define eta_q_Cn_beta        aircraft_->eta_q_Cn_beta
1106 #define eta_q_Cn_beta_fac    aircraft_->eta_q_Cn_beta_fac
1107 #define eta_q_Cn_p           aircraft_->eta_q_Cn_p
1108 #define eta_q_Cn_p_fac       aircraft_->eta_q_Cn_p_fac
1109 #define eta_q_Cn_r           aircraft_->eta_q_Cn_r
1110 #define eta_q_Cn_r_fac       aircraft_->eta_q_Cn_r_fac
1111 #define eta_q_Cn_dr          aircraft_->eta_q_Cn_dr
1112 #define eta_q_Cn_dr_fac      aircraft_->eta_q_Cn_dr_fac
1113 
1114 
1115   bool Xp_input;
1116   string Xp_input_file;
1117   double Xp_input_timeArray[5400];
1118   double Xp_input_XpArray[5400];
1119   int Xp_input_ntime;
1120   double Xp_input_startTime;
1121 #define Xp_input            aircraft_->Xp_input
1122 #define Xp_input_file       aircraft_->Xp_input_file
1123 #define Xp_input_timeArray  aircraft_->Xp_input_timeArray
1124 #define Xp_input_XpArray    aircraft_->Xp_input_XpArray
1125 #define Xp_input_ntime      aircraft_->Xp_input_ntime
1126 #define Xp_input_startTime  aircraft_->Xp_input_startTime
1127   bool Zp_input;
1128   string Zp_input_file;
1129   double Zp_input_timeArray[5400];
1130   double Zp_input_ZpArray[5400];
1131   int Zp_input_ntime;
1132   double Zp_input_startTime;
1133 #define Zp_input            aircraft_->Zp_input
1134 #define Zp_input_file       aircraft_->Zp_input_file
1135 #define Zp_input_timeArray  aircraft_->Zp_input_timeArray
1136 #define Zp_input_ZpArray    aircraft_->Zp_input_ZpArray
1137 #define Zp_input_ntime      aircraft_->Zp_input_ntime
1138 #define Zp_input_startTime  aircraft_->Zp_input_startTime
1139   bool Mp_input;
1140   string Mp_input_file;
1141   double Mp_input_timeArray[5400];
1142   double Mp_input_MpArray[5400];
1143   int Mp_input_ntime;
1144   double Mp_input_startTime;
1145 #define Mp_input            aircraft_->Mp_input
1146 #define Mp_input_file       aircraft_->Mp_input_file
1147 #define Mp_input_timeArray  aircraft_->Mp_input_timeArray
1148 #define Mp_input_MpArray    aircraft_->Mp_input_MpArray
1149 #define Mp_input_ntime      aircraft_->Mp_input_ntime
1150 #define Mp_input_startTime  aircraft_->Mp_input_startTime
1151 
1152 
1153   /* Variables (token2) ===========================================*/
1154   /* CD ============ Aerodynamic x-force quantities (longitudinal) */
1155 
1156   std::map <string,int> CD_map;
1157 #define      CD_map              aircraft_->CD_map
1158 
1159   double CDo, CDK, CLK, CD_a, CD_adot, CD_q, CD_ih, CD_de, CD_dr, CD_da, CD_beta;
1160   double CD_df, CD_ds, CD_dg;
1161 #define CDo      aircraft_->CDo
1162 #define CDK      aircraft_->CDK
1163 #define CLK      aircraft_->CLK
1164 #define CD_a     aircraft_->CD_a
1165 #define CD_adot  aircraft_->CD_adot
1166 #define CD_q     aircraft_->CD_q
1167 #define CD_ih    aircraft_->CD_ih
1168 #define CD_de    aircraft_->CD_de
1169 #define CD_dr    aircraft_->CD_dr
1170 #define CD_da    aircraft_->CD_da
1171 #define CD_beta  aircraft_->CD_beta
1172 #define CD_df    aircraft_->CD_df
1173 #define CD_ds    aircraft_->CD_ds
1174 #define CD_dg    aircraft_->CD_dg
1175   bool b_CLK;
1176 #define b_CLK      aircraft_->b_CLK
1177   string CDfa;
1178   double CDfa_aArray[100];
1179   double CDfa_CDArray[100];
1180   int CDfa_nAlpha;
1181   double CDfaI;
1182 #define CDfa               aircraft_->CDfa
1183 #define CDfa_aArray        aircraft_->CDfa_aArray
1184 #define CDfa_CDArray       aircraft_->CDfa_CDArray
1185 #define CDfa_nAlpha        aircraft_->CDfa_nAlpha
1186 #define CDfaI              aircraft_->CDfaI
1187   string CDfCL;
1188   double CDfCL_CLArray[100];
1189   double CDfCL_CDArray[100];
1190   int CDfCL_nCL;
1191   double CDfCLI;
1192 #define CDfCL              aircraft_->CDfCL
1193 #define CDfCL_CLArray      aircraft_->CDfCL_CLArray
1194 #define CDfCL_CDArray      aircraft_->CDfCL_CDArray
1195 #define CDfCL_nCL          aircraft_->CDfCL_nCL
1196 #define CDfCLI             aircraft_->CDfCLI
1197   string CDfade;
1198   double CDfade_aArray[100][100];
1199   double CDfade_deArray[100];
1200   double CDfade_CDArray[100][100];
1201   int CDfade_nAlphaArray[100];
1202   int CDfade_nde;
1203   double CDfadeI;
1204 #define CDfade             aircraft_->CDfade
1205 #define CDfade_aArray      aircraft_->CDfade_aArray
1206 #define CDfade_deArray     aircraft_->CDfade_deArray
1207 #define CDfade_CDArray     aircraft_->CDfade_CDArray
1208 #define CDfade_nAlphaArray aircraft_->CDfade_nAlphaArray
1209 #define CDfade_nde         aircraft_->CDfade_nde
1210 #define CDfadeI            aircraft_->CDfadeI
1211   string CDfdf;
1212   double CDfdf_dfArray[100];
1213   double CDfdf_CDArray[100];
1214   int CDfdf_ndf;
1215   double CDfdfI;
1216 #define CDfdf              aircraft_->CDfdf
1217 #define CDfdf_dfArray      aircraft_->CDfdf_dfArray
1218 #define CDfdf_CDArray      aircraft_->CDfdf_CDArray
1219 #define CDfdf_ndf          aircraft_->CDfdf_ndf
1220 #define CDfdfI             aircraft_->CDfdfI
1221   string CDfadf;
1222   double CDfadf_aArray[100][100];
1223   double CDfadf_dfArray[100];
1224   double CDfadf_CDArray[100][100];
1225   int CDfadf_nAlphaArray[100];
1226   int CDfadf_ndf;
1227   double CDfadfI;
1228 #define CDfadf             aircraft_->CDfadf
1229 #define CDfadf_aArray      aircraft_->CDfadf_aArray
1230 #define CDfadf_dfArray     aircraft_->CDfadf_dfArray
1231 #define CDfadf_CDArray     aircraft_->CDfadf_CDArray
1232 #define CDfadf_nAlphaArray aircraft_->CDfadf_nAlphaArray
1233 #define CDfadf_ndf         aircraft_->CDfadf_ndf
1234 #define CDfadfI            aircraft_->CDfadfI
1235   double CXo, CXK, CX_a, CX_a2, CX_a3, CX_adot;
1236   double CX_q, CX_de, CX_dr, CX_df, CX_adf;
1237 #define CXo      aircraft_->CXo
1238 #define CXK      aircraft_->CXK
1239 #define CX_a     aircraft_->CX_a
1240 #define CX_a2    aircraft_->CX_a2
1241 #define CX_a3    aircraft_->CX_a3
1242 #define CX_adot  aircraft_->CX_adot
1243 #define CX_q     aircraft_->CX_q
1244 #define CX_de    aircraft_->CX_de
1245 #define CX_dr    aircraft_->CX_dr
1246 #define CX_df    aircraft_->CX_df
1247 #define CX_adf   aircraft_->CX_adf
1248   double CXfabetaf_aArray[30][100][100];
1249   double CXfabetaf_betaArray[30][100];
1250   double CXfabetaf_CXArray[30][100][100];
1251   int CXfabetaf_nAlphaArray[30][100];
1252   int CXfabetaf_nbeta[30];
1253   double CXfabetaf_fArray[30];
1254   int CXfabetaf_nf;
1255   double CXfabetafI;
1256   int CXfabetaf_nice, CXfabetaf_na_nice, CXfabetaf_nb_nice;
1257   double CXfabetaf_bArray_nice[100];
1258   double CXfabetaf_aArray_nice[100];
1259 #define CXfabetaf_aArray        aircraft_->CXfabetaf_aArray
1260 #define CXfabetaf_betaArray     aircraft_->CXfabetaf_betaArray
1261 #define CXfabetaf_CXArray       aircraft_->CXfabetaf_CXArray
1262 #define CXfabetaf_nAlphaArray   aircraft_->CXfabetaf_nAlphaArray
1263 #define CXfabetaf_nbeta         aircraft_->CXfabetaf_nbeta
1264 #define CXfabetaf_fArray        aircraft_->CXfabetaf_fArray
1265 #define CXfabetaf_nf            aircraft_->CXfabetaf_nf
1266 #define CXfabetafI              aircraft_->CXfabetafI
1267 #define CXfabetaf_nice          aircraft_->CXfabetaf_nice
1268 #define CXfabetaf_na_nice       aircraft_->CXfabetaf_na_nice
1269 #define CXfabetaf_nb_nice       aircraft_->CXfabetaf_nb_nice
1270 #define CXfabetaf_bArray_nice   aircraft_->CXfabetaf_bArray_nice
1271 #define CXfabetaf_aArray_nice   aircraft_->CXfabetaf_aArray_nice
1272   double CXfadef_aArray[30][100][100];
1273   double CXfadef_deArray[30][100];
1274   double CXfadef_CXArray[30][100][100];
1275   int CXfadef_nAlphaArray[30][100];
1276   int CXfadef_nde[30];
1277   double CXfadef_fArray[30];
1278   int CXfadef_nf;
1279   double CXfadefI;
1280   int CXfadef_nice, CXfadef_na_nice, CXfadef_nde_nice;
1281   double CXfadef_deArray_nice[100];
1282   double CXfadef_aArray_nice[100];
1283 #define CXfadef_aArray        aircraft_->CXfadef_aArray
1284 #define CXfadef_deArray       aircraft_->CXfadef_deArray
1285 #define CXfadef_CXArray       aircraft_->CXfadef_CXArray
1286 #define CXfadef_nAlphaArray   aircraft_->CXfadef_nAlphaArray
1287 #define CXfadef_nde           aircraft_->CXfadef_nde
1288 #define CXfadef_fArray        aircraft_->CXfadef_fArray
1289 #define CXfadef_nf            aircraft_->CXfadef_nf
1290 #define CXfadefI              aircraft_->CXfadefI
1291 #define CXfadef_nice          aircraft_->CXfadef_nice
1292 #define CXfadef_na_nice       aircraft_->CXfadef_na_nice
1293 #define CXfadef_nde_nice      aircraft_->CXfadef_nde_nice
1294 #define CXfadef_deArray_nice  aircraft_->CXfadef_deArray_nice
1295 #define CXfadef_aArray_nice   aircraft_->CXfadef_aArray_nice
1296   double CXfaqf_aArray[30][100][100];
1297   double CXfaqf_qArray[30][100];
1298   double CXfaqf_CXArray[30][100][100];
1299   int CXfaqf_nAlphaArray[30][100];
1300   int CXfaqf_nq[30];
1301   double CXfaqf_fArray[30];
1302   int CXfaqf_nf;
1303   double CXfaqfI;
1304   int CXfaqf_nice, CXfaqf_na_nice, CXfaqf_nq_nice;
1305   double CXfaqf_qArray_nice[100];
1306   double CXfaqf_aArray_nice[100];
1307 #define CXfaqf_aArray        aircraft_->CXfaqf_aArray
1308 #define CXfaqf_qArray        aircraft_->CXfaqf_qArray
1309 #define CXfaqf_CXArray       aircraft_->CXfaqf_CXArray
1310 #define CXfaqf_nAlphaArray   aircraft_->CXfaqf_nAlphaArray
1311 #define CXfaqf_nq            aircraft_->CXfaqf_nq
1312 #define CXfaqf_fArray        aircraft_->CXfaqf_fArray
1313 #define CXfaqf_nf            aircraft_->CXfaqf_nf
1314 #define CXfaqfI              aircraft_->CXfaqfI
1315 #define CXfaqf_nice          aircraft_->CXfaqf_nice
1316 #define CXfaqf_na_nice       aircraft_->CXfaqf_na_nice
1317 #define CXfaqf_nq_nice       aircraft_->CXfaqf_nq_nice
1318 #define CXfaqf_qArray_nice   aircraft_->CXfaqf_qArray_nice
1319 #define CXfaqf_aArray_nice   aircraft_->CXfaqf_aArray_nice
1320   double CDo_save, CDK_save, CLK_save, CD_a_save, CD_adot_save, CD_q_save, CD_ih_save;
1321   double CD_de_save, CD_dr_save, CD_da_save, CD_beta_save;
1322   double CD_df_save, CD_ds_save, CD_dg_save;
1323   double CXo_save, CXK_save, CX_a_save, CX_a2_save, CX_a3_save;
1324   double CX_adot_save, CX_q_save, CX_de_save;
1325   double CX_dr_save, CX_df_save, CX_adf_save;
1326 #define CDo_save             aircraft_->CDo_save
1327 #define CDK_save             aircraft_->CDK_save
1328 #define CLK_save             aircraft_->CLK_save
1329 #define CD_a_save            aircraft_->CD_a_save
1330 #define CD_adot_save         aircraft_->CD_adot_save
1331 #define CD_q_save            aircraft_->CD_q_save
1332 #define CD_ih_save           aircraft_->CD_ih_save
1333 #define CD_de_save           aircraft_->CD_de_save
1334 #define CD_dr_save           aircraft_->CD_dr_save
1335 #define CD_da_save           aircraft_->CD_da_save
1336 #define CD_beta_save         aircraft_->CD_beta_save
1337 #define CD_df_save           aircraft_->CD_df_save
1338 #define CD_ds_save           aircraft_->CD_ds_save
1339 #define CD_dg_save           aircraft_->CD_dg_save
1340 #define CXo_save             aircraft_->CXo_save
1341 #define CXK_save             aircraft_->CXK_save
1342 #define CX_a_save            aircraft_->CX_a_save
1343 #define CX_a2_save           aircraft_->CX_a2_save
1344 #define CX_a3_save           aircraft_->CX_a3_save
1345 #define CX_adot_save         aircraft_->CX_adot_save
1346 #define CX_q_save            aircraft_->CX_q_save
1347 #define CX_de_save           aircraft_->CX_de_save
1348 #define CX_dr_save           aircraft_->CX_dr_save
1349 #define CX_df_save           aircraft_->CX_df_save
1350 #define CX_adf_save          aircraft_->CX_adf_save
1351 
1352 
1353   /* Variables (token2) ===========================================*/
1354   /* CL ============ Aerodynamic z-force quantities (longitudinal) */
1355 
1356   std::map <string,int> CL_map;
1357 #define      CL_map              aircraft_->CL_map
1358 
1359   double CLo, CL_a, CL_adot, CL_q, CL_ih, CL_de;
1360   double CL_df, CL_ds, CL_dg;
1361 #define CLo      aircraft_->CLo
1362 #define CL_a     aircraft_->CL_a
1363 #define CL_adot  aircraft_->CL_adot
1364 #define CL_q     aircraft_->CL_q
1365 #define CL_ih    aircraft_->CL_ih
1366 #define CL_de    aircraft_->CL_de
1367 #define CL_df    aircraft_->CL_df
1368 #define CL_ds    aircraft_->CL_ds
1369 #define CL_dg    aircraft_->CL_dg
1370   string CLfa;
1371   double CLfa_aArray[100];
1372   double CLfa_CLArray[100];
1373   int CLfa_nAlpha;
1374   double CLfaI;
1375 #define CLfa               aircraft_->CLfa
1376 #define CLfa_aArray        aircraft_->CLfa_aArray
1377 #define CLfa_CLArray       aircraft_->CLfa_CLArray
1378 #define CLfa_nAlpha        aircraft_->CLfa_nAlpha
1379 #define CLfaI              aircraft_->CLfaI
1380   string CLfade;
1381   double CLfade_aArray[100][100];
1382   double CLfade_deArray[100];
1383   double CLfade_CLArray[100][100];
1384   int CLfade_nAlphaArray[100];
1385   int CLfade_nde;
1386   double CLfadeI;
1387 #define CLfade             aircraft_->CLfade
1388 #define CLfade_aArray      aircraft_->CLfade_aArray
1389 #define CLfade_deArray     aircraft_->CLfade_deArray
1390 #define CLfade_CLArray     aircraft_->CLfade_CLArray
1391 #define CLfade_nAlphaArray aircraft_->CLfade_nAlphaArray
1392 #define CLfade_nde         aircraft_->CLfade_nde
1393 #define CLfadeI            aircraft_->CLfadeI
1394   string CLfdf;
1395   double CLfdf_dfArray[100];
1396   double CLfdf_CLArray[100];
1397   int CLfdf_ndf;
1398   double CLfdfI;
1399 #define CLfdf              aircraft_->CLfdf
1400 #define CLfdf_dfArray      aircraft_->CLfdf_dfArray
1401 #define CLfdf_CLArray      aircraft_->CLfdf_CLArray
1402 #define CLfdf_ndf          aircraft_->CLfdf_ndf
1403 #define CLfdfI             aircraft_->CLfdfI
1404   string CLfadf;
1405   double CLfadf_aArray[100][100];
1406   double CLfadf_dfArray[100];
1407   double CLfadf_CLArray[100][100];
1408   int CLfadf_nAlphaArray[100];
1409   int CLfadf_ndf;
1410   double CLfadfI;
1411 #define CLfadf             aircraft_->CLfadf
1412 #define CLfadf_aArray      aircraft_->CLfadf_aArray
1413 #define CLfadf_dfArray     aircraft_->CLfadf_dfArray
1414 #define CLfadf_CLArray     aircraft_->CLfadf_CLArray
1415 #define CLfadf_nAlphaArray aircraft_->CLfadf_nAlphaArray
1416 #define CLfadf_ndf         aircraft_->CLfadf_ndf
1417 #define CLfadfI            aircraft_->CLfadfI
1418   double CZo, CZ_a, CZ_a2, CZ_a3, CZ_adot;
1419   double CZ_q, CZ_de, CZ_deb2, CZ_df, CZ_adf;
1420 #define CZo      aircraft_->CZo
1421 #define CZ_a     aircraft_->CZ_a
1422 #define CZ_a2    aircraft_->CZ_a2
1423 #define CZ_a3    aircraft_->CZ_a3
1424 #define CZ_adot  aircraft_->CZ_adot
1425 #define CZ_q     aircraft_->CZ_q
1426 #define CZ_de    aircraft_->CZ_de
1427 #define CZ_deb2  aircraft_->CZ_deb2
1428 #define CZ_df    aircraft_->CZ_df
1429 #define CZ_adf   aircraft_->CZ_adf
1430   string CZfa;
1431   double CZfa_aArray[100];
1432   double CZfa_CZArray[100];
1433   int CZfa_nAlpha;
1434   double CZfaI;
1435 #define CZfa               aircraft_->CZfa
1436 #define CZfa_aArray        aircraft_->CZfa_aArray
1437 #define CZfa_CZArray       aircraft_->CZfa_CZArray
1438 #define CZfa_nAlpha        aircraft_->CZfa_nAlpha
1439 #define CZfaI              aircraft_->CZfaI
1440   double CZfabetaf_aArray[30][100][100];
1441   double CZfabetaf_betaArray[30][100];
1442   double CZfabetaf_CZArray[30][100][100];
1443   int CZfabetaf_nAlphaArray[30][100];
1444   int CZfabetaf_nbeta[30];
1445   double CZfabetaf_fArray[30];
1446   int CZfabetaf_nf;
1447   double CZfabetafI;
1448   int CZfabetaf_nice, CZfabetaf_na_nice, CZfabetaf_nb_nice;
1449   double CZfabetaf_bArray_nice[100];
1450   double CZfabetaf_aArray_nice[100];
1451 #define CZfabetaf_aArray        aircraft_->CZfabetaf_aArray
1452 #define CZfabetaf_betaArray     aircraft_->CZfabetaf_betaArray
1453 #define CZfabetaf_CZArray       aircraft_->CZfabetaf_CZArray
1454 #define CZfabetaf_nAlphaArray   aircraft_->CZfabetaf_nAlphaArray
1455 #define CZfabetaf_nbeta         aircraft_->CZfabetaf_nbeta
1456 #define CZfabetaf_fArray        aircraft_->CZfabetaf_fArray
1457 #define CZfabetaf_nf            aircraft_->CZfabetaf_nf
1458 #define CZfabetafI              aircraft_->CZfabetafI
1459 #define CZfabetaf_nice          aircraft_->CZfabetaf_nice
1460 #define CZfabetaf_na_nice       aircraft_->CZfabetaf_na_nice
1461 #define CZfabetaf_nb_nice       aircraft_->CZfabetaf_nb_nice
1462 #define CZfabetaf_bArray_nice   aircraft_->CZfabetaf_bArray_nice
1463 #define CZfabetaf_aArray_nice   aircraft_->CZfabetaf_aArray_nice
1464   double CZfadef_aArray[30][100][100];
1465   double CZfadef_deArray[30][100];
1466   double CZfadef_CZArray[30][100][100];
1467   int CZfadef_nAlphaArray[30][100];
1468   int CZfadef_nde[30];
1469   double CZfadef_fArray[30];
1470   int CZfadef_nf;
1471   double CZfadefI;
1472   int CZfadef_nice, CZfadef_na_nice, CZfadef_nde_nice;
1473   double CZfadef_deArray_nice[100];
1474   double CZfadef_aArray_nice[100];
1475 #define CZfadef_aArray         aircraft_->CZfadef_aArray
1476 #define CZfadef_deArray        aircraft_->CZfadef_deArray
1477 #define CZfadef_CZArray        aircraft_->CZfadef_CZArray
1478 #define CZfadef_nAlphaArray    aircraft_->CZfadef_nAlphaArray
1479 #define CZfadef_nde            aircraft_->CZfadef_nde
1480 #define CZfadef_fArray         aircraft_->CZfadef_fArray
1481 #define CZfadef_nf             aircraft_->CZfadef_nf
1482 #define CZfadefI               aircraft_->CZfadefI
1483 #define CZfadef_nice           aircraft_->CZfadef_nice
1484 #define CZfadef_na_nice        aircraft_->CZfadef_na_nice
1485 #define CZfadef_nde_nice       aircraft_->CZfadef_nde_nice
1486 #define CZfadef_deArray_nice   aircraft_->CZfadef_deArray_nice
1487 #define CZfadef_aArray_nice    aircraft_->CZfadef_aArray_nice
1488   double CZfaqf_aArray[30][100][100];
1489   double CZfaqf_qArray[30][100];
1490   double CZfaqf_CZArray[30][100][100];
1491   int CZfaqf_nAlphaArray[30][100];
1492   int CZfaqf_nq[30];
1493   double CZfaqf_fArray[30];
1494   int CZfaqf_nf;
1495   double CZfaqfI;
1496   int CZfaqf_nice, CZfaqf_na_nice, CZfaqf_nq_nice;
1497   double CZfaqf_qArray_nice[100];
1498   double CZfaqf_aArray_nice[100];
1499 #define CZfaqf_aArray         aircraft_->CZfaqf_aArray
1500 #define CZfaqf_qArray         aircraft_->CZfaqf_qArray
1501 #define CZfaqf_CZArray        aircraft_->CZfaqf_CZArray
1502 #define CZfaqf_nAlphaArray    aircraft_->CZfaqf_nAlphaArray
1503 #define CZfaqf_nq             aircraft_->CZfaqf_nq
1504 #define CZfaqf_fArray         aircraft_->CZfaqf_fArray
1505 #define CZfaqf_nf             aircraft_->CZfaqf_nf
1506 #define CZfaqfI               aircraft_->CZfaqfI
1507 #define CZfaqf_nice           aircraft_->CZfaqf_nice
1508 #define CZfaqf_na_nice        aircraft_->CZfaqf_na_nice
1509 #define CZfaqf_nq_nice        aircraft_->CZfaqf_nq_nice
1510 #define CZfaqf_qArray_nice    aircraft_->CZfaqf_qArray_nice
1511 #define CZfaqf_aArray_nice    aircraft_->CZfaqf_aArray_nice
1512   double CLo_save, CL_a_save, CL_adot_save;
1513   double CL_q_save, CL_ih_save, CL_de_save;
1514   double CL_df_save, CL_ds_save, CL_dg_save;
1515   double CZo_save, CZ_a_save, CZ_a2_save;
1516   double CZ_a3_save, CZ_adot_save, CZ_q_save;
1517   double CZ_de_save, CZ_deb2_save, CZ_df_save;
1518   double CZ_adf_save;
1519 #define CLo_save              aircraft_->CLo_save
1520 #define CL_a_save             aircraft_->CL_a_save
1521 #define CL_adot_save          aircraft_->CL_adot_save
1522 #define CL_q_save             aircraft_->CL_q_save
1523 #define CL_ih_save            aircraft_->CL_ih_save
1524 #define CL_de_save            aircraft_->CL_de_save
1525 #define CL_df_save            aircraft_->CL_df_save
1526 #define CL_ds_save            aircraft_->CL_ds_save
1527 #define CL_dg_save            aircraft_->CL_dg_save
1528 #define CZo_save              aircraft_->CZo_save
1529 #define CZ_a_save             aircraft_->CZ_a_save
1530 #define CZ_a2_save            aircraft_->CZ_a2_save
1531 #define CZ_a3_save            aircraft_->CZ_a3_save
1532 #define CZ_adot_save          aircraft_->CZ_adot_save
1533 #define CZ_q_save             aircraft_->CZ_q_save
1534 #define CZ_de_save            aircraft_->CZ_de_save
1535 #define CZ_deb2_save          aircraft_->CZ_deb2_save
1536 #define CZ_df_save            aircraft_->CZ_df_save
1537 #define CZ_adf_save           aircraft_->CZ_adf_save
1538 
1539 
1540   /* Variables (token2) ===========================================*/
1541   /* Cm ============ Aerodynamic m-moment quantities (longitudinal) */
1542 
1543   std::map <string,int> Cm_map;
1544 #define      Cm_map              aircraft_->Cm_map
1545 
1546   double Cmo, Cm_a, Cm_a2, Cm_adot, Cm_q;
1547   double Cm_ih, Cm_de, Cm_b2, Cm_r;
1548   double Cm_df, Cm_ds, Cm_dg;
1549 #define Cmo      aircraft_->Cmo
1550 #define Cm_a     aircraft_->Cm_a
1551 #define Cm_a2    aircraft_->Cm_a2
1552 #define Cm_adot  aircraft_->Cm_adot
1553 #define Cm_q     aircraft_->Cm_q
1554 #define Cm_ih    aircraft_->Cm_ih
1555 #define Cm_de    aircraft_->Cm_de
1556 #define Cm_b2    aircraft_->Cm_b2
1557 #define Cm_r     aircraft_->Cm_r
1558 #define Cm_df    aircraft_->Cm_df
1559 #define Cm_ds    aircraft_->Cm_ds
1560 #define Cm_dg    aircraft_->Cm_dg
1561   string Cmfa;
1562   double Cmfa_aArray[100];
1563   double Cmfa_CmArray[100];
1564   int Cmfa_nAlpha;
1565   double CmfaI;
1566 #define Cmfa               aircraft_->Cmfa
1567 #define Cmfa_aArray        aircraft_->Cmfa_aArray
1568 #define Cmfa_CmArray       aircraft_->Cmfa_CmArray
1569 #define Cmfa_nAlpha        aircraft_->Cmfa_nAlpha
1570 #define CmfaI              aircraft_->CmfaI
1571   string Cmfade;
1572   double Cmfade_aArray[100][100];
1573   double Cmfade_deArray[100];
1574   double Cmfade_CmArray[100][100];
1575   int Cmfade_nAlphaArray[100];
1576   int Cmfade_nde;
1577   double CmfadeI;
1578 #define Cmfade             aircraft_->Cmfade
1579 #define Cmfade_aArray      aircraft_->Cmfade_aArray
1580 #define Cmfade_deArray     aircraft_->Cmfade_deArray
1581 #define Cmfade_CmArray     aircraft_->Cmfade_CmArray
1582 #define Cmfade_nAlphaArray aircraft_->Cmfade_nAlphaArray
1583 #define Cmfade_nde         aircraft_->Cmfade_nde
1584 #define CmfadeI            aircraft_->CmfadeI
1585 
1586   // induced flow in slipstream impinging on tail
1587   double w_induced;
1588 #define w_induced          aircraft_->w_induced
1589 
1590 
1591   string Cmfdf;
1592   double Cmfdf_dfArray[100];
1593   double Cmfdf_CmArray[100];
1594   int Cmfdf_ndf;
1595   double CmfdfI;
1596 #define Cmfdf              aircraft_->Cmfdf
1597 #define Cmfdf_dfArray      aircraft_->Cmfdf_dfArray
1598 #define Cmfdf_CmArray      aircraft_->Cmfdf_CmArray
1599 #define Cmfdf_ndf          aircraft_->Cmfdf_ndf
1600 #define CmfdfI             aircraft_->CmfdfI
1601   string Cmfadf;
1602   double Cmfadf_aArray[100][100];
1603   double Cmfadf_dfArray[100];
1604   double Cmfadf_CmArray[100][100];
1605   int Cmfadf_nAlphaArray[100];
1606   int Cmfadf_ndf;
1607   double CmfadfI;
1608 #define Cmfadf             aircraft_->Cmfadf
1609 #define Cmfadf_aArray      aircraft_->Cmfadf_aArray
1610 #define Cmfadf_dfArray     aircraft_->Cmfadf_dfArray
1611 #define Cmfadf_CmArray     aircraft_->Cmfadf_CmArray
1612 #define Cmfadf_nAlphaArray aircraft_->Cmfadf_nAlphaArray
1613 #define Cmfadf_ndf         aircraft_->Cmfadf_ndf
1614 #define CmfadfI            aircraft_->CmfadfI
1615   double Cmfabetaf_aArray[30][100][100];
1616   double Cmfabetaf_betaArray[30][100];
1617   double Cmfabetaf_CmArray[30][100][100];
1618   int Cmfabetaf_nAlphaArray[30][100];
1619   int Cmfabetaf_nbeta[30];
1620   double Cmfabetaf_fArray[30];
1621   int Cmfabetaf_nf;
1622   double CmfabetafI;
1623   int Cmfabetaf_nice, Cmfabetaf_na_nice, Cmfabetaf_nb_nice;
1624   double Cmfabetaf_bArray_nice[100];
1625   double Cmfabetaf_aArray_nice[100];
1626 #define Cmfabetaf_aArray        aircraft_->Cmfabetaf_aArray
1627 #define Cmfabetaf_betaArray     aircraft_->Cmfabetaf_betaArray
1628 #define Cmfabetaf_CmArray       aircraft_->Cmfabetaf_CmArray
1629 #define Cmfabetaf_nAlphaArray   aircraft_->Cmfabetaf_nAlphaArray
1630 #define Cmfabetaf_nbeta         aircraft_->Cmfabetaf_nbeta
1631 #define Cmfabetaf_fArray        aircraft_->Cmfabetaf_fArray
1632 #define Cmfabetaf_nf            aircraft_->Cmfabetaf_nf
1633 #define CmfabetafI              aircraft_->CmfabetafI
1634 #define Cmfabetaf_nice          aircraft_->Cmfabetaf_nice
1635 #define Cmfabetaf_na_nice       aircraft_->Cmfabetaf_na_nice
1636 #define Cmfabetaf_nb_nice       aircraft_->Cmfabetaf_nb_nice
1637 #define Cmfabetaf_bArray_nice   aircraft_->Cmfabetaf_bArray_nice
1638 #define Cmfabetaf_aArray_nice   aircraft_->Cmfabetaf_aArray_nice
1639   double Cmfadef_aArray[30][100][100];
1640   double Cmfadef_deArray[30][100];
1641   double Cmfadef_CmArray[30][100][100];
1642   int Cmfadef_nAlphaArray[30][100];
1643   int Cmfadef_nde[30];
1644   double Cmfadef_fArray[30];
1645   int Cmfadef_nf;
1646   double CmfadefI;
1647   int Cmfadef_nice, Cmfadef_na_nice, Cmfadef_nde_nice;
1648   double Cmfadef_deArray_nice[100];
1649   double Cmfadef_aArray_nice[100];
1650 #define Cmfadef_aArray        aircraft_->Cmfadef_aArray
1651 #define Cmfadef_deArray       aircraft_->Cmfadef_deArray
1652 #define Cmfadef_CmArray       aircraft_->Cmfadef_CmArray
1653 #define Cmfadef_nAlphaArray   aircraft_->Cmfadef_nAlphaArray
1654 #define Cmfadef_nde           aircraft_->Cmfadef_nde
1655 #define Cmfadef_fArray        aircraft_->Cmfadef_fArray
1656 #define Cmfadef_nf            aircraft_->Cmfadef_nf
1657 #define CmfadefI              aircraft_->CmfadefI
1658 #define Cmfadef_nice          aircraft_->Cmfadef_nice
1659 #define Cmfadef_na_nice       aircraft_->Cmfadef_na_nice
1660 #define Cmfadef_nde_nice      aircraft_->Cmfadef_nde_nice
1661 #define Cmfadef_deArray_nice  aircraft_->Cmfadef_deArray_nice
1662 #define Cmfadef_aArray_nice   aircraft_->Cmfadef_aArray_nice
1663   double Cmfaqf_aArray[30][100][100];
1664   double Cmfaqf_qArray[30][100];
1665   double Cmfaqf_CmArray[30][100][100];
1666   int Cmfaqf_nAlphaArray[30][100];
1667   int Cmfaqf_nq[30];
1668   double Cmfaqf_fArray[30];
1669   int Cmfaqf_nf;
1670   double CmfaqfI;
1671   int Cmfaqf_nice, Cmfaqf_na_nice, Cmfaqf_nq_nice;
1672   double Cmfaqf_qArray_nice[100];
1673   double Cmfaqf_aArray_nice[100];
1674 #define Cmfaqf_aArray        aircraft_->Cmfaqf_aArray
1675 #define Cmfaqf_qArray        aircraft_->Cmfaqf_qArray
1676 #define Cmfaqf_CmArray       aircraft_->Cmfaqf_CmArray
1677 #define Cmfaqf_nAlphaArray   aircraft_->Cmfaqf_nAlphaArray
1678 #define Cmfaqf_nq            aircraft_->Cmfaqf_nq
1679 #define Cmfaqf_fArray        aircraft_->Cmfaqf_fArray
1680 #define Cmfaqf_nf            aircraft_->Cmfaqf_nf
1681 #define CmfaqfI              aircraft_->CmfaqfI
1682 #define Cmfaqf_nice          aircraft_->Cmfaqf_nice
1683 #define Cmfaqf_na_nice       aircraft_->Cmfaqf_na_nice
1684 #define Cmfaqf_nq_nice       aircraft_->Cmfaqf_nq_nice
1685 #define Cmfaqf_qArray_nice   aircraft_->Cmfaqf_qArray_nice
1686 #define Cmfaqf_aArray_nice   aircraft_->Cmfaqf_aArray_nice
1687   double Cmo_save, Cm_a_save, Cm_a2_save, Cm_adot_save, Cm_q_save, Cm_ih_save;
1688   double Cm_de_save, Cm_b2_save, Cm_r_save;
1689   double Cm_df_save, Cm_ds_save, Cm_dg_save;
1690 #define Cmo_save             aircraft_->Cmo_save
1691 #define Cm_a_save            aircraft_->Cm_a_save
1692 #define Cm_a2_save           aircraft_->Cm_a2_save
1693 #define Cm_adot_save         aircraft_->Cm_adot_save
1694 #define Cm_q_save            aircraft_->Cm_q_save
1695 #define Cm_ih_save           aircraft_->Cm_ih_save
1696 #define Cm_de_save           aircraft_->Cm_de_save
1697 #define Cm_b2_save           aircraft_->Cm_b2_save
1698 #define Cm_r_save            aircraft_->Cm_r_save
1699 #define Cm_df_save           aircraft_->Cm_df_save
1700 #define Cm_ds_save           aircraft_->Cm_ds_save
1701 #define Cm_dg_save           aircraft_->Cm_dg_save
1702 
1703 
1704   /* Variables (token2) ===========================================*/
1705   /* CY ============ Aerodynamic y-force quantities (lateral) =====*/
1706 
1707   std::map <string,int> CY_map;
1708 #define      CY_map              aircraft_->CY_map
1709 
1710   double CYo, CY_beta, CY_p, CY_r, CY_da, CY_dr, CY_dra, CY_bdot;
1711 #define CYo      aircraft_->CYo
1712 #define CY_beta  aircraft_->CY_beta
1713 #define CY_p     aircraft_->CY_p
1714 #define CY_r     aircraft_->CY_r
1715 #define CY_da    aircraft_->CY_da
1716 #define CY_dr    aircraft_->CY_dr
1717 #define CY_dra   aircraft_->CY_dra
1718 #define CY_bdot  aircraft_->CY_bdot
1719   string CYfada;
1720   double CYfada_aArray[100][100];
1721   double CYfada_daArray[100];
1722   double CYfada_CYArray[100][100];
1723   int CYfada_nAlphaArray[100];
1724   int CYfada_nda;
1725   double CYfadaI;
1726 #define CYfada             aircraft_->CYfada
1727 #define CYfada_aArray      aircraft_->CYfada_aArray
1728 #define CYfada_daArray     aircraft_->CYfada_daArray
1729 #define CYfada_CYArray     aircraft_->CYfada_CYArray
1730 #define CYfada_nAlphaArray aircraft_->CYfada_nAlphaArray
1731 #define CYfada_nda         aircraft_->CYfada_nda
1732 #define CYfadaI            aircraft_->CYfadaI
1733   string CYfbetadr;
1734   double CYfbetadr_betaArray[100][100];
1735   double CYfbetadr_drArray[100];
1736   double CYfbetadr_CYArray[100][100];
1737   int CYfbetadr_nBetaArray[100];
1738   int CYfbetadr_ndr;
1739   double CYfbetadrI;
1740 #define CYfbetadr             aircraft_->CYfbetadr
1741 #define CYfbetadr_betaArray   aircraft_->CYfbetadr_betaArray
1742 #define CYfbetadr_drArray     aircraft_->CYfbetadr_drArray
1743 #define CYfbetadr_CYArray     aircraft_->CYfbetadr_CYArray
1744 #define CYfbetadr_nBetaArray  aircraft_->CYfbetadr_nBetaArray
1745 #define CYfbetadr_ndr         aircraft_->CYfbetadr_ndr
1746 #define CYfbetadrI            aircraft_->CYfbetadrI
1747   double CYfabetaf_aArray[30][100][100];
1748   double CYfabetaf_betaArray[30][100];
1749   double CYfabetaf_CYArray[30][100][100];
1750   int CYfabetaf_nAlphaArray[30][100];
1751   int CYfabetaf_nbeta[30];
1752   double CYfabetaf_fArray[30];
1753   int CYfabetaf_nf;
1754   double CYfabetafI;
1755   int CYfabetaf_nice, CYfabetaf_na_nice, CYfabetaf_nb_nice;
1756   double CYfabetaf_bArray_nice[100];
1757   double CYfabetaf_aArray_nice[100];
1758 #define CYfabetaf_aArray        aircraft_->CYfabetaf_aArray
1759 #define CYfabetaf_betaArray     aircraft_->CYfabetaf_betaArray
1760 #define CYfabetaf_CYArray       aircraft_->CYfabetaf_CYArray
1761 #define CYfabetaf_nAlphaArray   aircraft_->CYfabetaf_nAlphaArray
1762 #define CYfabetaf_nbeta         aircraft_->CYfabetaf_nbeta
1763 #define CYfabetaf_fArray        aircraft_->CYfabetaf_fArray
1764 #define CYfabetaf_nf            aircraft_->CYfabetaf_nf
1765 #define CYfabetafI              aircraft_->CYfabetafI
1766 #define CYfabetaf_nice          aircraft_->CYfabetaf_nice
1767 #define CYfabetaf_na_nice       aircraft_->CYfabetaf_na_nice
1768 #define CYfabetaf_nb_nice       aircraft_->CYfabetaf_nb_nice
1769 #define CYfabetaf_bArray_nice   aircraft_->CYfabetaf_bArray_nice
1770 #define CYfabetaf_aArray_nice   aircraft_->CYfabetaf_aArray_nice
1771   double CYfadaf_aArray[30][100][100];
1772   double CYfadaf_daArray[30][100];
1773   double CYfadaf_CYArray[30][100][100];
1774   int CYfadaf_nAlphaArray[30][100];
1775   int CYfadaf_nda[30];
1776   double CYfadaf_fArray[30];
1777   int CYfadaf_nf;
1778   double CYfadafI;
1779   int CYfadaf_nice, CYfadaf_na_nice, CYfadaf_nda_nice;
1780   double CYfadaf_daArray_nice[100];
1781   double CYfadaf_aArray_nice[100];
1782 #define CYfadaf_aArray        aircraft_->CYfadaf_aArray
1783 #define CYfadaf_daArray       aircraft_->CYfadaf_daArray
1784 #define CYfadaf_CYArray       aircraft_->CYfadaf_CYArray
1785 #define CYfadaf_nAlphaArray   aircraft_->CYfadaf_nAlphaArray
1786 #define CYfadaf_nda           aircraft_->CYfadaf_nda
1787 #define CYfadaf_fArray        aircraft_->CYfadaf_fArray
1788 #define CYfadaf_nf            aircraft_->CYfadaf_nf
1789 #define CYfadafI              aircraft_->CYfadafI
1790 #define CYfadaf_nice          aircraft_->CYfadaf_nice
1791 #define CYfadaf_na_nice       aircraft_->CYfadaf_na_nice
1792 #define CYfadaf_nda_nice      aircraft_->CYfadaf_nda_nice
1793 #define CYfadaf_daArray_nice  aircraft_->CYfadaf_daArray_nice
1794 #define CYfadaf_aArray_nice   aircraft_->CYfadaf_aArray_nice
1795   double CYfadrf_aArray[30][100][100];
1796   double CYfadrf_drArray[30][100];
1797   double CYfadrf_CYArray[30][100][100];
1798   int CYfadrf_nAlphaArray[30][100];
1799   int CYfadrf_ndr[30];
1800   double CYfadrf_fArray[30];
1801   int CYfadrf_nf;
1802   double CYfadrfI;
1803   int CYfadrf_nice, CYfadrf_na_nice, CYfadrf_ndr_nice;
1804   double CYfadrf_drArray_nice[100];
1805   double CYfadrf_aArray_nice[100];
1806 #define CYfadrf_aArray        aircraft_->CYfadrf_aArray
1807 #define CYfadrf_drArray       aircraft_->CYfadrf_drArray
1808 #define CYfadrf_CYArray       aircraft_->CYfadrf_CYArray
1809 #define CYfadrf_nAlphaArray   aircraft_->CYfadrf_nAlphaArray
1810 #define CYfadrf_ndr           aircraft_->CYfadrf_ndr
1811 #define CYfadrf_fArray        aircraft_->CYfadrf_fArray
1812 #define CYfadrf_nf            aircraft_->CYfadrf_nf
1813 #define CYfadrfI              aircraft_->CYfadrfI
1814 #define CYfadrf_nice          aircraft_->CYfadrf_nice
1815 #define CYfadrf_na_nice       aircraft_->CYfadrf_na_nice
1816 #define CYfadrf_ndr_nice      aircraft_->CYfadrf_ndr_nice
1817 #define CYfadrf_drArray_nice  aircraft_->CYfadrf_drArray_nice
1818 #define CYfadrf_aArray_nice   aircraft_->CYfadrf_aArray_nice
1819   double CYfapf_aArray[30][100][100];
1820   double CYfapf_pArray[30][100];
1821   double CYfapf_CYArray[30][100][100];
1822   int CYfapf_nAlphaArray[30][100];
1823   int CYfapf_np[30];
1824   double CYfapf_fArray[30];
1825   int CYfapf_nf;
1826   double CYfapfI;
1827   int CYfapf_nice, CYfapf_na_nice, CYfapf_np_nice;
1828   double CYfapf_pArray_nice[100];
1829   double CYfapf_aArray_nice[100];
1830 #define CYfapf_aArray        aircraft_->CYfapf_aArray
1831 #define CYfapf_pArray        aircraft_->CYfapf_pArray
1832 #define CYfapf_CYArray       aircraft_->CYfapf_CYArray
1833 #define CYfapf_nAlphaArray   aircraft_->CYfapf_nAlphaArray
1834 #define CYfapf_np            aircraft_->CYfapf_np
1835 #define CYfapf_fArray        aircraft_->CYfapf_fArray
1836 #define CYfapf_nf            aircraft_->CYfapf_nf
1837 #define CYfapfI              aircraft_->CYfapfI
1838 #define CYfapf_nice          aircraft_->CYfapf_nice
1839 #define CYfapf_na_nice       aircraft_->CYfapf_na_nice
1840 #define CYfapf_np_nice       aircraft_->CYfapf_np_nice
1841 #define CYfapf_pArray_nice   aircraft_->CYfapf_pArray_nice
1842 #define CYfapf_aArray_nice   aircraft_->CYfapf_aArray_nice
1843   double CYfarf_aArray[30][100][100];
1844   double CYfarf_rArray[30][100];
1845   double CYfarf_CYArray[30][100][100];
1846   int CYfarf_nAlphaArray[30][100];
1847   int CYfarf_nr[30];
1848   double CYfarf_fArray[30];
1849   int CYfarf_nf;
1850   double CYfarfI;
1851   int CYfarf_nice, CYfarf_na_nice, CYfarf_nr_nice;
1852   double CYfarf_rArray_nice[100];
1853   double CYfarf_aArray_nice[100];
1854 #define CYfarf_aArray        aircraft_->CYfarf_aArray
1855 #define CYfarf_rArray        aircraft_->CYfarf_rArray
1856 #define CYfarf_CYArray       aircraft_->CYfarf_CYArray
1857 #define CYfarf_nAlphaArray   aircraft_->CYfarf_nAlphaArray
1858 #define CYfarf_nr            aircraft_->CYfarf_nr
1859 #define CYfarf_fArray        aircraft_->CYfarf_fArray
1860 #define CYfarf_nf            aircraft_->CYfarf_nf
1861 #define CYfarfI              aircraft_->CYfarfI
1862 #define CYfarf_nice          aircraft_->CYfarf_nice
1863 #define CYfarf_na_nice       aircraft_->CYfarf_na_nice
1864 #define CYfarf_nr_nice       aircraft_->CYfarf_nr_nice
1865 #define CYfarf_rArray_nice   aircraft_->CYfarf_rArray_nice
1866 #define CYfarf_aArray_nice   aircraft_->CYfarf_aArray_nice
1867   double CYo_save, CY_beta_save, CY_p_save, CY_r_save, CY_da_save, CY_dr_save;
1868   double CY_dra_save, CY_bdot_save;
1869 #define CYo_save             aircraft_->CYo_save
1870 #define CY_beta_save         aircraft_->CY_beta_save
1871 #define CY_p_save            aircraft_->CY_p_save
1872 #define CY_r_save            aircraft_->CY_r_save
1873 #define CY_da_save           aircraft_->CY_da_save
1874 #define CY_dr_save           aircraft_->CY_dr_save
1875 #define CY_dra_save          aircraft_->CY_dra_save
1876 #define CY_bdot_save         aircraft_->CY_bdot_save
1877 
1878 
1879   /* Variables (token2) ===========================================*/
1880   /* Cl ============ Aerodynamic l-moment quantities (lateral) ====*/
1881 
1882   std::map <string,int> Cl_map;
1883 #define      Cl_map              aircraft_->Cl_map
1884 
1885   double Clo, Cl_beta, Cl_p, Cl_r, Cl_da, Cl_dr, Cl_daa;
1886 #define Clo      aircraft_->Clo
1887 #define Cl_beta  aircraft_->Cl_beta
1888 #define Cl_p     aircraft_->Cl_p
1889 #define Cl_r     aircraft_->Cl_r
1890 #define Cl_da    aircraft_->Cl_da
1891 #define Cl_dr    aircraft_->Cl_dr
1892 #define Cl_daa   aircraft_->Cl_daa
1893   string Clfada;
1894   double Clfada_aArray[100][100];
1895   double Clfada_daArray[100];
1896   double Clfada_ClArray[100][100];
1897   int Clfada_nAlphaArray[100];
1898   int Clfada_nda;
1899   double ClfadaI;
1900 #define Clfada             aircraft_->Clfada
1901 #define Clfada_aArray      aircraft_->Clfada_aArray
1902 #define Clfada_daArray     aircraft_->Clfada_daArray
1903 #define Clfada_ClArray     aircraft_->Clfada_ClArray
1904 #define Clfada_nAlphaArray aircraft_->Clfada_nAlphaArray
1905 #define Clfada_nda         aircraft_->Clfada_nda
1906 #define ClfadaI            aircraft_->ClfadaI
1907   string Clfbetadr;
1908   double Clfbetadr_betaArray[100][100];
1909   double Clfbetadr_drArray[100];
1910   double Clfbetadr_ClArray[100][100];
1911   int Clfbetadr_nBetaArray[100];
1912   int Clfbetadr_ndr;
1913   double ClfbetadrI;
1914 #define Clfbetadr             aircraft_->Clfbetadr
1915 #define Clfbetadr_betaArray   aircraft_->Clfbetadr_betaArray
1916 #define Clfbetadr_drArray     aircraft_->Clfbetadr_drArray
1917 #define Clfbetadr_ClArray     aircraft_->Clfbetadr_ClArray
1918 #define Clfbetadr_nBetaArray  aircraft_->Clfbetadr_nBetaArray
1919 #define Clfbetadr_ndr         aircraft_->Clfbetadr_ndr
1920 #define ClfbetadrI            aircraft_->ClfbetadrI
1921   double Clfabetaf_aArray[30][100][100];
1922   double Clfabetaf_betaArray[30][100];
1923   double Clfabetaf_ClArray[30][100][100];
1924   int Clfabetaf_nAlphaArray[30][100];
1925   int Clfabetaf_nbeta[30];
1926   double Clfabetaf_fArray[30];
1927   int Clfabetaf_nf;
1928   double ClfabetafI;
1929   int Clfabetaf_nice, Clfabetaf_na_nice, Clfabetaf_nb_nice;
1930   double Clfabetaf_bArray_nice[100];
1931   double Clfabetaf_aArray_nice[100];
1932 #define Clfabetaf_aArray        aircraft_->Clfabetaf_aArray
1933 #define Clfabetaf_betaArray     aircraft_->Clfabetaf_betaArray
1934 #define Clfabetaf_ClArray       aircraft_->Clfabetaf_ClArray
1935 #define Clfabetaf_nAlphaArray   aircraft_->Clfabetaf_nAlphaArray
1936 #define Clfabetaf_nbeta         aircraft_->Clfabetaf_nbeta
1937 #define Clfabetaf_fArray        aircraft_->Clfabetaf_fArray
1938 #define Clfabetaf_nf            aircraft_->Clfabetaf_nf
1939 #define ClfabetafI              aircraft_->ClfabetafI
1940 #define Clfabetaf_nice          aircraft_->Clfabetaf_nice
1941 #define Clfabetaf_na_nice       aircraft_->Clfabetaf_na_nice
1942 #define Clfabetaf_nb_nice       aircraft_->Clfabetaf_nb_nice
1943 #define Clfabetaf_bArray_nice   aircraft_->Clfabetaf_bArray_nice
1944 #define Clfabetaf_aArray_nice   aircraft_->Clfabetaf_aArray_nice
1945   double Clfadaf_aArray[30][100][100];
1946   double Clfadaf_daArray[30][100];
1947   double Clfadaf_ClArray[30][100][100];
1948   int Clfadaf_nAlphaArray[30][100];
1949   int Clfadaf_nda[30];
1950   double Clfadaf_fArray[30];
1951   int Clfadaf_nf;
1952   double ClfadafI;
1953   int Clfadaf_nice, Clfadaf_na_nice, Clfadaf_nda_nice;
1954   double Clfadaf_daArray_nice[100];
1955   double Clfadaf_aArray_nice[100];
1956 #define Clfadaf_aArray        aircraft_->Clfadaf_aArray
1957 #define Clfadaf_daArray       aircraft_->Clfadaf_daArray
1958 #define Clfadaf_ClArray       aircraft_->Clfadaf_ClArray
1959 #define Clfadaf_nAlphaArray   aircraft_->Clfadaf_nAlphaArray
1960 #define Clfadaf_nda           aircraft_->Clfadaf_nda
1961 #define Clfadaf_fArray        aircraft_->Clfadaf_fArray
1962 #define Clfadaf_nf            aircraft_->Clfadaf_nf
1963 #define ClfadafI              aircraft_->ClfadafI
1964 #define Clfadaf_nice          aircraft_->Clfadaf_nice
1965 #define Clfadaf_na_nice       aircraft_->Clfadaf_na_nice
1966 #define Clfadaf_nda_nice      aircraft_->Clfadaf_nda_nice
1967 #define Clfadaf_daArray_nice  aircraft_->Clfadaf_daArray_nice
1968 #define Clfadaf_aArray_nice   aircraft_->Clfadaf_aArray_nice
1969   double Clfadrf_aArray[30][100][100];
1970   double Clfadrf_drArray[30][100];
1971   double Clfadrf_ClArray[30][100][100];
1972   int Clfadrf_nAlphaArray[30][100];
1973   int Clfadrf_ndr[30];
1974   double Clfadrf_fArray[30];
1975   int Clfadrf_nf;
1976   double ClfadrfI;
1977   int Clfadrf_nice, Clfadrf_na_nice, Clfadrf_ndr_nice;
1978   double Clfadrf_drArray_nice[100];
1979   double Clfadrf_aArray_nice[100];
1980 #define Clfadrf_aArray        aircraft_->Clfadrf_aArray
1981 #define Clfadrf_drArray       aircraft_->Clfadrf_drArray
1982 #define Clfadrf_ClArray       aircraft_->Clfadrf_ClArray
1983 #define Clfadrf_nAlphaArray   aircraft_->Clfadrf_nAlphaArray
1984 #define Clfadrf_ndr           aircraft_->Clfadrf_ndr
1985 #define Clfadrf_fArray        aircraft_->Clfadrf_fArray
1986 #define Clfadrf_nf            aircraft_->Clfadrf_nf
1987 #define ClfadrfI              aircraft_->ClfadrfI
1988 #define Clfadrf_nice          aircraft_->Clfadrf_nice
1989 #define Clfadrf_na_nice       aircraft_->Clfadrf_na_nice
1990 #define Clfadrf_ndr_nice      aircraft_->Clfadrf_ndr_nice
1991 #define Clfadrf_drArray_nice  aircraft_->Clfadrf_drArray_nice
1992 #define Clfadrf_aArray_nice   aircraft_->Clfadrf_aArray_nice
1993   double Clfapf_aArray[30][100][100];
1994   double Clfapf_pArray[30][100];
1995   double Clfapf_ClArray[30][100][100];
1996   int Clfapf_nAlphaArray[30][100];
1997   int Clfapf_np[30];
1998   double Clfapf_fArray[30];
1999   int Clfapf_nf;
2000   double ClfapfI;
2001   int Clfapf_nice, Clfapf_na_nice, Clfapf_np_nice;
2002   double Clfapf_pArray_nice[100];
2003   double Clfapf_aArray_nice[100];
2004 #define Clfapf_aArray        aircraft_->Clfapf_aArray
2005 #define Clfapf_pArray        aircraft_->Clfapf_pArray
2006 #define Clfapf_ClArray       aircraft_->Clfapf_ClArray
2007 #define Clfapf_nAlphaArray   aircraft_->Clfapf_nAlphaArray
2008 #define Clfapf_np            aircraft_->Clfapf_np
2009 #define Clfapf_fArray        aircraft_->Clfapf_fArray
2010 #define Clfapf_nf            aircraft_->Clfapf_nf
2011 #define ClfapfI              aircraft_->ClfapfI
2012 #define Clfapf_nice          aircraft_->Clfapf_nice
2013 #define Clfapf_na_nice       aircraft_->Clfapf_na_nice
2014 #define Clfapf_np_nice       aircraft_->Clfapf_np_nice
2015 #define Clfapf_pArray_nice   aircraft_->Clfapf_pArray_nice
2016 #define Clfapf_aArray_nice   aircraft_->Clfapf_aArray_nice
2017   double Clfarf_aArray[30][100][100];
2018   double Clfarf_rArray[30][100];
2019   double Clfarf_ClArray[30][100][100];
2020   int Clfarf_nAlphaArray[30][100];
2021   int Clfarf_nr[30];
2022   double Clfarf_fArray[30];
2023   int Clfarf_nf;
2024   double ClfarfI;
2025   int Clfarf_nice, Clfarf_na_nice, Clfarf_nr_nice;
2026   double Clfarf_rArray_nice[100];
2027   double Clfarf_aArray_nice[100];
2028 #define Clfarf_aArray        aircraft_->Clfarf_aArray
2029 #define Clfarf_rArray        aircraft_->Clfarf_rArray
2030 #define Clfarf_ClArray       aircraft_->Clfarf_ClArray
2031 #define Clfarf_nAlphaArray   aircraft_->Clfarf_nAlphaArray
2032 #define Clfarf_nr            aircraft_->Clfarf_nr
2033 #define Clfarf_fArray        aircraft_->Clfarf_fArray
2034 #define Clfarf_nf            aircraft_->Clfarf_nf
2035 #define ClfarfI              aircraft_->ClfarfI
2036 #define Clfarf_nice          aircraft_->Clfarf_nice
2037 #define Clfarf_na_nice       aircraft_->Clfarf_na_nice
2038 #define Clfarf_nr_nice       aircraft_->Clfarf_nr_nice
2039 #define Clfarf_rArray_nice   aircraft_->Clfarf_rArray_nice
2040 #define Clfarf_aArray_nice   aircraft_->Clfarf_aArray_nice
2041   double Clo_save, Cl_beta_save, Cl_p_save, Cl_r_save, Cl_da_save;
2042   double Cl_dr_save, Cl_daa_save;
2043 #define Clo_save             aircraft_->Clo_save
2044 #define Cl_beta_save         aircraft_->Cl_beta_save
2045 #define Cl_p_save            aircraft_->Cl_p_save
2046 #define Cl_r_save            aircraft_->Cl_r_save
2047 #define Cl_da_save           aircraft_->Cl_da_save
2048 #define Cl_dr_save           aircraft_->Cl_dr_save
2049 #define Cl_daa_save          aircraft_->Cl_daa_save
2050 
2051 
2052   /* Variables (token2) ===========================================*/
2053   /* Cn ============ Aerodynamic n-moment quantities (lateral) ====*/
2054 
2055   std::map <string,int> Cn_map;
2056 #define      Cn_map              aircraft_->Cn_map
2057 
2058   double Cno, Cn_beta, Cn_p, Cn_r, Cn_da, Cn_dr, Cn_q, Cn_b3;
2059 #define Cno      aircraft_->Cno
2060 #define Cn_beta  aircraft_->Cn_beta
2061 #define Cn_p     aircraft_->Cn_p
2062 #define Cn_r     aircraft_->Cn_r
2063 #define Cn_da    aircraft_->Cn_da
2064 #define Cn_dr    aircraft_->Cn_dr
2065 #define Cn_q     aircraft_->Cn_q
2066 #define Cn_b3    aircraft_->Cn_b3
2067   string Cnfada;
2068   double Cnfada_aArray[100][100];
2069   double Cnfada_daArray[100];
2070   double Cnfada_CnArray[100][100];
2071   int Cnfada_nAlphaArray[100];
2072   int Cnfada_nda;
2073   double CnfadaI;
2074 #define Cnfada             aircraft_->Cnfada
2075 #define Cnfada_aArray      aircraft_->Cnfada_aArray
2076 #define Cnfada_daArray     aircraft_->Cnfada_daArray
2077 #define Cnfada_CnArray     aircraft_->Cnfada_CnArray
2078 #define Cnfada_nAlphaArray aircraft_->Cnfada_nAlphaArray
2079 #define Cnfada_nda         aircraft_->Cnfada_nda
2080 #define CnfadaI            aircraft_->CnfadaI
2081   string Cnfbetadr;
2082   double Cnfbetadr_betaArray[100][100];
2083   double Cnfbetadr_drArray[100];
2084   double Cnfbetadr_CnArray[100][100];
2085   int Cnfbetadr_nBetaArray[100];
2086   int Cnfbetadr_ndr;
2087   double CnfbetadrI;
2088 #define Cnfbetadr             aircraft_->Cnfbetadr
2089 #define Cnfbetadr_betaArray   aircraft_->Cnfbetadr_betaArray
2090 #define Cnfbetadr_drArray     aircraft_->Cnfbetadr_drArray
2091 #define Cnfbetadr_CnArray     aircraft_->Cnfbetadr_CnArray
2092 #define Cnfbetadr_nBetaArray  aircraft_->Cnfbetadr_nBetaArray
2093 #define Cnfbetadr_ndr         aircraft_->Cnfbetadr_ndr
2094 #define CnfbetadrI            aircraft_->CnfbetadrI
2095   double Cnfabetaf_aArray[30][100][100];
2096   double Cnfabetaf_betaArray[30][100];
2097   double Cnfabetaf_CnArray[30][100][100];
2098   int Cnfabetaf_nAlphaArray[30][100];
2099   int Cnfabetaf_nbeta[30];
2100   double Cnfabetaf_fArray[30];
2101   int Cnfabetaf_nf;
2102   double CnfabetafI;
2103   int Cnfabetaf_nice, Cnfabetaf_na_nice, Cnfabetaf_nb_nice;
2104   double Cnfabetaf_bArray_nice[100];
2105   double Cnfabetaf_aArray_nice[100];
2106 #define Cnfabetaf_aArray        aircraft_->Cnfabetaf_aArray
2107 #define Cnfabetaf_betaArray     aircraft_->Cnfabetaf_betaArray
2108 #define Cnfabetaf_CnArray       aircraft_->Cnfabetaf_CnArray
2109 #define Cnfabetaf_nAlphaArray   aircraft_->Cnfabetaf_nAlphaArray
2110 #define Cnfabetaf_nbeta         aircraft_->Cnfabetaf_nbeta
2111 #define Cnfabetaf_fArray        aircraft_->Cnfabetaf_fArray
2112 #define Cnfabetaf_nf            aircraft_->Cnfabetaf_nf
2113 #define CnfabetafI              aircraft_->CnfabetafI
2114 #define Cnfabetaf_nice          aircraft_->Cnfabetaf_nice
2115 #define Cnfabetaf_na_nice       aircraft_->Cnfabetaf_na_nice
2116 #define Cnfabetaf_nb_nice       aircraft_->Cnfabetaf_nb_nice
2117 #define Cnfabetaf_bArray_nice   aircraft_->Cnfabetaf_bArray_nice
2118 #define Cnfabetaf_aArray_nice   aircraft_->Cnfabetaf_aArray_nice
2119   double Cnfadaf_aArray[30][100][100];
2120   double Cnfadaf_daArray[30][100];
2121   double Cnfadaf_CnArray[30][100][100];
2122   int Cnfadaf_nAlphaArray[30][100];
2123   int Cnfadaf_nda[30];
2124   double Cnfadaf_fArray[30];
2125   int Cnfadaf_nf;
2126   double CnfadafI;
2127   int Cnfadaf_nice, Cnfadaf_na_nice, Cnfadaf_nda_nice;
2128   double Cnfadaf_daArray_nice[100];
2129   double Cnfadaf_aArray_nice[100];
2130 #define Cnfadaf_aArray        aircraft_->Cnfadaf_aArray
2131 #define Cnfadaf_daArray       aircraft_->Cnfadaf_daArray
2132 #define Cnfadaf_CnArray       aircraft_->Cnfadaf_CnArray
2133 #define Cnfadaf_nAlphaArray   aircraft_->Cnfadaf_nAlphaArray
2134 #define Cnfadaf_nda           aircraft_->Cnfadaf_nda
2135 #define Cnfadaf_fArray        aircraft_->Cnfadaf_fArray
2136 #define Cnfadaf_nf            aircraft_->Cnfadaf_nf
2137 #define CnfadafI              aircraft_->CnfadafI
2138 #define Cnfadaf_nice          aircraft_->Cnfadaf_nice
2139 #define Cnfadaf_na_nice       aircraft_->Cnfadaf_na_nice
2140 #define Cnfadaf_nda_nice      aircraft_->Cnfadaf_nda_nice
2141 #define Cnfadaf_daArray_nice  aircraft_->Cnfadaf_daArray_nice
2142 #define Cnfadaf_aArray_nice   aircraft_->Cnfadaf_aArray_nice
2143   double Cnfadrf_aArray[30][100][100];
2144   double Cnfadrf_drArray[30][100];
2145   double Cnfadrf_CnArray[30][100][100];
2146   int Cnfadrf_nAlphaArray[30][100];
2147   int Cnfadrf_ndr[30];
2148   double Cnfadrf_fArray[30];
2149   int Cnfadrf_nf;
2150   double CnfadrfI;
2151   int Cnfadrf_nice, Cnfadrf_na_nice, Cnfadrf_ndr_nice;
2152   double Cnfadrf_drArray_nice[100];
2153   double Cnfadrf_aArray_nice[100];
2154 #define Cnfadrf_aArray        aircraft_->Cnfadrf_aArray
2155 #define Cnfadrf_drArray       aircraft_->Cnfadrf_drArray
2156 #define Cnfadrf_CnArray       aircraft_->Cnfadrf_CnArray
2157 #define Cnfadrf_nAlphaArray   aircraft_->Cnfadrf_nAlphaArray
2158 #define Cnfadrf_ndr           aircraft_->Cnfadrf_ndr
2159 #define Cnfadrf_fArray        aircraft_->Cnfadrf_fArray
2160 #define Cnfadrf_nf            aircraft_->Cnfadrf_nf
2161 #define CnfadrfI              aircraft_->CnfadrfI
2162 #define Cnfadrf_nice          aircraft_->Cnfadrf_nice
2163 #define Cnfadrf_na_nice       aircraft_->Cnfadrf_na_nice
2164 #define Cnfadrf_ndr_nice      aircraft_->Cnfadrf_ndr_nice
2165 #define Cnfadrf_drArray_nice  aircraft_->Cnfadrf_drArray_nice
2166 #define Cnfadrf_aArray_nice   aircraft_->Cnfadrf_aArray_nice
2167   double Cnfapf_aArray[30][100][100];
2168   double Cnfapf_pArray[30][100];
2169   double Cnfapf_CnArray[30][100][100];
2170   int Cnfapf_nAlphaArray[30][100];
2171   int Cnfapf_np[30];
2172   double Cnfapf_fArray[30];
2173   int Cnfapf_nf;
2174   double CnfapfI;
2175   int Cnfapf_nice, Cnfapf_na_nice, Cnfapf_np_nice;
2176   double Cnfapf_pArray_nice[100];
2177   double Cnfapf_aArray_nice[100];
2178 #define Cnfapf_aArray        aircraft_->Cnfapf_aArray
2179 #define Cnfapf_pArray        aircraft_->Cnfapf_pArray
2180 #define Cnfapf_CnArray       aircraft_->Cnfapf_CnArray
2181 #define Cnfapf_nAlphaArray   aircraft_->Cnfapf_nAlphaArray
2182 #define Cnfapf_np            aircraft_->Cnfapf_np
2183 #define Cnfapf_fArray        aircraft_->Cnfapf_fArray
2184 #define Cnfapf_nf            aircraft_->Cnfapf_nf
2185 #define CnfapfI              aircraft_->CnfapfI
2186 #define Cnfapf_nice          aircraft_->Cnfapf_nice
2187 #define Cnfapf_na_nice       aircraft_->Cnfapf_na_nice
2188 #define Cnfapf_np_nice       aircraft_->Cnfapf_np_nice
2189 #define Cnfapf_pArray_nice   aircraft_->Cnfapf_pArray_nice
2190 #define Cnfapf_aArray_nice   aircraft_->Cnfapf_aArray_nice
2191   double Cnfarf_aArray[30][100][100];
2192   double Cnfarf_rArray[30][100];
2193   double Cnfarf_CnArray[30][100][100];
2194   int Cnfarf_nAlphaArray[30][100];
2195   int Cnfarf_nr[30];
2196   double Cnfarf_fArray[30];
2197   int Cnfarf_nf;
2198   double CnfarfI;
2199   int Cnfarf_nice, Cnfarf_na_nice, Cnfarf_nr_nice;
2200   double Cnfarf_rArray_nice[100];
2201   double Cnfarf_aArray_nice[100];
2202 #define Cnfarf_aArray        aircraft_->Cnfarf_aArray
2203 #define Cnfarf_rArray        aircraft_->Cnfarf_rArray
2204 #define Cnfarf_CnArray       aircraft_->Cnfarf_CnArray
2205 #define Cnfarf_nAlphaArray   aircraft_->Cnfarf_nAlphaArray
2206 #define Cnfarf_nr            aircraft_->Cnfarf_nr
2207 #define Cnfarf_fArray        aircraft_->Cnfarf_fArray
2208 #define Cnfarf_nf            aircraft_->Cnfarf_nf
2209 #define CnfarfI              aircraft_->CnfarfI
2210 #define Cnfarf_nice          aircraft_->Cnfarf_nice
2211 #define Cnfarf_na_nice       aircraft_->Cnfarf_na_nice
2212 #define Cnfarf_nr_nice       aircraft_->Cnfarf_nr_nice
2213 #define Cnfarf_rArray_nice   aircraft_->Cnfarf_rArray_nice
2214 #define Cnfarf_aArray_nice   aircraft_->Cnfarf_aArray_nice
2215   double Cno_save, Cn_beta_save, Cn_p_save, Cn_r_save;
2216   double Cn_da_save, Cn_dr_save, Cn_q_save, Cn_b3_save;
2217 #define Cno_save             aircraft_->Cno_save
2218 #define Cn_beta_save         aircraft_->Cn_beta_save
2219 #define Cn_p_save            aircraft_->Cn_p_save
2220 #define Cn_r_save            aircraft_->Cn_r_save
2221 #define Cn_da_save           aircraft_->Cn_da_save
2222 #define Cn_dr_save           aircraft_->Cn_dr_save
2223 #define Cn_q_save            aircraft_->Cn_q_save
2224 #define Cn_b3_save           aircraft_->Cn_b3_save
2225 
2226 
2227   /* Variables (token2) ===========================================*/
2228   /* gear ========== Landing gear model quantities ================*/
2229 
2230   std::map <string,int> gear_map;
2231 
2232 #define      gear_map              aircraft_->gear_map
2233 #define MAX_GEAR 16
2234   bool gear_model[MAX_GEAR];
2235   SCALAR D_gear_v[MAX_GEAR][3];
2236   SCALAR cgear[MAX_GEAR];
2237   SCALAR kgear[MAX_GEAR];
2238   SCALAR muGear[MAX_GEAR];
2239   SCALAR strutLength[MAX_GEAR];
2240 #define D_gear_v aircraft_->D_gear_v
2241 #define gear_model aircraft_->gear_model
2242 #define cgear aircraft_->cgear
2243 #define kgear aircraft_->kgear
2244 #define muGear aircraft_->muGear
2245 #define strutLength aircraft_->strutLength
2246   double gear_max, gear_rate;
2247 #define gear_max                 aircraft_->gear_max
2248 #define gear_rate                aircraft_->gear_rate
2249   bool use_gear;
2250 #define use_gear                 aircraft_->use_gear
2251 
2252 
2253   /* Variables (token2) ===========================================*/
2254   /* ice =========== Ice model quantities ======================== */
2255 
2256   std::map <string,int> ice_map;
2257 #define      ice_map              aircraft_->ice_map
2258 
2259   bool ice_model, ice_on, beta_model;
2260   double iceTime;
2261   double transientTime;
2262   double eta_ice_final;
2263   double eta_ice;
2264   double x_probe_wing;
2265   double x_probe_tail;
2266 #define ice_model      aircraft_->ice_model
2267 #define ice_on         aircraft_->ice_on
2268 #define beta_model     aircraft_->beta_model
2269 #define iceTime        aircraft_->iceTime
2270 #define transientTime  aircraft_->transientTime
2271 #define eta_ice_final  aircraft_->eta_ice_final
2272 #define eta_ice        aircraft_->eta_ice
2273 #define x_probe_wing   aircraft_->x_probe_wing
2274 #define x_probe_tail   aircraft_->x_probe_tail
2275   double kCDo, kCDK, kCD_a, kCD_adot, kCD_q, kCD_de;
2276   double CDo_clean, CDK_clean, CD_a_clean, CD_adot_clean, CD_q_clean, CD_de_clean;
2277 #define kCDo           aircraft_->kCDo
2278 #define kCDK           aircraft_->kCDK
2279 #define kCD_a          aircraft_->kCD_a
2280 #define kCD_adot       aircraft_->kCD_adot
2281 #define kCD_q          aircraft_->kCD_q
2282 #define kCD_de         aircraft_->kCD_de
2283 #define CDo_clean      aircraft_->CDo_clean
2284 #define CDK_clean      aircraft_->CDK_clean
2285 #define CD_a_clean     aircraft_->CD_a_clean
2286 #define CD_adot_clean  aircraft_->CD_adot_clean
2287 #define CD_q_clean     aircraft_->CD_q_clean
2288 #define CD_de_clean    aircraft_->CD_de_clean
2289   double kCXo, kCXK, kCX_a, kCX_a2, kCX_a3, kCX_adot;
2290   double kCX_q, kCX_de, kCX_dr, kCX_df, kCX_adf;
2291   double CXo_clean, CXK_clean, CX_a_clean, CX_a2_clean, CX_a3_clean, CX_adot_clean;
2292   double CX_q_clean, CX_de_clean, CX_dr_clean, CX_df_clean, CX_adf_clean;
2293 #define kCXo           aircraft_->kCXo
2294 #define kCXK           aircraft_->kCXK
2295 #define kCX_a          aircraft_->kCX_a
2296 #define kCX_a2         aircraft_->kCX_a2
2297 #define kCX_a3         aircraft_->kCX_a3
2298 #define kCX_adot       aircraft_->kCX_adot
2299 #define kCX_q          aircraft_->kCX_q
2300 #define kCX_de         aircraft_->kCX_de
2301 #define kCX_dr         aircraft_->kCX_dr
2302 #define kCX_df         aircraft_->kCX_df
2303 #define kCX_adf        aircraft_->kCX_adf
2304 #define CXo_clean      aircraft_->CXo_clean
2305 #define CXK_clean      aircraft_->CXK_clean
2306 #define CX_a_clean     aircraft_->CX_a_clean
2307 #define CX_a2_clean    aircraft_->CX_a2_clean
2308 #define CX_a3_clean    aircraft_->CX_a3_clean
2309 #define CX_adot_clean  aircraft_->CX_adot_clean
2310 #define CX_q_clean     aircraft_->CX_q_clean
2311 #define CX_de_clean    aircraft_->CX_de_clean
2312 #define CX_dr_clean    aircraft_->CX_dr_clean
2313 #define CX_df_clean    aircraft_->CX_df_clean
2314 #define CX_adf_clean   aircraft_->CX_adf_clean
2315   double kCLo, kCL_a, kCL_adot, kCL_q, kCL_de;
2316   double CLo_clean, CL_a_clean, CL_adot_clean, CL_q_clean, CL_de_clean;
2317 #define kCLo           aircraft_->kCLo
2318 #define kCL_a          aircraft_->kCL_a
2319 #define kCL_adot       aircraft_->kCL_adot
2320 #define kCL_q          aircraft_->kCL_q
2321 #define kCL_de         aircraft_->kCL_de
2322 #define CLo_clean      aircraft_->CLo_clean
2323 #define CL_a_clean     aircraft_->CL_a_clean
2324 #define CL_adot_clean  aircraft_->CL_adot_clean
2325 #define CL_q_clean     aircraft_->CL_q_clean
2326 #define CL_de_clean    aircraft_->CL_de_clean
2327   double kCZo, kCZ_a, kCZ_a2, kCZ_a3, kCZ_adot, kCZ_q, kCZ_de, kCZ_deb2, kCZ_df, kCZ_adf;
2328   double CZo_clean, CZ_a_clean, CZ_a2_clean, CZ_a3_clean, CZ_adot_clean;
2329   double CZ_q_clean, CZ_de_clean, CZ_deb2_clean, CZ_df_clean, CZ_adf_clean;
2330 #define kCZo           aircraft_->kCZo
2331 #define kCZ_a          aircraft_->kCZ_a
2332 #define kCZ_a2         aircraft_->kCZ_a2
2333 #define kCZ_a3         aircraft_->kCZ_a3
2334 #define kCZ_adot       aircraft_->kCZ_adot
2335 #define kCZ_q          aircraft_->kCZ_q
2336 #define kCZ_de         aircraft_->kCZ_de
2337 #define kCZ_deb2       aircraft_->kCZ_deb2
2338 #define kCZ_df         aircraft_->kCZ_df
2339 #define kCZ_adf        aircraft_->kCZ_adf
2340 #define CZo_clean      aircraft_->CZo_clean
2341 #define CZ_a_clean     aircraft_->CZ_a_clean
2342 #define CZ_a2_clean    aircraft_->CZ_a2_clean
2343 #define CZ_a3_clean    aircraft_->CZ_a3_clean
2344 #define CZ_adot_clean  aircraft_->CZ_adot_clean
2345 #define CZ_q_clean     aircraft_->CZ_q_clean
2346 #define CZ_de_clean    aircraft_->CZ_de_clean
2347 #define CZ_deb2_clean  aircraft_->CZ_deb2_clean
2348 #define CZ_df_clean    aircraft_->CZ_df_clean
2349 #define CZ_adf_clean   aircraft_->CZ_adf_clean
2350   double kCmo, kCm_a, kCm_a2, kCm_adot, kCm_q, kCm_de, kCm_b2, kCm_r, kCm_df;
2351   double Cmo_clean, Cm_a_clean, Cm_a2_clean, Cm_adot_clean, Cm_q_clean;
2352   double Cm_de_clean, Cm_b2_clean, Cm_r_clean, Cm_df_clean;
2353 #define kCmo           aircraft_->kCmo
2354 #define kCm_a          aircraft_->kCm_a
2355 #define kCm_a2         aircraft_->kCm_a2
2356 #define kCm_adot       aircraft_->kCm_adot
2357 #define kCm_q          aircraft_->kCm_q
2358 #define kCm_de         aircraft_->kCm_de
2359 #define kCm_b2         aircraft_->kCm_b2
2360 #define kCm_r          aircraft_->kCm_r
2361 #define kCm_df         aircraft_->kCm_df
2362 #define Cmo_clean      aircraft_->Cmo_clean
2363 #define Cm_a_clean     aircraft_->Cm_a_clean
2364 #define Cm_a2_clean    aircraft_->Cm_a2_clean
2365 #define Cm_adot_clean  aircraft_->Cm_adot_clean
2366 #define Cm_q_clean     aircraft_->Cm_q_clean
2367 #define Cm_de_clean    aircraft_->Cm_de_clean
2368 #define Cm_b2_clean    aircraft_->Cm_b2_clean
2369 #define Cm_r_clean     aircraft_->Cm_r_clean
2370 #define Cm_df_clean    aircraft_->Cm_df_clean
2371   double kCYo, kCY_beta, kCY_p, kCY_r, kCY_da, kCY_dr, kCY_dra, kCY_bdot;
2372   double CYo_clean, CY_beta_clean, CY_p_clean, CY_r_clean, CY_da_clean;
2373   double CY_dr_clean, CY_dra_clean, CY_bdot_clean;
2374 #define kCYo           aircraft_->kCYo
2375 #define kCY_beta       aircraft_->kCY_beta
2376 #define kCY_p          aircraft_->kCY_p
2377 #define kCY_r          aircraft_->kCY_r
2378 #define kCY_da         aircraft_->kCY_da
2379 #define kCY_dr         aircraft_->kCY_dr
2380 #define kCY_dra        aircraft_->kCY_dra
2381 #define kCY_bdot       aircraft_->kCY_bdot
2382 #define CYo_clean      aircraft_->CYo_clean
2383 #define CY_beta_clean  aircraft_->CY_beta_clean
2384 #define CY_p_clean     aircraft_->CY_p_clean
2385 #define CY_r_clean     aircraft_->CY_r_clean
2386 #define CY_da_clean    aircraft_->CY_da_clean
2387 #define CY_dr_clean    aircraft_->CY_dr_clean
2388 #define CY_dra_clean   aircraft_->CY_dra_clean
2389 #define CY_bdot_clean  aircraft_->CY_bdot_clean
2390   double kClo, kCl_beta, kCl_p, kCl_r, kCl_da, kCl_dr, kCl_daa;
2391   double Clo_clean, Cl_beta_clean, Cl_p_clean, Cl_r_clean, Cl_da_clean;
2392   double Cl_dr_clean, Cl_daa_clean;
2393 #define kClo           aircraft_->kClo
2394 #define kCl_beta       aircraft_->kCl_beta
2395 #define kCl_p          aircraft_->kCl_p
2396 #define kCl_r          aircraft_->kCl_r
2397 #define kCl_da         aircraft_->kCl_da
2398 #define kCl_dr         aircraft_->kCl_dr
2399 #define kCl_daa        aircraft_->kCl_daa
2400 #define Clo_clean      aircraft_->Clo_clean
2401 #define Cl_beta_clean  aircraft_->Cl_beta_clean
2402 #define Cl_p_clean     aircraft_->Cl_p_clean
2403 #define Cl_r_clean     aircraft_->Cl_r_clean
2404 #define Cl_da_clean    aircraft_->Cl_da_clean
2405 #define Cl_dr_clean    aircraft_->Cl_dr_clean
2406 #define Cl_daa_clean   aircraft_->Cl_daa_clean
2407   double kCno, kCn_beta, kCn_p, kCn_r, kCn_da, kCn_dr, kCn_q, kCn_b3;
2408   double Cno_clean, Cn_beta_clean, Cn_p_clean, Cn_r_clean, Cn_da_clean;
2409   double Cn_dr_clean, Cn_q_clean, Cn_b3_clean;
2410 #define kCno           aircraft_->kCno
2411 #define kCn_beta       aircraft_->kCn_beta
2412 #define kCn_p          aircraft_->kCn_p
2413 #define kCn_r          aircraft_->kCn_r
2414 #define kCn_da         aircraft_->kCn_da
2415 #define kCn_dr         aircraft_->kCn_dr
2416 #define kCn_q          aircraft_->kCn_q
2417 #define kCn_b3         aircraft_->kCn_b3
2418 #define Cno_clean      aircraft_->Cno_clean
2419 #define Cn_beta_clean  aircraft_->Cn_beta_clean
2420 #define Cn_p_clean     aircraft_->Cn_p_clean
2421 #define Cn_r_clean     aircraft_->Cn_r_clean
2422 #define Cn_da_clean    aircraft_->Cn_da_clean
2423 #define Cn_dr_clean    aircraft_->Cn_dr_clean
2424 #define Cn_q_clean     aircraft_->Cn_q_clean
2425 #define Cn_b3_clean    aircraft_->Cn_b3_clean
2426   double bootTime[20];
2427   int    bootindex;
2428   bool   bootTrue[20];
2429 #define bootTime       aircraft_->bootTime
2430 #define bootindex      aircraft_->bootindex
2431 #define bootTrue       aircraft_->bootTrue
2432   bool eta_from_file;
2433 #define eta_from_file             aircraft_->eta_from_file
2434   bool eta_wing_left_input;
2435   string eta_wing_left_input_file;
2436   double eta_wing_left_input_timeArray[100];
2437   double eta_wing_left_input_daArray[100];
2438   int eta_wing_left_input_ntime;
2439   double eta_wing_left_input_startTime;
2440 #define eta_wing_left_input           aircraft_->eta_wing_left_input
2441 #define eta_wing_left_input_file      aircraft_->eta_wing_left_input_file
2442 #define eta_wing_left_input_timeArray aircraft_->eta_wing_left_input_timeArray
2443 #define eta_wing_left_input_daArray   aircraft_->eta_wing_left_input_daArray
2444 #define eta_wing_left_input_ntime     aircraft_->eta_wing_left_input_ntime
2445 #define eta_wing_left_input_startTime aircraft_->eta_wing_left_input_startTime
2446   bool eta_wing_right_input;
2447   string eta_wing_right_input_file;
2448   double eta_wing_right_input_timeArray[100];
2449   double eta_wing_right_input_daArray[100];
2450   int eta_wing_right_input_ntime;
2451   double eta_wing_right_input_startTime;
2452 #define eta_wing_right_input           aircraft_->eta_wing_right_input
2453 #define eta_wing_right_input_file      aircraft_->eta_wing_right_input_file
2454 #define eta_wing_right_input_timeArray aircraft_->eta_wing_right_input_timeArray
2455 #define eta_wing_right_input_daArray   aircraft_->eta_wing_right_input_daArray
2456 #define eta_wing_right_input_ntime     aircraft_->eta_wing_right_input_ntime
2457 #define eta_wing_right_input_startTime aircraft_->eta_wing_right_input_startTime
2458   bool eta_tail_input;
2459   string eta_tail_input_file;
2460   double eta_tail_input_timeArray[100];
2461   double eta_tail_input_daArray[100];
2462   int eta_tail_input_ntime;
2463   double eta_tail_input_startTime;
2464 #define eta_tail_input           aircraft_->eta_tail_input
2465 #define eta_tail_input_file      aircraft_->eta_tail_input_file
2466 #define eta_tail_input_timeArray aircraft_->eta_tail_input_timeArray
2467 #define eta_tail_input_daArray   aircraft_->eta_tail_input_daArray
2468 #define eta_tail_input_ntime     aircraft_->eta_tail_input_ntime
2469 #define eta_tail_input_startTime aircraft_->eta_tail_input_startTime
2470   bool demo_eps_alpha_max;
2471   string demo_eps_alpha_max_file;
2472   double demo_eps_alpha_max_timeArray[100];
2473   double demo_eps_alpha_max_daArray[100];
2474   int demo_eps_alpha_max_ntime;
2475   double demo_eps_alpha_max_startTime;
2476 #define demo_eps_alpha_max           aircraft_->demo_eps_alpha_max
2477 #define demo_eps_alpha_max_file      aircraft_->demo_eps_alpha_max_file
2478 #define demo_eps_alpha_max_timeArray aircraft_->demo_eps_alpha_max_timeArray
2479 #define demo_eps_alpha_max_daArray   aircraft_->demo_eps_alpha_max_daArray
2480 #define demo_eps_alpha_max_ntime     aircraft_->demo_eps_alpha_max_ntime
2481 #define demo_eps_alpha_max_startTime aircraft_->demo_eps_alpha_max_startTime
2482   bool demo_eps_pitch_max;
2483   string demo_eps_pitch_max_file;
2484   double demo_eps_pitch_max_timeArray[100];
2485   double demo_eps_pitch_max_daArray[100];
2486   int demo_eps_pitch_max_ntime;
2487   double demo_eps_pitch_max_startTime;
2488 #define demo_eps_pitch_max           aircraft_->demo_eps_pitch_max
2489 #define demo_eps_pitch_max_file      aircraft_->demo_eps_pitch_max_file
2490 #define demo_eps_pitch_max_timeArray aircraft_->demo_eps_pitch_max_timeArray
2491 #define demo_eps_pitch_max_daArray   aircraft_->demo_eps_pitch_max_daArray
2492 #define demo_eps_pitch_max_ntime     aircraft_->demo_eps_pitch_max_ntime
2493 #define demo_eps_pitch_max_startTime aircraft_->demo_eps_pitch_max_startTime
2494   bool demo_eps_pitch_min;
2495   string demo_eps_pitch_min_file;
2496   double demo_eps_pitch_min_timeArray[100];
2497   double demo_eps_pitch_min_daArray[100];
2498   int demo_eps_pitch_min_ntime;
2499   double demo_eps_pitch_min_startTime;
2500 #define demo_eps_pitch_min           aircraft_->demo_eps_pitch_min
2501 #define demo_eps_pitch_min_file      aircraft_->demo_eps_pitch_min_file
2502 #define demo_eps_pitch_min_timeArray aircraft_->demo_eps_pitch_min_timeArray
2503 #define demo_eps_pitch_min_daArray   aircraft_->demo_eps_pitch_min_daArray
2504 #define demo_eps_pitch_min_ntime     aircraft_->demo_eps_pitch_min_ntime
2505 #define demo_eps_pitch_min_startTime aircraft_->demo_eps_pitch_min_startTime
2506   bool demo_eps_roll_max;
2507   string demo_eps_roll_max_file;
2508   double demo_eps_roll_max_timeArray[10];
2509   double demo_eps_roll_max_daArray[10];
2510   int demo_eps_roll_max_ntime;
2511   double demo_eps_roll_max_startTime;
2512 #define demo_eps_roll_max           aircraft_->demo_eps_roll_max
2513 #define demo_eps_roll_max_file      aircraft_->demo_eps_roll_max_file
2514 #define demo_eps_roll_max_timeArray aircraft_->demo_eps_roll_max_timeArray
2515 #define demo_eps_roll_max_daArray   aircraft_->demo_eps_roll_max_daArray
2516 #define demo_eps_roll_max_ntime     aircraft_->demo_eps_roll_max_ntime
2517 #define demo_eps_roll_max_startTime aircraft_->demo_eps_roll_max_startTime
2518   bool demo_eps_thrust_min;
2519   string demo_eps_thrust_min_file;
2520   double demo_eps_thrust_min_timeArray[100];
2521   double demo_eps_thrust_min_daArray[100];
2522   int demo_eps_thrust_min_ntime;
2523   double demo_eps_thrust_min_startTime;
2524 #define demo_eps_thrust_min           aircraft_->demo_eps_thrust_min
2525 #define demo_eps_thrust_min_file      aircraft_->demo_eps_thrust_min_file
2526 #define demo_eps_thrust_min_timeArray aircraft_->demo_eps_thrust_min_timeArray
2527 #define demo_eps_thrust_min_daArray   aircraft_->demo_eps_thrust_min_daArray
2528 #define demo_eps_thrust_min_ntime     aircraft_->demo_eps_thrust_min_ntime
2529 #define demo_eps_thrust_min_startTime aircraft_->demo_eps_thrust_min_startTime
2530   bool demo_eps_airspeed_max;
2531   string demo_eps_airspeed_max_file;
2532   double demo_eps_airspeed_max_timeArray[10];
2533   double demo_eps_airspeed_max_daArray[10];
2534   int demo_eps_airspeed_max_ntime;
2535   double demo_eps_airspeed_max_startTime;
2536 #define demo_eps_airspeed_max           aircraft_->demo_eps_airspeed_max
2537 #define demo_eps_airspeed_max_file      aircraft_->demo_eps_airspeed_max_file
2538 #define demo_eps_airspeed_max_timeArray aircraft_->demo_eps_airspeed_max_timeArray
2539 #define demo_eps_airspeed_max_daArray   aircraft_->demo_eps_airspeed_max_daArray
2540 #define demo_eps_airspeed_max_ntime     aircraft_->demo_eps_airspeed_max_ntime
2541 #define demo_eps_airspeed_max_startTime aircraft_->demo_eps_airspeed_max_startTime
2542   bool demo_eps_airspeed_min;
2543   string demo_eps_airspeed_min_file;
2544   double demo_eps_airspeed_min_timeArray[100];
2545   double demo_eps_airspeed_min_daArray[100];
2546   int demo_eps_airspeed_min_ntime;
2547   double demo_eps_airspeed_min_startTime;
2548 #define demo_eps_airspeed_min           aircraft_->demo_eps_airspeed_min
2549 #define demo_eps_airspeed_min_file      aircraft_->demo_eps_airspeed_min_file
2550 #define demo_eps_airspeed_min_timeArray aircraft_->demo_eps_airspeed_min_timeArray
2551 #define demo_eps_airspeed_min_daArray   aircraft_->demo_eps_airspeed_min_daArray
2552 #define demo_eps_airspeed_min_ntime     aircraft_->demo_eps_airspeed_min_ntime
2553 #define demo_eps_airspeed_min_startTime aircraft_->demo_eps_airspeed_min_startTime
2554   bool demo_eps_flap_max;
2555   string demo_eps_flap_max_file;
2556   double demo_eps_flap_max_timeArray[10];
2557   double demo_eps_flap_max_daArray[10];
2558   int demo_eps_flap_max_ntime;
2559   double demo_eps_flap_max_startTime;
2560 #define demo_eps_flap_max           aircraft_->demo_eps_flap_max
2561 #define demo_eps_flap_max_file      aircraft_->demo_eps_flap_max_file
2562 #define demo_eps_flap_max_timeArray aircraft_->demo_eps_flap_max_timeArray
2563 #define demo_eps_flap_max_daArray   aircraft_->demo_eps_flap_max_daArray
2564 #define demo_eps_flap_max_ntime     aircraft_->demo_eps_flap_max_ntime
2565 #define demo_eps_flap_max_startTime aircraft_->demo_eps_flap_max_startTime
2566   bool demo_boot_cycle_tail;
2567   string demo_boot_cycle_tail_file;
2568   double demo_boot_cycle_tail_timeArray[100];
2569   int demo_boot_cycle_tail_daArray[100];
2570   int demo_boot_cycle_tail_ntime;
2571   double demo_boot_cycle_tail_startTime;
2572 #define demo_boot_cycle_tail           aircraft_->demo_boot_cycle_tail
2573 #define demo_boot_cycle_tail_file      aircraft_->demo_boot_cycle_tail_file
2574 #define demo_boot_cycle_tail_timeArray aircraft_->demo_boot_cycle_tail_timeArray
2575 #define demo_boot_cycle_tail_daArray   aircraft_->demo_boot_cycle_tail_daArray
2576 #define demo_boot_cycle_tail_ntime     aircraft_->demo_boot_cycle_tail_ntime
2577 #define demo_boot_cycle_tail_startTime aircraft_->demo_boot_cycle_tail_startTime
2578   bool demo_boot_cycle_wing_left;
2579   string demo_boot_cycle_wing_left_file;
2580   double demo_boot_cycle_wing_left_timeArray[100];
2581   int demo_boot_cycle_wing_left_daArray[100];
2582   int demo_boot_cycle_wing_left_ntime;
2583   double demo_boot_cycle_wing_left_startTime;
2584 #define demo_boot_cycle_wing_left           aircraft_->demo_boot_cycle_wing_left
2585 #define demo_boot_cycle_wing_left_file      aircraft_->demo_boot_cycle_wing_left_file
2586 #define demo_boot_cycle_wing_left_timeArray aircraft_->demo_boot_cycle_wing_left_timeArray
2587 #define demo_boot_cycle_wing_left_daArray   aircraft_->demo_boot_cycle_wing_left_daArray
2588 #define demo_boot_cycle_wing_left_ntime     aircraft_->demo_boot_cycle_wing_left_ntime
2589 #define demo_boot_cycle_wing_left_startTime aircraft_->demo_boot_cycle_wing_left_startTime
2590   bool demo_boot_cycle_wing_right;
2591   string demo_boot_cycle_wing_right_file;
2592   double demo_boot_cycle_wing_right_timeArray[100];
2593   int demo_boot_cycle_wing_right_daArray[100];
2594   int demo_boot_cycle_wing_right_ntime;
2595   double demo_boot_cycle_wing_right_startTime;
2596 #define demo_boot_cycle_wing_right           aircraft_->demo_boot_cycle_wing_right
2597 #define demo_boot_cycle_wing_right_file      aircraft_->demo_boot_cycle_wing_right_file
2598 #define demo_boot_cycle_wing_right_timeArray aircraft_->demo_boot_cycle_wing_right_timeArray
2599 #define demo_boot_cycle_wing_right_daArray   aircraft_->demo_boot_cycle_wing_right_daArray
2600 #define demo_boot_cycle_wing_right_ntime     aircraft_->demo_boot_cycle_wing_right_ntime
2601 #define demo_boot_cycle_wing_right_startTime aircraft_->demo_boot_cycle_wing_right_startTime
2602   bool demo_eps_pitch_input;
2603   string demo_eps_pitch_input_file;
2604   double demo_eps_pitch_input_timeArray[100];
2605   int demo_eps_pitch_input_daArray[100];
2606   int demo_eps_pitch_input_ntime;
2607   double demo_eps_pitch_input_startTime;
2608 #define demo_eps_pitch_input           aircraft_->demo_eps_pitch_input
2609 #define demo_eps_pitch_input_file      aircraft_->demo_eps_pitch_input_file
2610 #define demo_eps_pitch_input_timeArray aircraft_->demo_eps_pitch_input_timeArray
2611 #define demo_eps_pitch_input_daArray   aircraft_->demo_eps_pitch_input_daArray
2612 #define demo_eps_pitch_input_ntime     aircraft_->demo_eps_pitch_input_ntime
2613 #define demo_eps_pitch_input_startTime aircraft_->demo_eps_pitch_input_startTime
2614   bool tactilefadef;
2615   double tactilefadef_aArray[30][100][100];
2616   double tactilefadef_deArray[30][100];
2617   double tactilefadef_tactileArray[30][100][100];
2618   int tactilefadef_nAlphaArray[30][100];
2619   int tactilefadef_nde[30];
2620   double tactilefadef_fArray[30];
2621   int tactilefadef_nf;
2622   double tactilefadefI;
2623   int tactilefadef_nice, tactilefadef_na_nice, tactilefadef_nde_nice;
2624   double tactilefadef_deArray_nice[100];
2625   double tactilefadef_aArray_nice[100];
2626 #define tactilefadef               aircraft_->tactilefadef
2627 #define tactilefadef_aArray        aircraft_->tactilefadef_aArray
2628 #define tactilefadef_deArray       aircraft_->tactilefadef_deArray
2629 #define tactilefadef_tactileArray  aircraft_->tactilefadef_tactileArray
2630 #define tactilefadef_nAlphaArray   aircraft_->tactilefadef_nAlphaArray
2631 #define tactilefadef_nde           aircraft_->tactilefadef_nde
2632 #define tactilefadef_fArray        aircraft_->tactilefadef_fArray
2633 #define tactilefadef_nf            aircraft_->tactilefadef_nf
2634 #define tactilefadefI              aircraft_->tactilefadefI
2635 #define tactilefadef_nice          aircraft_->tactilefadef_nice
2636 #define tactilefadef_na_nice       aircraft_->tactilefadef_na_nice
2637 #define tactilefadef_nde_nice      aircraft_->tactilefadef_nde_nice
2638 #define tactilefadef_deArray_nice  aircraft_->tactilefadef_deArray_nice
2639 #define tactilefadef_aArray_nice   aircraft_->tactilefadef_aArray_nice
2640   int tactile_pitch;
2641 #define tactile_pitch              aircraft_->tactile_pitch
2642   bool demo_ap_pah_on;
2643   string demo_ap_pah_on_file;
2644   double demo_ap_pah_on_timeArray[10];
2645   int demo_ap_pah_on_daArray[10];
2646   int demo_ap_pah_on_ntime;
2647   double demo_ap_pah_on_startTime;
2648 #define demo_ap_pah_on           aircraft_->demo_ap_pah_on
2649 #define demo_ap_pah_on_file      aircraft_->demo_ap_pah_on_file
2650 #define demo_ap_pah_on_timeArray aircraft_->demo_ap_pah_on_timeArray
2651 #define demo_ap_pah_on_daArray   aircraft_->demo_ap_pah_on_daArray
2652 #define demo_ap_pah_on_ntime     aircraft_->demo_ap_pah_on_ntime
2653 #define demo_ap_pah_on_startTime aircraft_->demo_ap_pah_on_startTime
2654   bool demo_ap_alh_on;
2655   string demo_ap_alh_on_file;
2656   double demo_ap_alh_on_timeArray[10];
2657   int demo_ap_alh_on_daArray[10];
2658   int demo_ap_alh_on_ntime;
2659   double demo_ap_alh_on_startTime;
2660 #define demo_ap_alh_on           aircraft_->demo_ap_alh_on
2661 #define demo_ap_alh_on_file      aircraft_->demo_ap_alh_on_file
2662 #define demo_ap_alh_on_timeArray aircraft_->demo_ap_alh_on_timeArray
2663 #define demo_ap_alh_on_daArray   aircraft_->demo_ap_alh_on_daArray
2664 #define demo_ap_alh_on_ntime     aircraft_->demo_ap_alh_on_ntime
2665 #define demo_ap_alh_on_startTime aircraft_->demo_ap_alh_on_startTime
2666   bool demo_ap_rah_on;
2667   string demo_ap_rah_on_file;
2668   double demo_ap_rah_on_timeArray[10];
2669   int demo_ap_rah_on_daArray[10];
2670   int demo_ap_rah_on_ntime;
2671   double demo_ap_rah_on_startTime;
2672 #define demo_ap_rah_on           aircraft_->demo_ap_rah_on
2673 #define demo_ap_rah_on_file      aircraft_->demo_ap_rah_on_file
2674 #define demo_ap_rah_on_timeArray aircraft_->demo_ap_rah_on_timeArray
2675 #define demo_ap_rah_on_daArray   aircraft_->demo_ap_rah_on_daArray
2676 #define demo_ap_rah_on_ntime     aircraft_->demo_ap_rah_on_ntime
2677 #define demo_ap_rah_on_startTime aircraft_->demo_ap_rah_on_startTime
2678   bool demo_ap_hh_on;
2679   string demo_ap_hh_on_file;
2680   double demo_ap_hh_on_timeArray[10];
2681   int demo_ap_hh_on_daArray[10];
2682   int demo_ap_hh_on_ntime;
2683   double demo_ap_hh_on_startTime;
2684 #define demo_ap_hh_on           aircraft_->demo_ap_hh_on
2685 #define demo_ap_hh_on_file      aircraft_->demo_ap_hh_on_file
2686 #define demo_ap_hh_on_timeArray aircraft_->demo_ap_hh_on_timeArray
2687 #define demo_ap_hh_on_daArray   aircraft_->demo_ap_hh_on_daArray
2688 #define demo_ap_hh_on_ntime     aircraft_->demo_ap_hh_on_ntime
2689 #define demo_ap_hh_on_startTime aircraft_->demo_ap_hh_on_startTime
2690   bool demo_ap_Theta_ref;
2691   string demo_ap_Theta_ref_file;
2692   double demo_ap_Theta_ref_timeArray[10];
2693   double demo_ap_Theta_ref_daArray[10];
2694   int demo_ap_Theta_ref_ntime;
2695   double demo_ap_Theta_ref_startTime;
2696 #define demo_ap_Theta_ref           aircraft_->demo_ap_Theta_ref
2697 #define demo_ap_Theta_ref_file      aircraft_->demo_ap_Theta_ref_file
2698 #define demo_ap_Theta_ref_timeArray aircraft_->demo_ap_Theta_ref_timeArray
2699 #define demo_ap_Theta_ref_daArray   aircraft_->demo_ap_Theta_ref_daArray
2700 #define demo_ap_Theta_ref_ntime     aircraft_->demo_ap_Theta_ref_ntime
2701 #define demo_ap_Theta_ref_startTime aircraft_->demo_ap_Theta_ref_startTime
2702   bool demo_ap_alt_ref;
2703   string demo_ap_alt_ref_file;
2704   double demo_ap_alt_ref_timeArray[10];
2705   double demo_ap_alt_ref_daArray[10];
2706   int demo_ap_alt_ref_ntime;
2707   double demo_ap_alt_ref_startTime;
2708 #define demo_ap_alt_ref           aircraft_->demo_ap_alt_ref
2709 #define demo_ap_alt_ref_file      aircraft_->demo_ap_alt_ref_file
2710 #define demo_ap_alt_ref_timeArray aircraft_->demo_ap_alt_ref_timeArray
2711 #define demo_ap_alt_ref_daArray   aircraft_->demo_ap_alt_ref_daArray
2712 #define demo_ap_alt_ref_ntime     aircraft_->demo_ap_alt_ref_ntime
2713 #define demo_ap_alt_ref_startTime aircraft_->demo_ap_alt_ref_startTime
2714   bool demo_ap_Phi_ref;
2715   string demo_ap_Phi_ref_file;
2716   double demo_ap_Phi_ref_timeArray[10];
2717   double demo_ap_Phi_ref_daArray[10];
2718   int demo_ap_Phi_ref_ntime;
2719   double demo_ap_Phi_ref_startTime;
2720 #define demo_ap_Phi_ref           aircraft_->demo_ap_Phi_ref
2721 #define demo_ap_Phi_ref_file      aircraft_->demo_ap_Phi_ref_file
2722 #define demo_ap_Phi_ref_timeArray aircraft_->demo_ap_Phi_ref_timeArray
2723 #define demo_ap_Phi_ref_daArray   aircraft_->demo_ap_Phi_ref_daArray
2724 #define demo_ap_Phi_ref_ntime     aircraft_->demo_ap_Phi_ref_ntime
2725 #define demo_ap_Phi_ref_startTime aircraft_->demo_ap_Phi_ref_startTime
2726   bool demo_ap_Psi_ref;
2727   string demo_ap_Psi_ref_file;
2728   double demo_ap_Psi_ref_timeArray[10];
2729   double demo_ap_Psi_ref_daArray[10];
2730   int demo_ap_Psi_ref_ntime;
2731   double demo_ap_Psi_ref_startTime;
2732 #define demo_ap_Psi_ref           aircraft_->demo_ap_Psi_ref
2733 #define demo_ap_Psi_ref_file      aircraft_->demo_ap_Psi_ref_file
2734 #define demo_ap_Psi_ref_timeArray aircraft_->demo_ap_Psi_ref_timeArray
2735 #define demo_ap_Psi_ref_daArray   aircraft_->demo_ap_Psi_ref_daArray
2736 #define demo_ap_Psi_ref_ntime     aircraft_->demo_ap_Psi_ref_ntime
2737 #define demo_ap_Psi_ref_startTime aircraft_->demo_ap_Psi_ref_startTime
2738   bool demo_tactile;
2739   string demo_tactile_file;
2740   double demo_tactile_timeArray[1500];
2741   double demo_tactile_daArray[1500];
2742   int demo_tactile_ntime;
2743   double demo_tactile_startTime;
2744 #define demo_tactile           aircraft_->demo_tactile
2745 #define demo_tactile_file      aircraft_->demo_tactile_file
2746 #define demo_tactile_timeArray aircraft_->demo_tactile_timeArray
2747 #define demo_tactile_daArray   aircraft_->demo_tactile_daArray
2748 #define demo_tactile_ntime     aircraft_->demo_tactile_ntime
2749 #define demo_tactile_startTime aircraft_->demo_tactile_startTime
2750   bool demo_ice_tail;
2751   string demo_ice_tail_file;
2752   double demo_ice_tail_timeArray[10];
2753   int demo_ice_tail_daArray[10];
2754   int demo_ice_tail_ntime;
2755   double demo_ice_tail_startTime;
2756 #define demo_ice_tail           aircraft_->demo_ice_tail
2757 #define demo_ice_tail_file      aircraft_->demo_ice_tail_file
2758 #define demo_ice_tail_timeArray aircraft_->demo_ice_tail_timeArray
2759 #define demo_ice_tail_daArray   aircraft_->demo_ice_tail_daArray
2760 #define demo_ice_tail_ntime     aircraft_->demo_ice_tail_ntime
2761 #define demo_ice_tail_startTime aircraft_->demo_ice_tail_startTime
2762   bool demo_ice_left;
2763   string demo_ice_left_file;
2764   double demo_ice_left_timeArray[10];
2765   int demo_ice_left_daArray[10];
2766   int demo_ice_left_ntime;
2767   double demo_ice_left_startTime;
2768 #define demo_ice_left           aircraft_->demo_ice_left
2769 #define demo_ice_left_file      aircraft_->demo_ice_left_file
2770 #define demo_ice_left_timeArray aircraft_->demo_ice_left_timeArray
2771 #define demo_ice_left_daArray   aircraft_->demo_ice_left_daArray
2772 #define demo_ice_left_ntime     aircraft_->demo_ice_left_ntime
2773 #define demo_ice_left_startTime aircraft_->demo_ice_left_startTime
2774   bool demo_ice_right;
2775   string demo_ice_right_file;
2776   double demo_ice_right_timeArray[10];
2777   int demo_ice_right_daArray[10];
2778   int demo_ice_right_ntime;
2779   double demo_ice_right_startTime;
2780 #define demo_ice_right           aircraft_->demo_ice_right
2781 #define demo_ice_right_file      aircraft_->demo_ice_right_file
2782 #define demo_ice_right_timeArray aircraft_->demo_ice_right_timeArray
2783 #define demo_ice_right_daArray   aircraft_->demo_ice_right_daArray
2784 #define demo_ice_right_ntime     aircraft_->demo_ice_right_ntime
2785 #define demo_ice_right_startTime aircraft_->demo_ice_right_startTime
2786 
2787   //321654
2788   /* Variables (token2) ===========================================*/
2789   /* fog =========== Fog field quantities ======================== */
2790 
2791   std::map <string,int> fog_map;
2792 #define fog_map         aircraft_->fog_map
2793 
2794   bool fog_field;
2795   int fog_segments;
2796   int fog_point_index;
2797   double *fog_time;
2798   int *fog_value;
2799   double fog_next_time;
2800   int fog_current_segment;
2801 
2802   int Fog;
2803 
2804 #define fog_field        aircraft_->fog_field
2805 #define fog_segments        aircraft_->fog_segments
2806 #define fog_point_index        aircraft_->fog_point_index
2807 #define fog_time        aircraft_->fog_time
2808 #define fog_value        aircraft_->fog_value
2809 #define fog_next_time        aircraft_->fog_next_time
2810 #define fog_current_segment        aircraft_->fog_current_segment
2811 
2812 #define Fog             aircraft_->Fog
2813 
2814 
2815 
2816   /* Variables (token2) ===========================================*/
2817   /* record ======== Record desired quantites to file =============*/
2818 
2819   std::map <string,int> record_map;
2820 #define      record_map              aircraft_->record_map
2821 
2822   /***** Angles ******/
2823   double Alpha_deg, Alpha_dot_deg, Beta_deg, Beta_dot_deg;
2824 #define Alpha_deg       aircraft_->Alpha_deg
2825 #define Alpha_dot_deg   aircraft_->Alpha_dot_deg
2826 #define Beta_deg        aircraft_->Beta_deg
2827 #define Beta_dot_deg    aircraft_->Beta_dot_deg
2828   double Gamma_vert_deg, Gamma_horiz_deg;
2829 #define Gamma_vert_deg  aircraft_->Gamma_vert_deg
2830 #define Gamma_horiz_deg aircraft_->Gamma_horiz_deg
2831 
2832   /** Control Inputs **/
2833   double Long_trim_deg, elevator_tab, elevator_deg, aileron_deg, rudder_deg;
2834 #define Long_trim_deg   aircraft_->Long_trim_deg
2835 #define elevator_tab    aircraft_->elevator_tab
2836 #define elevator_deg    aircraft_->elevator_deg
2837 #define aileron_deg     aircraft_->aileron_deg
2838 #define rudder_deg      aircraft_->rudder_deg
2839   //  double flap_pos_deg;
2840   //#define flap_pos_deg        aircraft_->flap_pos_deg
2841 
2842   /***** Forces ******/
2843   double F_X_wind, F_Y_wind, F_Z_wind;
2844 #define F_X_wind aircraft_->F_X_wind
2845 #define F_Y_wind aircraft_->F_Y_wind
2846 #define F_Z_wind aircraft_->F_Z_wind
2847   double Lift_clean_wing, Lift_iced_wing;
2848   double Lift_clean_tail, Lift_iced_tail;
2849 #define Lift_clean_wing      aircraft_->Lift_clean_wing
2850 #define Lift_iced_wing       aircraft_->Lift_iced_wing
2851 #define Lift_clean_tail      aircraft_->Lift_clean_tail
2852 #define Lift_iced_tail       aircraft_->Lift_iced_tail
2853   double Gamma_clean_wing, Gamma_iced_wing;
2854   double Gamma_clean_tail, Gamma_iced_tail;
2855 #define Gamma_clean_wing     aircraft_->Gamma_clean_wing
2856 #define Gamma_iced_wing      aircraft_->Gamma_iced_wing
2857 #define Gamma_clean_tail     aircraft_->Gamma_clean_tail
2858 #define Gamma_iced_tail      aircraft_->Gamma_iced_tail
2859   double w_clean_wing, w_iced_wing;
2860   double w_clean_tail, w_iced_tail;
2861 #define w_clean_wing         aircraft_->w_clean_wing
2862 #define w_iced_wing          aircraft_->w_iced_wing
2863 #define w_clean_tail         aircraft_->w_clean_tail
2864 #define w_iced_tail          aircraft_->w_iced_tail
2865   double V_total_clean_wing, V_total_iced_wing;
2866   double V_total_clean_tail, V_total_iced_tail;
2867 #define V_total_clean_wing   aircraft_->V_total_clean_wing
2868 #define V_total_iced_wing    aircraft_->V_total_iced_wing
2869 #define V_total_clean_tail   aircraft_->V_total_clean_tail
2870 #define V_total_iced_tail    aircraft_->V_total_iced_tail
2871   double beta_flow_clean_wing, beta_flow_clean_wing_deg;
2872   double beta_flow_iced_wing, beta_flow_iced_wing_deg;
2873   double beta_flow_clean_tail, beta_flow_clean_tail_deg;
2874   double beta_flow_iced_tail, beta_flow_iced_tail_deg;
2875 #define beta_flow_clean_wing     aircraft_->beta_flow_clean_wing
2876 #define beta_flow_clean_wing_deg aircraft_->beta_flow_clean_wing_deg
2877 #define beta_flow_iced_wing      aircraft_->beta_flow_iced_wing
2878 #define beta_flow_iced_wing_deg  aircraft_->beta_flow_iced_wing_deg
2879 #define beta_flow_clean_tail     aircraft_->beta_flow_clean_tail
2880 #define beta_flow_clean_tail_deg aircraft_->beta_flow_clean_tail_deg
2881 #define beta_flow_iced_tail      aircraft_->beta_flow_iced_tail
2882 #define beta_flow_iced_tail_deg  aircraft_->beta_flow_iced_tail_deg
2883   double Dbeta_flow_wing, Dbeta_flow_wing_deg;
2884   double Dbeta_flow_tail, Dbeta_flow_tail_deg;
2885 #define Dbeta_flow_wing      aircraft_->Dbeta_flow_wing
2886 #define Dbeta_flow_wing_deg  aircraft_->Dbeta_flow_wing_deg
2887 #define Dbeta_flow_tail      aircraft_->Dbeta_flow_tail
2888 #define Dbeta_flow_tail_deg  aircraft_->Dbeta_flow_tail_deg
2889   double pct_beta_flow_wing, pct_beta_flow_tail;
2890 #define pct_beta_flow_wing   aircraft_->pct_beta_flow_wing
2891 #define pct_beta_flow_tail   aircraft_->pct_beta_flow_tail
2892 
2893 
2894   /* Variables (token2) ===========================================*/
2895   /* misc ========== Miscellaneous input commands =================*/
2896 
2897   std::map <string,int> misc_map;
2898 #define      misc_map        aircraft_->misc_map
2899 
2900   double simpleHingeMomentCoef;
2901 #define simpleHingeMomentCoef    aircraft_->simpleHingeMomentCoef
2902   //string dfTimefdf;
2903   //double dfTimefdf_dfArray[100];
2904   //double dfTimefdf_TimeArray[100];
2905   //int dfTimefdf_ndf;
2906   //#define dfTimefdf              aircraft_->dfTimefdf
2907   //#define dfTimefdf_dfArray      aircraft_->dfTimefdf_dfArray
2908   //#define dfTimefdf_TimeArray    aircraft_->dfTimefdf_TimeArray
2909   //#define dfTimefdf_ndf          aircraft_->dfTimefdf_ndf
2910 
2911   FlapData *flapper_data;
2912 #define flapper_data           aircraft_->flapper_data
2913   bool flapper_model;
2914 #define flapper_model          aircraft_->flapper_model
2915   double flapper_phi_init;
2916 #define flapper_phi_init       aircraft_->flapper_phi_init
2917   double flapper_freq, flapper_cycle_pct, flapper_phi;
2918   double flapper_Lift, flapper_Thrust, flapper_Inertia;
2919   double flapper_Moment;
2920 #define flapper_freq           aircraft_->flapper_freq
2921 #define flapper_cycle_pct      aircraft_->flapper_cycle_pct
2922 #define flapper_phi            aircraft_->flapper_phi
2923 #define flapper_Lift           aircraft_->flapper_Lift
2924 #define flapper_Thrust         aircraft_->flapper_Thrust
2925 #define flapper_Inertia        aircraft_->flapper_Inertia
2926 #define flapper_Moment         aircraft_->flapper_Moment
2927   double F_X_aero_flapper, F_Z_aero_flapper;
2928 #define F_X_aero_flapper       aircraft_->F_X_aero_flapper
2929 #define F_Z_aero_flapper       aircraft_->F_Z_aero_flapper
2930 
2931   /* Other variables (not tokens) =================================*/
2932 
2933   double convert_x, convert_y, convert_z;
2934 #define convert_x aircraft_->convert_x
2935 #define convert_y aircraft_->convert_y
2936 #define convert_z aircraft_->convert_z
2937 
2938   double cbar_2U, b_2U, ch_2U;
2939 #define cbar_2U   aircraft_->cbar_2U
2940 #define b_2U      aircraft_->b_2U
2941 #define ch_2U     aircraft_->ch_2U
2942 
2943   int ndf;
2944   double dfArray[100];
2945   double TimeArray[100];
2946 #define ndf       aircraft_->ndf
2947 #define dfArray   aircraft_->dfArray
2948 #define TimeArray aircraft_->TimeArray
2949 
2950   double flap_percent, flap_increment_per_timestep, flap_cmd, flap_pos, flap_pos_norm;
2951 #define flap_percent                  aircraft_->flap_percent
2952 #define flap_increment_per_timestep   aircraft_->flap_increment_per_timestep
2953 #define flap_cmd                      aircraft_->flap_cmd
2954 #define flap_pos                      aircraft_->flap_pos
2955 #define flap_pos_norm                 aircraft_->flap_pos_norm
2956 
2957   double Spoiler_handle, spoiler_increment_per_timestep, spoiler_cmd;
2958   double spoiler_pos_norm, spoiler_pos;
2959 #define Spoiler_handle                 aircraft_->Spoiler_handle
2960 #define spoiler_increment_per_timestep aircraft_->spoiler_increment_per_timestep
2961 #define spoiler_cmd                    aircraft_->spoiler_cmd
2962 #define spoiler_pos_norm               aircraft_->spoiler_pos_norm
2963 #define spoiler_pos                    aircraft_->spoiler_pos
2964 
2965   double Gear_handle, gear_increment_per_timestep, gear_cmd_norm, gear_pos_norm;
2966 #define Gear_handle                   aircraft_->Gear_handle
2967 #define gear_increment_per_timestep   aircraft_->gear_increment_per_timestep
2968 #define gear_cmd_norm                 aircraft_->gear_cmd_norm
2969 #define gear_pos_norm                 aircraft_->gear_pos_norm
2970 
2971   double delta_CL, delta_CD, delta_Cm, delta_Ch, delta_Cl, delta_Cn;
2972 #define delta_CL         aircraft_->delta_CL
2973 #define delta_CD         aircraft_->delta_CD
2974 #define delta_Cm         aircraft_->delta_Cm
2975 #define delta_Ch         aircraft_->delta_Ch
2976 #define delta_Cl         aircraft_->delta_Cl
2977 #define delta_Cn         aircraft_->delta_Cn
2978 
2979   int nonlin_ice_case;
2980   double eta_wing_left, eta_wing_right, eta_tail;
2981   double OATemperature_F;
2982 #define nonlin_ice_case  aircraft_->nonlin_ice_case
2983 #define eta_wing_left    aircraft_->eta_wing_left
2984 #define eta_wing_right   aircraft_->eta_wing_right
2985 #define eta_tail         aircraft_->eta_tail
2986 #define OATemperature_F  aircraft_->OATemperature_F
2987   int boot_cycle_tail, boot_cycle_wing_left, boot_cycle_wing_right;
2988   int autoIPS_tail, autoIPS_wing_left, autoIPS_wing_right;
2989   int eps_pitch_input;
2990   double eps_alpha_max, eps_pitch_max, eps_pitch_min;
2991   double eps_roll_max, eps_thrust_min, eps_flap_max;
2992   double eps_airspeed_max, eps_airspeed_min;
2993 #define boot_cycle_tail        aircraft_->boot_cycle_tail
2994 #define boot_cycle_wing_left   aircraft_->boot_cycle_wing_left
2995 #define boot_cycle_wing_right  aircraft_->boot_cycle_wing_right
2996 #define autoIPS_tail           aircraft_->autoIPS_tail
2997 #define autoIPS_wing_left      aircraft_->autoIPS_wing_left
2998 #define autoIPS_wing_right     aircraft_->autoIPS_wing_right
2999 #define eps_pitch_input        aircraft_->eps_pitch_input
3000 #define eps_alpha_max          aircraft_->eps_alpha_max
3001 #define eps_pitch_max          aircraft_->eps_pitch_max
3002 #define eps_pitch_min          aircraft_->eps_pitch_min
3003 #define eps_roll_max           aircraft_->eps_roll_max
3004 #define eps_thrust_min         aircraft_->eps_thrust_min
3005 #define eps_flap_max           aircraft_->eps_flap_max
3006 #define eps_airspeed_max       aircraft_->eps_airspeed_max
3007 #define eps_airspeed_min       aircraft_->eps_airspeed_min
3008 
3009   double Ch;
3010 #define Ch   aircraft_->Ch;
3011 
3012   double CL_clean, CL_iced;
3013   double CY_clean, CY_iced;
3014   double CD_clean, CD_iced;
3015   double Cm_clean, Cm_iced;
3016   double Cl_clean, Cl_iced;
3017   double Cn_clean, Cn_iced;
3018   double Ch_clean, Ch_iced;
3019 #define CL_clean         aircraft_->CL_clean
3020 #define CY_clean         aircraft_->CY_clean
3021 #define CD_clean         aircraft_->CD_clean
3022 #define Cm_clean         aircraft_->Cm_clean
3023 #define Cl_clean         aircraft_->Cl_clean
3024 #define Cn_clean         aircraft_->Cn_clean
3025 #define Ch_clean         aircraft_->Ch_clean
3026 #define CL_iced          aircraft_->CL_iced
3027 #define CY_iced          aircraft_->CY_iced
3028 #define CD_iced          aircraft_->CD_iced
3029 #define Cm_iced          aircraft_->Cm_iced
3030 #define Cl_iced          aircraft_->Cl_iced
3031 #define Cn_iced          aircraft_->Cn_iced
3032 #define Ch_iced          aircraft_->Ch_iced
3033 
3034   std::ofstream fout;
3035 
3036 #define fout aircraft_->fout
3037 
3038   bool ignore_unknown_keywords;
3039 #define ignore_unknown_keywords           aircraft_->ignore_unknown_keywords
3040 
3041   int ap_pah_on;
3042 #define ap_pah_on              aircraft_->ap_pah_on
3043   double ap_pah_start_time;
3044 #define ap_pah_start_time      aircraft_->ap_pah_start_time
3045   double ap_Theta_ref_rad;
3046 #define ap_Theta_ref_rad       aircraft_->ap_Theta_ref_rad
3047 
3048   int ap_alh_on;
3049 #define ap_alh_on              aircraft_->ap_alh_on
3050   double ap_alh_start_time;
3051 #define ap_alh_start_time      aircraft_->ap_alh_start_time
3052   double ap_alt_ref_ft;
3053 #define ap_alt_ref_ft          aircraft_->ap_alt_ref_ft
3054 
3055   int ap_rah_on;
3056 #define ap_rah_on              aircraft_->ap_rah_on
3057   double ap_rah_start_time;
3058 #define ap_rah_start_time      aircraft_->ap_rah_start_time
3059   double ap_Phi_ref_rad;
3060 #define ap_Phi_ref_rad         aircraft_->ap_Phi_ref_rad
3061 
3062   int ap_hh_on;
3063 #define ap_hh_on              aircraft_->ap_hh_on
3064   double ap_hh_start_time;
3065 #define ap_hh_start_time      aircraft_->ap_hh_start_time
3066   double ap_Psi_ref_rad;
3067 #define ap_Psi_ref_rad         aircraft_->ap_Psi_ref_rad
3068 
3069   int pitch_trim_up, pitch_trim_down;
3070 #define pitch_trim_up          aircraft_->pitch_trim_up
3071 #define pitch_trim_down        aircraft_->pitch_trim_down
3072 
3073   bool pilot_throttle_no;
3074 #define pilot_throttle_no      aircraft_->pilot_throttle_no
3075 
3076   int ice_tail, ice_left, ice_right;
3077 #define ice_tail               aircraft_->ice_tail
3078 #define ice_left               aircraft_->ice_left
3079 #define ice_right              aircraft_->ice_right
3080 
3081   // Variables for the trigger command
3082   int trigger_on, trigger_last_time_step, trigger_num;
3083   int trigger_toggle, trigger_counter;
3084 #define trigger_on             aircraft_->trigger_on
3085 #define trigger_last_time_step aircraft_->trigger_last_time_step
3086 #define trigger_num            aircraft_->trigger_num
3087 #define trigger_toggle         aircraft_->trigger_toggle
3088 #define trigger_counter        aircraft_->trigger_counter
3089 
3090   // temp debug values
3091   double debug7, debug8, debug9, debug10;
3092 #define debug7                 aircraft_->debug7
3093 #define debug8                 aircraft_->debug8
3094 #define debug9                 aircraft_->debug9
3095 #define debug10                aircraft_->debug10
3096 };
3097 
3098 extern AIRCRAFT *aircraft_;    // usually defined in the first program that includes uiuc_aircraft.h
3099 
3100 #endif  // endif _AIRCRAFT_H
3101