<?xml version="1.0"?>

<!--
    Copyright 2018, Daniel Meissner (daniel_hl.83@googlemail.com)
 
    This file is part of the Flightgear CRJ700-family.

    The Flightgear CRJ700-family is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 2 of the License, or
    (at your option) any later version.

    The Flightgear CRJ700-family is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with the Flightgear CRJ700-family.  If not, see <http://www.gnu.org/licenses/>.
 -->

<!--
  File:     my_engine.xml
  Author:   AeromatiC++ v 3.3.10

  See: http://wiki.flightgear.org/JSBSim_Engines#FGTurbine

  Inputs:
    name:                    my_engine
    type:                    Turbine Engine
    thrust:                  13780.8 lbf
    bypass ratio:            8.000:1
    overall pressure ratio:  16.0:1
    augmented?               no
    injected?                no

  Outputs
    tsfc:                    0.6
    engine weight:           2746.5 lbs
    engine length:           8.1 ft
    engine diameter:         4.6 ft
-->

<turbine_engine name="my_engine">
  <milthrust> 13780.8 </milthrust>
  <bypassratio>     8.000 </bypassratio>
  <tsfc>            0.608 </tsfc>
  <bleed>           0.03</bleed>
  <idlen1>         30.0 </idlen1>
  <idlen2>         60.0 </idlen2>
  <maxn1>         100.0 </maxn1>
  <maxn2>         100.0 </maxn2>
  <augmented>         0 </augmented>
  <injected>          0 </injected>

  <function name="IdleThrust">
   <table>
    <independentVar lookup="row">velocities/mach</independentVar>
    <independentVar lookup="column">atmosphere/density-altitude</independentVar>
    <tableData>
         -10000     0     10000   20000   30000   40000   50000   90000
     0.0  0.0430  0.0488  0.0528  0.0694  0.0899  0.1183  0.1467  0
     0.2  0.0500  0.0501  0.0335  0.0544  0.0797  0.1049  0.1342  0
     0.4  0.0040  0.0047  0.0020  0.0272  0.0595  0.0891  0.1203  0
     0.6 -0.0804 -0.0804 -0.0560 -0.0237  0.0276  0.0718  0.1073  0
     0.8 -0.2129 -0.2129 -0.1498 -0.1025  0.0474  0.0868  0.0900  0
     1.0 -0.2839 -0.2839 -0.1104 -0.0469 -0.0270  0.0552  0.0800  0
    </tableData>
   </table>
  </function>

  <function name="MilThrust">
   <table>
    <independentVar lookup="row">velocities/mach</independentVar>
    <independentVar lookup="column">atmosphere/density-altitude</independentVar>
    <tableData>
          -10000       0   10000   20000   30000   40000   50000   60000   90000
      0.0  1.2600  1.0000  0.7400  0.5340  0.3720  0.2410  0.1490  0.0580  0
      0.2  0.9649  0.7696  0.5743  0.4169  0.2925  0.1903  0.1178  0.0330  0
      0.4  0.7452  0.5968  0.4484  0.3279  0.2313  0.1510  0.0940  0.0279  0
      0.6  0.5574  0.4489  0.3403  0.2511  0.1784  0.1171  0.0727  0.0222  0
      0.8  0.3724  0.3019  0.2315  0.1723  0.1234  0.0814  0.0503  0.0157  0
      1.0  0.1643  0.1344  0.1045  0.0781  0.0570  0.0378  0.0234  0.0076  0
      1.2 -0.0832 -0.0689 -0.0546 -0.0417 -0.0305 -0.0204 -0.0126 -0.0041  0
      1.4 -0.3698 -0.3109 -0.2520 -0.1960 -0.1457 -0.0984 -0.0610 -0.0209  0
    </tableData>
   </table>
  </function>

</turbine_engine>
