<?xml version="1.0" encoding="ISO-8859-1"?>

<!--  Sukhoi Su 33 Flanker D : BARANGER Emmanuel 11/2024
                      Update : BARANGER Emmanuel 05/2025

     sources      : https://www.wikiwand.com/en/articles/Sukhoi_Su-33

     Wingspan     : 14.70 m                            (     48 ft 3 in )
     Lenght       : 21.19 m                            (     69 ft 6 in )
     Height       :  5.93 m                            (     19 ft 5 in )
     Weight       : 18400 kg                           (  40565 lb      )
     Max weight   : 33000 kg                           (  72753 lb      )
     Engines      : 2 Saturn AL-31F3 afterburning turbofan engines ( 16700 lbf ) thrust each dry ), ( 28200 lbf with afterburner )
     Max speed    :  2300 km/h                         (  1240 kn       ) at 10000 m ( 33000 ft )
     Stall speed  :   240 km/h                         (   130 kn       )
     Fuel capacity:  9500 kg                           ( 20900 lb       ) internal
-->
<airplane mass="40565" version="YASIM_VERSION_CURRENT" mtow-lbs="72753">

  <approach          speed="130" aoa="10"                           fuel="1.0">
    <control-setting axis="/controls/engines/engine[0]/throttle"    value="0.7"/>
    <control-setting axis="/controls/engines/engine[0]/afterburner" value="0"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"    value="0.7"/>
    <control-setting axis="/controls/engines/engine[1]/afterburner" value="0"/>

    <control-setting axis="/controls/flight/flaps"                  value="1"/>
    <control-setting axis="/controls/flight/slats"                  value="1"/>
    <control-setting axis="/controls/gear/gear-down"                value="1"/>
  </approach>

  <cruise            speed="1100" alt="30000"                       fuel="0.8">
    <control-setting axis="/controls/engines/engine[0]/throttle"    value="1.0"/>
    <control-setting axis="/controls/engines/engine[0]/afterburner" value="1.0"/>

    <control-setting axis="/controls/engines/engine[1]/throttle"    value="1.0"/>
    <control-setting axis="/controls/engines/engine[1]/afterburner" value="1.0"/>

    <control-setting axis="/controls/flight/flaps"                  value="0.0"/>
    <control-setting axis="/controls/flight/slats"                  value="0"/>
    <control-setting axis="/controls/gear/gear-down"                value="0"/>
  </cruise>

  <cockpit x="5.222" y="0.000" z="0.682"/>

  <!-- Fuselage -->
  <fuselage ax=" 10.620" ay=" 0.000" az="-0.837" bx="  9.848" by=" 0.000" bz="-0.742" width="0.637" taper="0.02" midpoint="1"/>
  <fuselage ax="  9.848" ay=" 0.000" az="-0.742" bx="  9.188" by=" 0.000" bz="-0.653" width="0.980" taper="0.65" midpoint="1"/>
  <fuselage ax="  9.188" ay=" 0.000" az="-0.653" bx="  7.281" by=" 0.000" bz="-0.396" width="1.381" taper="0.71" midpoint="1"/>
  <fuselage ax="  7.324" ay=" 0.000" az="-0.398" bx="  4.763" by=" 0.000" bz="-0.290" width="1.624" taper="0.84" midpoint="1"/>
  <fuselage ax="  4.763" ay=" 0.000" az="-0.290" bx="  1.711" by=" 0.000" bz="-0.290" width="1.624" taper="1.00" midpoint="1"/>
  <fuselage ax="  1.711" ay=" 0.000" az="-0.290" bx="-10.535" by=" 0.000" bz="-0.740" width="1.624" taper="0.10" midpoint="0"/>
  <!-- Cockpit -->
  <fuselage ax="  7.365" ay=" 0.000" az=" 0.161" bx="  6.335" by=" 0.000" bz=" 0.292" width="0.969" taper="0.28" midpoint="1"/>
  <fuselage ax="  6.335" ay=" 0.000" az=" 0.292" bx="  4.774" by=" 0.000" bz=" 0.493" width="1.094" taper="0.88" midpoint="1"/>
  <fuselage ax="  4.774" ay=" 0.000" az=" 0.493" bx="  2.616" by=" 0.000" bz=" 0.493" width="1.094" taper="0.44" midpoint="0"/>
  <fuselage ax="  2.616" ay=" 0.000" az=" 0.493" bx="-10.551" by=" 0.000" bz="-0.598" width="0.481" taper="0.20" midpoint="0"/>
  <!-- Left engine -->
  <fuselage ax="  2.016" ay=" 0.981" az="-0.942" bx="  0.417" by=" 0.975" bz="-1.027" width="1.103" taper="0.75" midpoint="1"/>
  <fuselage ax="  0.417" ay=" 0.975" az="-1.027" bx=" -1.752" by=" 1.198" bz="-1.088" width="1.394" taper="0.84" midpoint="1"/>
  <fuselage ax=" -1.752" ay=" 1.198" az="-1.078" bx=" -8.721" by=" 1.198" bz="-0.994" width="1.450" taper="0.80" midpoint="0"/>
  <fuselage ax=" -8.721" ay=" 1.198" az="-0.994" bx=" -9.406" by=" 1.198" bz="-0.994" width="1.196" taper="0.74" midpoint="0"/>
  <!-- Right engine -->
  <fuselage ax="  2.016" ay="-0.981" az="-0.942" bx="  0.417" by="-0.975" bz="-1.027" width="1.103" taper="0.75" midpoint="1"/>
  <fuselage ax="  0.417" ay="-0.975" az="-1.027" bx=" -1.752" by="-1.198" bz="-1.088" width="1.394" taper="0.84" midpoint="1"/>
  <fuselage ax=" -1.752" ay="-1.198" az="-1.078" bx=" -8.721" by="-1.198" bz="-0.994" width="1.450" taper="0.80" midpoint="0"/>
  <fuselage ax=" -8.721" ay="-1.198" az="-0.994" bx=" -9.406" by="-1.198" bz="-0.994" width="1.196" taper="0.74" midpoint="0"/>

  <wing x="-2.381" y="1.772" z="-0.467"
        chord  = "6.036"
        length = "6.16"
        taper  = "0.33"
        sweep  = "30"
        camber = "0.005">
        <stall    aoa="20"  width="1.0"  peak="1.1"/>
        <slat    start="0.04" end="0.87" aoa="5"   drag="1.5"/>
        <flap0   start="0.07" end="0.94" lift="1.3" drag="1.4"/>
        <flap1   start="0.07" end="0.62" lift="1.2" drag="1.2"/>

        <control-input  control="SLAT"   axis="/controls/flight/flaps"/>
        <control-input  control="FLAP0"  axis="/controls/flight/flaps"/>
        <control-input  control="FLAP1"  axis="/controls/flight/aileron"      split="true"/>
        <control-input  control="FLAP1"  axis="/controls/flight/aileron-trim" split="true"/>

        <control-output control="SLAT"   prop="/surface-positions/slat-pos-norm" />
        <control-output control="FLAP0"  prop="/surface-positions/flap-pos-norm"/>
        <control-output control="FLAP1"  prop="/surface-positions/left-aileron-pos-norm"  side="left"/>
        <control-output control="FLAP1"  prop="/surface-positions/right-aileron-pos-norm" side="right"/>

        <control-speed  control="SLAT"   transition-time="2"/>
        <control-speed  control="FLAP0"  transition-time="4"/>
  </wing>

  <wing x="2.024" y="1.746" z="-0.397"
        append   = "1"
        chord    = "1.676"
        length   = "2.0"
        taper    = "0.33"
        sweep    = "45"
        dihedral = "6">
  </wing>

  <mstab x="-2.701" y="0" z="-0.432"
         chord  = "11.248"
         length = "1.726"
         taper  = "1">
         <stall     aoa="20" width="1.0" peak="1.2"/>
         <spoiler start="0.1" end="0.9" lift="10" drag="20"/>

         <control-input  control="SPOILER" axis="/controls/flight/spoilers"/>

         <control-output control="SPOILER" prop="/surface-positions/speedbrake-pos-norm"/>

         <control-speed  control="SPOILER" transition-time="2.0"/>
  </mstab>

  <hstab x="-7.428" y="1.844" z="-0.931"
         chord    = "3.915"
         length   = "3.104"
         taper    = "0.3"
         sweep    = "30"
         dihedral = "-2">
         <stall   aoa="18" width="1" peak="1.2"/>
         <flap0 start="0"    end="1" lift="2.0" drag="1.2"/>

         <control-input  control="FLAP0" axis="/controls/flight/elevator"/>
         <control-input  control="FLAP0" axis="/controls/flight/elevator-trim"/>

         <control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
  </hstab>

  <!-- left -->
  <vstab x="-5.699" y="2.020" z="-0.677"
         chord  = "3.570"
         length = "3.914"
         taper  = "0.30"
         sweep  = "25">
         <stall   aoa="16" width="1"    peak="1.3"/>
         <flap0 start="0.0"  end="0.84" lift="1.45" drag="1.5"/>

         <control-input  control="FLAP0" axis="/controls/flight/rudder"      invert="true"/>
         <control-input  control="FLAP0" axis="/controls/flight/rudder-trim" invert="true"/>

         <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
  </vstab>

  <!-- right -->
  <vstab x="-5.699" y="-2.020" z="-0.677"
         chord  = "3.570"
         length = "3.914"
         taper  = "0.30"
         sweep  = "25">
         <stall   aoa="16" width="1"    peak="1.3"/>
         <flap0 start="0.0"  end="0.84" lift="1.45" drag="1.5"/> <!-- Rudder -->

         <control-input  control="FLAP0" axis="/controls/flight/rudder"      invert="true"/>
         <control-input  control="FLAP0" axis="/controls/flight/rudder-trim" invert="true"/>

         <control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"/>
    </vstab>

  <!-- Left ventral -->
  <vstab x="-6.228" y="2.020" z="-1.043"
         chord    = "2.077"
         length   = "1"
         taper    = "0.7"
         sweep    = "20"
         dihedral = "-90">
  </vstab>

  <!-- Right ventral -->
  <vstab x="-6.228" y="-2.020" z="-1.043"
         chord    = "2.077"
         length   = "1"
         taper    = "0.7"
         sweep    = "20"
         dihedral = "-90">
  </vstab>

  <!--  Saturn AL-31

                 source       : https://www.wikiwand.com/en/articles/Saturn_AL-31

                 type         : Two-shaft axial-flow afterburning turbofan
                 weight       : 1520 kg ( 3350 lb )
                 power        : 16200 lbf dry thrust
                                28200 lbf with afterburner
  -->
  <!-- left engine -->
  <jet x="-4.699" y=" 1.198" z="-0.994"
       mass        = "3350"
       thrust      = "16200"
       afterburner = "28200"
       tsfc        = "0.55">
       <actionpt x="-9.403" y=" 1.198" z="-0.994"/>
       <control-input  control="THROTTLE" axis="/controls/engines/engine[0]/throttle" src0="0.00" dst0="0.0" src1="0.86" dst1="1.0"/>
       <control-input  control="REHEAT"   axis="/controls/engines/engine[0]/throttle" src0="0.88" dst0="0.0" src1="1.00" dst1="1.0"/>

       <control-output control="REHEAT"   prop="/engines/engine[0]/afterburner" />

       <control-speed  control="THROTTLE" transition-time="3.0"/>
       <control-speed  control="REHEAT"   transition-time="8.0"/>
  </jet>

  <!-- right engine -->
  <jet x="-4.699" y="-1.198" z="-0.994"
       mass        = "3350"
       thrust      = "16200"
       afterburner = "28200"
       tsfc        = "0.55">
       <actionpt x="-9.403" y="-1.198" z="-0.994"/>
       <control-input  control="THROTTLE" axis="/controls/engines/engine[1]/throttle" src0="0.00" dst0="0.0" src1="0.86" dst1="1.0"/>
       <control-input  control="REHEAT"   axis="/controls/engines/engine[1]/throttle" src0="0.88" dst0="0.0" src1="1.00" dst1="1.0"/>

       <control-output control="REHEAT"   prop="/engines/engine[1]/afterburner" />

       <control-speed  control="THROTTLE" transition-time="3.0"/>
       <control-speed  control="REHEAT"   transition-time="8.0"/>
  </jet>

  <!-- Nose -->
  <gear x="2.980" y=" 0.000" z="-2.909"
        compression = "0.5"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="STEER"  axis="/controls/flight/rudder" square="false"/>
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>

        <control-output control="EXTEND" prop="/gear/gear[0]/position-norm"/>
        <control-output control="STEER"  prop="/gear/gear[0]/steering-norm"/>

        <control-speed  control="STEER"  transition-time="0.5"/>
        <control-speed  control="EXTEND" transition-time="4"/>
 </gear>

  <!-- Left main -->
  <gear x="-3.069" y=" 2.039" z="-2.960"
        compression = "0.4"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-left"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>

        <control-output control="EXTEND" prop="/gear/gear[1]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="4"/>
  </gear>

  <!-- Right main -->
  <gear x="-3.069" y="-2.039" z="-2.960"
        compression = "0.4"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="EXTEND" axis="/controls/gear/gear-down"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-right"/>
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>

        <control-output control="EXTEND" prop="/gear/gear[2]/position-norm"/>

        <control-speed  control="EXTEND" transition-time="4"/>
  </gear>

  <!-- For animation test
  <gear x="2.980" y="0" z="-4.909"
        compression = "0.5"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
  </gear>

  <gear x="-3.069" y=" 2.039" z="-4.960"
        compression = "0.8"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
  </gear>

  <gear x="-3.069" y="-2.039" z="-4.960"
        compression = "0.8"
        spring      = "2"
        damp        = "1"
        stiction    = "1">
        <control-input  control="BRAKE"  axis="/controls/gear/brake-parking"/>
  </gear> -->

  <tank x=" 2.291" y=" 0.000" z="-0.680" jet="true" capacity="6000"/>
  <tank x="-2.291" y=" 0.000" z="-0.580" jet="true" capacity="6400"/>

  <tank x="-2.979" y=" 3.520" z="-0.510" jet="true" capacity="4250"/>
  <tank x="-2.979" y="-3.520" z="-0.510" jet="true" capacity="4250"/>

  <hook x="-6.575" y=" 0.000" z="-1.591" length="2.323"
        down-angle = "60"
        up-angle   = "-3">
        <control-input control="HEXTEND" axis="/controls/gear/tailhook"/>
        <control-speed control="HEXTEND" transition-time="4"/>
  </hook>

  <!-- Mass distribution -->
  <ballast x="8.743" y="0.000" z="-1.00" mass="14000"/>

</airplane>
