# ****************************************************************************
# CUI
#
# The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
#
# The use, dissemination or disclosure of data in this file is subject to
# limitation or restriction. See accompanying README and LICENSE for details.
# ****************************************************************************
#UNCLASSIFIED
# Tomahawk surfaced launched version (has a booster)
# All data from internet sources
#
# No terminal sensor for now.

infrared_signature BLUE_CRUISE_MISSILE_INFRARED_SIGNATURE
  constant 1 watts/steradian
end_infrared_signature

optical_signature BLUE_CRUISE_MISSILE_OPTICAL_SIGNATURE
  constant 1 m^2
end_optical_signature

radar_signature BLUE_CRUISE_MISSILE_RADAR_SIGNATURE
  constant 1 m^2
end_radar_signature

aero BLUE_CRUISE_MISSILE_AERO WSF_AERO
 cd_zero_subsonic        0.1
 cd_zero_supersonic      0.25
 mach_begin_cd_rise      0.95
 mach_end_cd_rise        1.3
 mach_max_supersonic     4
 reference_area          0.21237 m2    #0.52 meter diameter
 cl_max                  10
 aspect_ratio            16.0
end_aero

weapon_effects BLUE_CRUISE_MISSILE_LETHALITY WSF_GRADUATED_LETHALITY
  radius_and_pk 30 m 0.85
end_weapon_effects

platform_type BLUE_CRUISE_MISSILE WSF_PLATFORM
  icon CALCM
  category cruise-missile
  infrared_signature BLUE_CRUISE_MISSILE_INFRARED_SIGNATURE
  optical_signature BLUE_CRUISE_MISSILE_OPTICAL_SIGNATURE
  radar_signature BLUE_CRUISE_MISSILE_RADAR_SIGNATURE
  mover WSF_GUIDED_MOVER
     #show_status
     update_interval .5 sec
     integration_timestep 0.05 sec

     stage 1 # Booster
        initial_mass         550 lbs
        fuel_mass            440 lbs
        thrust               7418 lbf
        thrust_duration      12 sec
        aero                 BLUE_CRUISE_MISSILE_AERO
     end_stage

     stage 2 # Turbofan
        initial_mass         2650 lb
        fuel_mass            500 lb # guess
        thrust               696.9 lbf
        burn_rate            350 lb/hr
        aero                 BLUE_CRUISE_MISSILE_AERO
        thrust_delay         1.0 sec  # no idea how long before it fires off after the booster falls off...
     end_stage
  end_mover

  processor guidance WSF_GUIDANCE_COMPUTER
     #show_status
     #show_evaluations
     #debug
     guide_to_truth true # for testing

     phase LAUNCH
        commanded_altitude    5000 ft
        commanded_flight_path_angle 60 deg
        next_phase CRUISE when phase_time > 16 sec
     end_phase

     phase CRUISE
        commanded_altitude     500 ft agl
        commanded_speed        910 fps
        maximum_commanded_g    2 g
        next_phase TERMINAL    if target_slant_range < 1 miles
     end_phase

     phase TERMINAL
        commanded_speed        800 fps
        proportional_navigation_gain   40
        maximum_pitch_angle        90 deg
        maximum_commanded_g        10 g
     end_phase
  end_processor

  processor fuse WSF_GROUND_TARGET_FUSE
  end_processor

  comm uplink WSF_COMM_TRANSCEIVER
     internal_link data_mgr
  end_comm

  processor task_mgr WSF_TASK_PROCESSOR
  end_processor

  processor data_mgr WSF_TRACK_PROCESSOR
     purge_interval 4000 seconds
  end_processor

end_platform_type


weapon BLUE_CRUISE_MISSILE WSF_EXPLICIT_WEAPON
  launched_platform_type BLUE_CRUISE_MISSILE
  weapon_effects BLUE_CRUISE_MISSILE_LETHALITY
  quantity 1
  firing_delay 0.0 sec
  salvo_interval 2 sec
  slew_mode azimuth
  azimuth_slew_limits -180 deg 180 deg
  tilt 88.9 deg
end_weapon
