JSBSim Flight Dynamics Model 1.2.2 (22 Mar 2025)
An Open Source Flight Dynamics and Control Software Library in C++
Loading...
Searching...
No Matches
FGSpoolUp Class Reference

Detailed Description

Definition at line 326 of file FGTurbine.h.

+ Inheritance diagram for FGSpoolUp:
+ Collaboration diagram for FGSpoolUp:

Public Member Functions

 FGSpoolUp (FGTurbine *_turb, double BPR, double factor)
 
std::string GetName (void) const
 
double GetValue (void) const
 
- Public Member Functions inherited from FGParameter
double getDoubleValue (void) const
 
virtual bool IsConstant (void) const
 

Constructor & Destructor Documentation

◆ FGSpoolUp()

FGSpoolUp ( FGTurbine _turb,
double  BPR,
double  factor 
)
inline

Definition at line 329 of file FGTurbine.h.

330 : turb(_turb), delay(factor * 90.0 / (BPR + 3.0)) {}

Member Function Documentation

◆ GetName()

std::string GetName ( void  ) const
inlinevirtual

Implements FGParameter.

Definition at line 331 of file FGTurbine.h.

331{ return std::string(); };

◆ GetValue()

double GetValue ( void  ) const
inlinevirtual

Implements FGParameter.

Definition at line 332 of file FGTurbine.h.

332 {
333 // adjust acceleration for N2 and atmospheric density
334 double n = std::min(1.0, turb->N2norm + 0.1);
335 return delay / (1 + 3 * (1-n)*(1-n)*(1-n) + (1 - turb->in.DensityRatio));
336 }

The documentation for this class was generated from the following file: