[Gcblue-commits] gcb_wx/include/database tcAirDBObject.h,1.10,1.11
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-05-26 11:53:51
|
Update of /cvsroot/gcblue/gcb_wx/include/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28951/include/database Modified Files: tcAirDBObject.h Log Message: air model changes Index: tcAirDBObject.h =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/include/database/tcAirDBObject.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** tcAirDBObject.h 21 May 2005 02:00:27 -0000 1.10 --- tcAirDBObject.h 26 May 2005 11:53:37 -0000 1.11 *************** *** 50,54 **** { public: ! float mfAltThrustDecay_pm; ///< [1/m] available thrust decay with altitude float mfAfterburnFuelRate_kgps; ///< [kg/s] with afterburners float mfAfterburnThrust_N; ///< [N] afterburners engine thrust --- 50,54 ---- { public: ! float zeroThrustAltitude_m; ///< [m] altitude where thrust falls to zero with parametric model float mfAfterburnFuelRate_kgps; ///< [kg/s] with afterburners float mfAfterburnThrust_N; ///< [N] afterburners engine thrust *************** *** 64,67 **** --- 64,71 ---- float mfGmax; ///< max Gs + + float GetParasiticDragCoefficient(float vmach) const; + float GetThrustFactor(float alt_m) const; + virtual const char* GetClassName() {return "Air";} ///< returns class name of database object bool IsLeaf() const; ///< returns true if db obj is a leaf obj *************** *** 79,82 **** --- 83,95 ---- tcAirDBObject(tcAirDBObject& obj); ///< copy constructor virtual ~tcAirDBObject(); + + private: + void CalculateParams(); + + // calculated parameters + float invMachRange; ///< 1 / (width of transonic) + float thrustDecayFactor; + + }; } |