Skip to content

Commit

Permalink
Ensure non-zero acceleration of N1/N2 for windmilling when N1/N2 = 0 (J…
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcleod authored and bcoconni committed Nov 6, 2021
1 parent 97f0a98 commit 8bc8af9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/models/propulsion/FGTurbine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,9 @@ double FGTurbine::Off(void)
FuelFlow_pph = Seek(&FuelFlow_pph, 0, 1000.0, 10000.0);
// some engines have inlets that close when they are off. So, if a flag is true disable windmilling
if (disableWindmill == false) {
N1 = Seek(&N1, in.qbar/10.0, N1/2.0, N1/N1_spindown);
N2 = Seek(&N2, in.qbar/15.0, N2/2.0, N2/N2_spindown);
// Need a small non-zero increment for acceleration otherwise acceleration will be 0 if N1 = 0
N1 = Seek(&N1, in.qbar/10.0, N1/2.0 + 0.1, N1/N1_spindown);
N2 = Seek(&N2, in.qbar/15.0, N2/2.0 + 0.1, N2/N2_spindown);
} else {
N1 = Seek(&N1, 0, N1/2.0, N1/N1_spindown);
N2 = Seek(&N2, 0, N2/2.0, N2/N2_spindown);
Expand Down

0 comments on commit 8bc8af9

Please sign in to comment.