43 #include "input_output/FGXMLElement.h" 49 IDENT(IdSrc,
"$Id: FGNozzle.cpp,v 1.17 2014/01/13 10:46:10 ehofman Exp $");
50 IDENT(IdHdr,ID_NOZZLE);
63 cerr <<
"Fatal Error: Nozzle exit area must be given in nozzle config file." << endl;
82 double FGNozzle::Calculate(
double vacThrust)
84 Thrust = max((
double)0.0, vacThrust - in.Pressure*Area);
86 vFn(1) = Thrust * cos(ReverserAngle);
93 string FGNozzle::GetThrusterLabels(
int id,
const string& delimeter)
95 std::ostringstream buf;
97 buf << Name <<
" Thrust (engine " <<
id <<
" in lbs)";
104 string FGNozzle::GetThrusterValues(
int id,
const string& delimeter)
106 std::ostringstream buf;
132 void FGNozzle::Debug(
int from)
134 if (debug_lvl <= 0)
return;
138 cout <<
" Nozzle Name: " << Name << endl;
139 cout <<
" Nozzle Exit Area = " << Area << endl;
142 if (debug_lvl & 2 ) {
143 if (from == 0) cout <<
"Instantiated: FGNozzle" << endl;
144 if (from == 1) cout <<
"Destroyed: FGNozzle" << endl;
146 if (debug_lvl & 4 ) {
148 if (debug_lvl & 8 ) {
150 if (debug_lvl & 16) {
152 if (debug_lvl & 64) {
154 cout << IdSrc << endl;
155 cout << IdHdr << endl;
double FindElementValueAsNumberConvertTo(const std::string &el, const std::string &target_units)
Searches for the named element and converts and returns the data belonging to it. ...
Element * FindElement(const std::string &el="")
Searches for a specified element.
Base class for specific thrusting devices such as propellers, nozzles, etc.
Encapsulates the JSBSim simulation executive.