40#include "input_output/FGXMLElement.h"
41#include "input_output/FGLog.h"
59 err <<
"Fatal Error: Nozzle exit area must be given in nozzle config file.\n";
78double FGNozzle::Calculate(
double vacThrust)
80 Thrust = max((
double)0.0, vacThrust - in.Pressure*Area);
82 vFn(1) = Thrust * cos(ReverserAngle);
89string FGNozzle::GetThrusterLabels(
int id,
const string& delimeter)
91 std::ostringstream buf;
93 buf << Name <<
" Thrust (engine " <<
id <<
" in lbs)";
100string FGNozzle::GetThrusterValues(
int id,
const string& delimeter)
102 std::ostringstream buf;
128void FGNozzle::Debug(
int from)
130 if (debug_lvl <= 0)
return;
134 FGLogging log(LogLevel::DEBUG);
135 log <<
" Nozzle Name: " << Name <<
"\n";
136 log <<
" Nozzle Exit Area = " << Area <<
"\n";
139 if (debug_lvl & 2 ) {
140 FGLogging log(LogLevel::DEBUG);
141 if (from == 0) log <<
"Instantiated: FGNozzle\n";
142 if (from == 1) log <<
"Destroyed: FGNozzle\n";
144 if (debug_lvl & 4 ) {
146 if (debug_lvl & 8 ) {
148 if (debug_lvl & 16) {
150 if (debug_lvl & 64) {
Element * FindElement(const std::string &el="")
Searches for a specified element.
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.
Encapsulates the JSBSim simulation executive.
FGNozzle(FGFDMExec *exec, Element *el, int num=0)
Constructor.
Base class for specific thrusting devices such as propellers, nozzles, etc.
Main namespace for the JSBSim Flight Dynamics Model.