]> git.mxchange.org Git - flightgear.git/blob - src/FDM/JSBSim/models/FGAerodynamics.cpp
Merge branch 'ehofman/sky'
[flightgear.git] / src / FDM / JSBSim / models / FGAerodynamics.cpp
1 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
3  Module:       FGAerodynamics.cpp
4  Author:       Jon S. Berndt
5  Date started: 09/13/00
6  Purpose:      Encapsulates the aerodynamic forces
7
8  ------------- Copyright (C) 2000  Jon S. Berndt (jon@jsbsim.org) -------------
9
10  This program is free software; you can redistribute it and/or modify it under
11  the terms of the GNU Lesser General Public License as published by the Free Software
12  Foundation; either version 2 of the License, or (at your option) any later
13  version.
14
15  This program is distributed in the hope that it will be useful, but WITHOUT
16  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17  FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
18  details.
19
20  You should have received a copy of the GNU Lesser General Public License along with
21  this program; if not, write to the Free Software Foundation, Inc., 59 Temple
22  Place - Suite 330, Boston, MA  02111-1307, USA.
23
24  Further information about the GNU Lesser General Public License can also be found on
25  the world wide web at http://www.gnu.org.
26
27 FUNCTIONAL DESCRIPTION
28 --------------------------------------------------------------------------------
29
30 HISTORY
31 --------------------------------------------------------------------------------
32 09/13/00   JSB   Created
33 04/22/01   JSB   Moved code into here from FGAircraft
34
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36 INCLUDES
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
38
39 #include <iostream>
40 #include <sstream>
41 #include <iomanip>
42 #include <cstdlib>
43 #include <FGFDMExec.h>
44 #include "FGAerodynamics.h"
45 #include "FGPropagate.h"
46 #include "FGAircraft.h"
47 #include "FGAuxiliary.h"
48 #include "FGMassBalance.h"
49 #include "input_output/FGPropertyManager.h"
50
51 using namespace std;
52
53 namespace JSBSim {
54
55 static const char *IdSrc = "$Id$";
56 static const char *IdHdr = ID_AERODYNAMICS;
57
58 /*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59 CLASS IMPLEMENTATION
60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
61
62
63 FGAerodynamics::FGAerodynamics(FGFDMExec* FDMExec) : FGModel(FDMExec)
64 {
65   Name = "FGAerodynamics";
66
67   AxisIdx["DRAG"]   = 0;
68   AxisIdx["SIDE"]   = 1;
69   AxisIdx["LIFT"]   = 2;
70   AxisIdx["ROLL"]   = 3;
71   AxisIdx["PITCH"]  = 4;
72   AxisIdx["YAW"]    = 5;
73
74   AxisIdx["AXIAL"]  = 0;
75   AxisIdx["NORMAL"] = 2;
76
77   AxisIdx["X"] = 0;
78   AxisIdx["Y"] = 1;
79   AxisIdx["Z"] = 2;
80
81   axisType = atNone;
82
83   Coeff = new CoeffArray[6];
84
85   impending_stall = stall_hyst = 0.0;
86   alphaclmin = alphaclmax = 0.0;
87   alphahystmin = alphahystmax = 0.0;
88   clsq = lod = 0.0;
89   alphaw = 0.0;
90   bi2vel = ci2vel = 0.0;
91   AeroRPShift = 0;
92   vDeltaRP.InitMatrix();
93
94   bind();
95
96   Debug(0);
97 }
98
99 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
100
101 FGAerodynamics::~FGAerodynamics()
102 {
103   unsigned int i,j;
104
105   for (i=0; i<6; i++)
106     for (j=0; j<Coeff[i].size(); j++)
107       delete Coeff[i][j];
108
109   delete[] Coeff;
110
111   for (i=0; i<variables.size(); i++)
112     delete variables[i];
113
114   delete AeroRPShift;
115
116   Debug(1);
117 }
118
119 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
120
121 bool FGAerodynamics::InitModel(void)
122 {
123   if (!FGModel::InitModel()) return false;
124
125   impending_stall = stall_hyst = 0.0;
126   alphaclmin = alphaclmax = 0.0;
127   alphahystmin = alphahystmax = 0.0;
128   clsq = lod = 0.0;
129   alphaw = 0.0;
130   bi2vel = ci2vel = 0.0;
131   AeroRPShift = 0;
132   vDeltaRP.InitMatrix();
133
134   return true;
135 }
136 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
137
138 bool FGAerodynamics::Run(void)
139 {
140   unsigned int axis_ctr, ctr, i;
141   double alpha, twovel;
142
143   if (FGModel::Run()) return true;
144   if (FDMExec->Holding()) return false; // if paused don't execute
145
146   // calculate some oft-used quantities for speed
147
148   twovel = 2*Auxiliary->GetVt();
149   if (twovel != 0) {
150     bi2vel = Aircraft->GetWingSpan() / twovel;
151     ci2vel = Aircraft->Getcbar() / twovel;
152   }
153   alphaw = Auxiliary->Getalpha() + Aircraft->GetWingIncidence();
154   alpha = Auxiliary->Getalpha();
155   qbar_area = Aircraft->GetWingArea() * Auxiliary->Getqbar();
156
157   if (alphaclmax != 0) {
158     if (alpha > 0.85*alphaclmax) {
159       impending_stall = 10*(alpha/alphaclmax - 0.85);
160     } else {
161       impending_stall = 0;
162     }
163   }
164
165   if (alphahystmax != 0.0 && alphahystmin != 0.0) {
166     if (alpha > alphahystmax) {
167        stall_hyst = 1;
168     } else if (alpha < alphahystmin) {
169        stall_hyst = 0;
170     }
171   }
172
173   vFw.InitMatrix();
174   vFnative.InitMatrix();
175
176   // Tell the variable functions to cache their values, so while the aerodynamic
177   // functions are being calculated for each axis, these functions do not get
178   // calculated each time, but instead use the values that have already
179   // been calculated for this frame.
180
181   for (i=0; i<variables.size(); i++) variables[i]->cacheValue(true);
182
183   for (axis_ctr = 0; axis_ctr < 3; axis_ctr++) {
184     for (ctr=0; ctr < Coeff[axis_ctr].size(); ctr++) {
185       vFnative(axis_ctr+1) += Coeff[axis_ctr][ctr]->GetValue();
186     }
187   }
188
189   // Note that we still need to convert to wind axes here, because it is
190   // used in the L/D calculation, and we still may want to look at Lift
191   // and Drag.
192
193   switch (axisType) {
194     case atBodyXYZ:       // Forces already in body axes; no manipulation needed
195       vFw = GetTb2w()*vFnative;
196       vForces = vFnative;
197       break;
198     case atLiftDrag:      // Copy forces into wind axes
199       vFw = vFnative;
200       vFw(eDrag)*=-1; vFw(eLift)*=-1;
201       vForces = GetTw2b()*vFw;
202       break;
203     case atAxialNormal:   // Convert native forces into Axial|Normal|Side system
204       vFw = GetTb2w()*vFnative;
205       vFnative(eX)*=-1; vFnative(eZ)*=-1;
206       vForces = vFnative;
207       break;
208     default:
209       cerr << endl << "  A proper axis type has NOT been selected. Check "
210                    << "your aerodynamics definition." << endl;
211       exit(-1);
212   }
213
214   // Calculate aerodynamic reference point shift, if any
215   if (AeroRPShift) vDeltaRP(eX) = AeroRPShift->GetValue()*Aircraft->Getcbar()*12.0;
216
217   // Calculate lift coefficient squared
218   if ( Auxiliary->Getqbar() > 0) {
219     clsq = vFw(eLift) / (Aircraft->GetWingArea()*Auxiliary->Getqbar());
220     clsq *= clsq;
221   }
222
223   // Calculate lift Lift over Drag
224   if ( fabs(vFw(eDrag)) > 0.0) lod = fabs( vFw(eLift) / vFw(eDrag) );
225
226   vDXYZcg = MassBalance->StructuralToBody(Aircraft->GetXYZrp() + vDeltaRP);
227
228   vMoments = vDXYZcg*vForces; // M = r X F
229
230   for (axis_ctr = 0; axis_ctr < 3; axis_ctr++) {
231     for (ctr = 0; ctr < Coeff[axis_ctr+3].size(); ctr++) {
232       vMoments(axis_ctr+1) += Coeff[axis_ctr+3][ctr]->GetValue();
233     }
234   }
235
236   return false;
237 }
238
239 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
240 //
241 // From Stevens and Lewis, "Aircraft Control and Simulation", 3rd Ed., the
242 // transformation from body to wind axes is defined (where "a" is alpha and "B"
243 // is beta):
244 //
245 //   cos(a)*cos(B)     sin(B)    sin(a)*cos(B)
246 //  -cos(a)*sin(B)     cos(B)   -sin(a)*sin(B)
247 //  -sin(a)              0       cos(a)
248 //
249 // The transform from wind to body axes is then,
250 //
251 //   cos(a)*cos(B)  -cos(a)*sin(B)  -sin(a)
252 //          sin(B)          cos(B)     0
253 //   sin(a)*cos(B)  -sin(a)*sin(B)   cos(a)
254
255 FGMatrix33& FGAerodynamics::GetTw2b(void)
256 {
257   double ca, cb, sa, sb;
258
259   double alpha = Auxiliary->Getalpha();
260   double beta  = Auxiliary->Getbeta();
261
262   ca = cos(alpha);
263   sa = sin(alpha);
264   cb = cos(beta);
265   sb = sin(beta);
266
267   mTw2b(1,1) =  ca*cb;
268   mTw2b(1,2) = -ca*sb;
269   mTw2b(1,3) = -sa;
270   mTw2b(2,1) =  sb;
271   mTw2b(2,2) =  cb;
272   mTw2b(2,3) =  0.0;
273   mTw2b(3,1) =  sa*cb;
274   mTw2b(3,2) = -sa*sb;
275   mTw2b(3,3) =  ca;
276
277   return mTw2b;
278 }
279
280 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
281
282 FGMatrix33& FGAerodynamics::GetTb2w(void)
283 {
284   double alpha,beta;
285   double ca, cb, sa, sb;
286
287   alpha = Auxiliary->Getalpha();
288   beta  = Auxiliary->Getbeta();
289
290   ca = cos(alpha);
291   sa = sin(alpha);
292   cb = cos(beta);
293   sb = sin(beta);
294
295   mTb2w(1,1) = ca*cb;
296   mTb2w(1,2) = sb;
297   mTb2w(1,3) = sa*cb;
298   mTb2w(2,1) = -ca*sb;
299   mTb2w(2,2) = cb;
300   mTb2w(2,3) = -sa*sb;
301   mTb2w(3,1) = -sa;
302   mTb2w(3,2) = 0.0;
303   mTb2w(3,3) = ca;
304
305   return mTb2w;
306 }
307
308 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
309
310 bool FGAerodynamics::Load(Element *element)
311 {
312   string parameter, axis, scratch;
313   string scratch_unit="";
314   string fname="", file="";
315   Element *temp_element, *axis_element, *function_element;
316
317   string separator = "/";
318
319   fname = element->GetAttributeValue("file");
320   if (!fname.empty()) {
321     file = FDMExec->GetFullAircraftPath() + separator + fname;
322     document = LoadXMLDocument(file);
323   } else {
324     document = element;
325   }
326
327   FGModel::Load(element); // Perform base class Load
328
329   DetermineAxisSystem(); // Detemine if Lift/Side/Drag, etc. is used.
330
331   Debug(2);
332
333   if ((temp_element = document->FindElement("alphalimits"))) {
334     scratch_unit = temp_element->GetAttributeValue("unit");
335     if (scratch_unit.empty()) scratch_unit = "RAD";
336     alphaclmin = temp_element->FindElementValueAsNumberConvertFromTo("min", scratch_unit, "RAD");
337     alphaclmax = temp_element->FindElementValueAsNumberConvertFromTo("max", scratch_unit, "RAD");
338   }
339
340   if ((temp_element = document->FindElement("hysteresis_limits"))) {
341     scratch_unit = temp_element->GetAttributeValue("unit");
342     if (scratch_unit.empty()) scratch_unit = "RAD";
343     alphahystmin = temp_element->FindElementValueAsNumberConvertFromTo("min", scratch_unit, "RAD");
344     alphahystmax = temp_element->FindElementValueAsNumberConvertFromTo("max", scratch_unit, "RAD");
345   }
346
347   if ((temp_element = document->FindElement("aero_ref_pt_shift_x"))) {
348     function_element = temp_element->FindElement("function");
349     AeroRPShift = new FGFunction(PropertyManager, function_element);
350   }
351
352   function_element = document->FindElement("function");
353   while (function_element) {
354     variables.push_back( new FGFunction(PropertyManager, function_element) );
355     function_element = document->FindNextElement("function");
356   }
357
358   axis_element = document->FindElement("axis");
359   while (axis_element) {
360     CoeffArray ca;
361     axis = axis_element->GetAttributeValue("name");
362     function_element = axis_element->FindElement("function");
363     while (function_element) {
364       ca.push_back( new FGFunction(PropertyManager, function_element) );
365       function_element = axis_element->FindNextElement("function");
366     }
367     Coeff[AxisIdx[axis]] = ca;
368     axis_element = document->FindNextElement("axis");
369   }
370
371   return true;
372 }
373
374 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
375 //
376 // This private class function checks to verify consistency in the choice of
377 // aerodynamic axes used in the config file. One set of LIFT|DRAG|SIDE, or 
378 // X|Y|Z, or AXIAL|NORMAL|SIDE must be chosen; mixed system axes are not allowed.
379 // Note that if the "SIDE" axis specifier is entered first in a config file, 
380 // a warning message will be given IF the AXIAL|NORMAL specifiers are also given.
381 // This is OK, and the warning is due to the SIDE specifier used for both
382 // the Lift/Drag and Axial/Normal axis systems.
383
384 void FGAerodynamics::DetermineAxisSystem()
385 {
386   Element* axis_element = document->FindElement("axis");
387   string axis;
388   while (axis_element) {
389     axis = axis_element->GetAttributeValue("name");
390     if (axis == "LIFT" || axis == "DRAG" || axis == "SIDE") {
391       if (axisType == atNone) axisType = atLiftDrag;
392       else if (axisType != atLiftDrag) {
393         cerr << endl << "  Mixed aerodynamic axis systems have been used in the"
394                      << " aircraft config file." << endl;
395       }
396     } else if (axis == "AXIAL" || axis == "NORMAL") {
397       if (axisType == atNone) axisType = atAxialNormal;
398       else if (axisType != atAxialNormal) {
399         cerr << endl << "  Mixed aerodynamic axis systems have been used in the"
400                      << " aircraft config file." << endl;
401       }
402     } else if (axis == "X" || axis == "Y" || axis == "Z") {
403       if (axisType == atNone) axisType = atBodyXYZ;
404       else if (axisType != atBodyXYZ) {
405         cerr << endl << "  Mixed aerodynamic axis systems have been used in the"
406                      << " aircraft config file." << endl;
407       }
408     } else if (axis != "ROLL" && axis != "PITCH" && axis != "YAW") { // error
409       cerr << endl << "  An unknown axis type, " << axis << " has been specified"
410                    << " in the aircraft configuration file." << endl;
411       exit(-1);
412     }
413     axis_element = document->FindNextElement("axis");
414   }
415   if (axisType == atNone) {
416     axisType = atLiftDrag;
417     cerr << endl << "  The aerodynamic axis system has been set by default"
418                  << " to the Lift/Side/Drag system." << endl;
419   }
420 }
421
422 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
423
424 string FGAerodynamics::GetCoefficientStrings(const string& delimeter) const
425 {
426   string CoeffStrings = "";
427   bool firstime = true;
428   unsigned int axis, sd;
429
430   for (sd = 0; sd < variables.size(); sd++) {
431     if (firstime) {
432       firstime = false;
433     } else {
434       CoeffStrings += delimeter;
435     }
436     CoeffStrings += variables[sd]->GetName();
437   }
438
439   for (axis = 0; axis < 6; axis++) {
440     for (sd = 0; sd < Coeff[axis].size(); sd++) {
441       if (firstime) {
442         firstime = false;
443       } else {
444         CoeffStrings += delimeter;
445       }
446       CoeffStrings += Coeff[axis][sd]->GetName();
447     }
448   }
449   return CoeffStrings;
450 }
451
452 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
453
454 string FGAerodynamics::GetCoefficientValues(const string& delimeter) const
455 {
456   ostringstream buf;
457
458   buf.precision(6);
459   for (unsigned int sd = 0; sd < variables.size(); sd++) {
460     if (buf.tellp() > 0) buf << delimeter;
461     buf << setw(9) << variables[sd]->GetValue();
462   }
463
464   for (unsigned int axis = 0; axis < 6; axis++) {
465     for (unsigned int sd = 0; sd < Coeff[axis].size(); sd++) {
466       if (buf.tellp() > 0) buf << delimeter;
467       buf << setw(9) << Coeff[axis][sd]->GetValue();
468     }
469   }
470
471   return buf.str();
472 }
473
474 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
475
476 void FGAerodynamics::bind(void)
477 {
478   typedef double (FGAerodynamics::*PMF)(int) const;
479
480   PropertyManager->Tie("forces/fbx-aero-lbs", this,1,
481                        (PMF)&FGAerodynamics::GetForces);
482   PropertyManager->Tie("forces/fby-aero-lbs", this,2,
483                        (PMF)&FGAerodynamics::GetForces);
484   PropertyManager->Tie("forces/fbz-aero-lbs", this,3,
485                        (PMF)&FGAerodynamics::GetForces);
486   PropertyManager->Tie("moments/l-aero-lbsft", this,1,
487                        (PMF)&FGAerodynamics::GetMoments);
488   PropertyManager->Tie("moments/m-aero-lbsft", this,2,
489                        (PMF)&FGAerodynamics::GetMoments);
490   PropertyManager->Tie("moments/n-aero-lbsft", this,3,
491                        (PMF)&FGAerodynamics::GetMoments);
492   PropertyManager->Tie("forces/fwx-aero-lbs", this,1,
493                        (PMF)&FGAerodynamics::GetvFw);
494   PropertyManager->Tie("forces/fwy-aero-lbs", this,2,
495                        (PMF)&FGAerodynamics::GetvFw);
496   PropertyManager->Tie("forces/fwz-aero-lbs", this,3,
497                        (PMF)&FGAerodynamics::GetvFw);
498   PropertyManager->Tie("forces/lod-norm", this,
499                        &FGAerodynamics::GetLoD);
500   PropertyManager->Tie("aero/cl-squared", this,
501                        &FGAerodynamics::GetClSquared);
502   PropertyManager->Tie("aero/qbar-area", &qbar_area);
503   PropertyManager->Tie("aero/alpha-max-rad", this,
504                        &FGAerodynamics::GetAlphaCLMax,
505                        &FGAerodynamics::SetAlphaCLMax,
506                        true);
507   PropertyManager->Tie("aero/alpha-min-rad", this,
508                        &FGAerodynamics::GetAlphaCLMin,
509                        &FGAerodynamics::SetAlphaCLMin,
510                        true);
511   PropertyManager->Tie("aero/bi2vel", this,
512                        &FGAerodynamics::GetBI2Vel);
513   PropertyManager->Tie("aero/ci2vel", this,
514                        &FGAerodynamics::GetCI2Vel);
515   PropertyManager->Tie("aero/alpha-wing-rad", this,
516                        &FGAerodynamics::GetAlphaW);
517   PropertyManager->Tie("systems/stall-warn-norm", this,
518                         &FGAerodynamics::GetStallWarn);
519   PropertyManager->Tie("aero/stall-hyst-norm", this,
520                         &FGAerodynamics::GetHysteresisParm);
521 }
522
523 //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
524 //    The bitmasked value choices are as follows:
525 //    unset: In this case (the default) JSBSim would only print
526 //       out the normally expected messages, essentially echoing
527 //       the config files as they are read. If the environment
528 //       variable is not set, debug_lvl is set to 1 internally
529 //    0: This requests JSBSim not to output any messages
530 //       whatsoever.
531 //    1: This value explicity requests the normal JSBSim
532 //       startup messages
533 //    2: This value asks for a message to be printed out when
534 //       a class is instantiated
535 //    4: When this value is set, a message is displayed when a
536 //       FGModel object executes its Run() method
537 //    8: When this value is set, various runtime state variables
538 //       are printed out periodically
539 //    16: When set various parameters are sanity checked and
540 //       a message is printed out when they go out of bounds
541
542 void FGAerodynamics::Debug(int from)
543 {
544   if (debug_lvl <= 0) return;
545
546   if (debug_lvl & 1) { // Standard console startup message output
547     if (from == 2) { // Loader
548       switch (axisType) {
549         case (atLiftDrag):
550           cout << endl << "  Aerodynamics (Lift|Side|Drag axes):" << endl << endl;
551           break;
552         case (atAxialNormal):
553           cout << endl << "  Aerodynamics (Axial|Side|Normal axes):" << endl << endl;
554           break;
555         case (atBodyXYZ):
556           cout << endl << "  Aerodynamics (X|Y|Z axes):" << endl << endl;
557           break;
558       case (atNone):
559           cout << endl << "  Aerodynamics (undefined axes):" << endl << endl;
560           break;
561       }
562     }
563   }
564   if (debug_lvl & 2 ) { // Instantiation/Destruction notification
565     if (from == 0) cout << "Instantiated: FGAerodynamics" << endl;
566     if (from == 1) cout << "Destroyed:    FGAerodynamics" << endl;
567   }
568   if (debug_lvl & 4 ) { // Run() method entry print for FGModel-derived objects
569   }
570   if (debug_lvl & 8 ) { // Runtime state variables
571   }
572   if (debug_lvl & 16) { // Sanity checking
573   }
574   if (debug_lvl & 64) {
575     if (from == 0) { // Constructor
576       cout << IdSrc << endl;
577       cout << IdHdr << endl;
578     }
579   }
580 }
581
582 } // namespace JSBSim