102 if (RPM <= 0.1) power = max(power, 0.0);
110double FGElectric::CalcFuelNeed(
void)
119 std::ostringstream buf;
131 std::ostringstream buf;
133 buf << HP << delimiter
159void FGElectric::Debug(
int from)
166 cout <<
"\n Engine Name: " <<
Name << endl;
167 cout <<
" Power Watts: " << PowerWatts << endl;
172 if (from == 0) cout <<
"Instantiated: FGElectric" << endl;
173 if (from == 1) cout <<
"Destroyed: FGElectric" << 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.
std::string GetEngineValues(const std::string &delimiter)
std::string GetEngineLabels(const std::string &delimiter)
void Calculate(void)
Calculates the thrust of the engine, and other engine functions.
FGElectric(FGFDMExec *exec, Element *el, int engine_number, FGEngine::Inputs &input)
Constructor.
bool Load(FGFDMExec *exec, Element *el)
void LoadThrusterInputs()
FGEngine(int engine_number, struct Inputs &input)
FGPropertyManager * GetPropertyManager(void)
Returns a pointer to the property manager object.
static constexpr double hptoftlbssec
static std::string CreateIndexedPropertyName(const std::string &Property, int index)
void RunPostFunctions(void)
void RunPreFunctions(void)
FGPropeller models a propeller given the tabular data for Ct (thrust) and Cp (power),...
void Tie(const std::string &name, T *pointer)
Tie a property to an external variable.