This commit is contained in:
2025-09-12 15:20:28 +08:00
commit 3257a14c32
449 changed files with 388780 additions and 0 deletions

View File

@@ -0,0 +1,377 @@
# ****************************************************************************
# 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 ------
# BLUE_LR_SAM
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# NOTE: If you modify any parameter in this file, you must rerun 'weapon_tools'
# with 'blue_lr_sam_lcg.txt' as input to regenerate the launch computer data.
#
###############################################################################
#
# References: (PDF files contained in the subdirectory blue_lr_sam_ref)
#
# 1) http://www.mda.mil/mdaLink/pdf/38112.pdf
# User Operational Evaluation System (UOES) THAAD Missile Configuration
# (NOTE: This document has vanished, but the captured wiki page in Ref 4
# has the same picture).
#
# 2) http://search.janes.com/Search/documentView.do?docId=/content1/janesdata/binder/jsws/jsws0203.htm@current&pageSelected=allJanes&keyword=THAAD&backPath=http://search.janes.com/Search&Prod_Name=JSWS&
# Jane's (JSWS) THAAD
# Launch weight: 630 kg
# Length and diameter same as Ref 1
# Range: 300 km
# Uses HTPB propellant
#
# There is some contradiction between the Jane's JSWS and JLAD documentation
# with regards to launch weight (630 kg vs. 800 kg), .
#
# 3) http://www.army-technology.com/projects/thaad/specs.html
# Launch weight: 900 kg
# Velocity: 2,800 m/s
# Range: > 200 km
# Maximum altitude of intercept: 150 km
#
# 4) http://en.wikipedia.org/wiki/Terminal_High_Altitude_Area_Defense
#
# 5) http://en.wikipedia.org/wiki/Space_Shuttle_Solid_Rocket_Booster
# Because there is no data that gives the mass of the propellant, it is
# assumed that it will follow the ratio of the fuel mass/total mass for
# the Space Shuttle solid rockets:
#
# Propellant Mass: 500,000 kg
# Inert (empty) Mass: 91,000 kg
# Fuel Mass / Total Mass = 500,000 / 591,000 = 0.846
#
# 6) http://en.wikipedia.org/wiki/Solid-fuel_rocket
# Indicates 'a typical solid fuel rocket motor may have a specific impulse
# of 265 sec'. But we'll assume the use of 'High Energy Composite (HEC)
# propellants, which is indicated a specific impulse of 275 sec.
###############################################################################
###############################################################################
# Support for explicit representation of spent stages
#
# Platforms will be created for spent stages if one the global script variables
# is defined as follows:
#
# script_variables
# SHOW_SPENT_STAGES["ALL"] = true; # For any weapon
# SHOW_SPENT_STAGES["BLUE_LR_SAM"] = true; # For just this weapon type
# end_script_variables
###############################################################################
include_once ../ssm/show_spent_stages.txt
aero BLUE_LR_SAM_SPENT_BOOSTER_AERO WSF_AERO
reference_area 0.09079 m^2 # Ref 1
aspect_ratio 1.0
cl_max 5.0
# zero_lift_cd 0.7
cd_zero_subsonic 1.5 # Extreme cd
cd_zero_supersonic 3.0 # Extreme cd
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 6.00
end_aero
infrared_signature BLUE_LR_SAM_SPENT_BOOSTER_INFRARED_SIGNATURE
constant 1 watts/steradian
end_infrared_signature
optical_signature BLUE_LR_SAM_SPENT_BOOSTER_OPTICAL_SIGNATURE
constant 1 m^2
end_optical_signature
radar_signature BLUE_LR_SAM_SPENT_BOOSTER_RADAR_SIGNATURE
constant 1 m^2
end_radar_signature
platform_type BLUE_LR_SAM_SPENT_BOOSTER WSF_PLATFORM
icon Scud_Missile
infrared_signature BLUE_LR_SAM_SPENT_BOOSTER_INFRARED_SIGNATURE
optical_signature BLUE_LR_SAM_SPENT_BOOSTER_OPTICAL_SIGNATURE
radar_signature BLUE_LR_SAM_SPENT_BOOSTER_RADAR_SIGNATURE
mover WSF_GUIDED_MOVER
integration_timestep 0.01 secs
stage 1
aero BLUE_LR_SAM_SPENT_BOOSTER_AERO
total_mass 128.0 kg # Total - fuel
end_stage
end_mover
processor fuse WSF_GROUND_TARGET_FUSE
end_processor
end_platform_type
###############################################################################
# Signature data is unknown...
infrared_signature BLUE_LR_SAM_INFRARED_SIGNATURE
constant 1 watts/steradian
end_infrared_signature
optical_signature BLUE_LR_SAM_OPTICAL_SIGNATURE
constant 1 m^2
end_optical_signature
radar_signature BLUE_LR_SAM_RADAR_SIGNATURE
constant 1 m^2
end_radar_signature
# Nominal lethality data.
weapon_effects BLUE_LR_SAM_EFFECT WSF_GRADUATED_LETHALITY
radius_and_pk 100.0 m 0.9
# This script will reduce the effectiveness if the impact geometry is not desirable.
script void on_weapon_target_engagement(WsfPlatform aTarget)
WsfPlatform weapon = WeaponPlatform();
if (! (aTarget.IsValid() && weapon.IsValid())) return;
// Compute the angle between the velocity vectors. A head-on hit would be 180 degrees.
// (velocity vectors in opposite directions).
Vec3 weaponVel = weapon.VelocityWCS();
Vec3 targetVel = aTarget.VelocityWCS();
double weaponVelMag = weaponVel.Magnitude();
double targetVelMag = targetVel.Magnitude();
if ((weaponVelMag > 1.0) && (targetVelMag > 1.0))
{
double cosAngle = Vec3.Dot(weaponVel, targetVel) / (weaponVelMag * targetVelMag);
if (cosAngle < -1.0) cosAngle = -1.0;
if (cosAngle > 1.0) cosAngle = 1.0;
double angle = Math.ACos(cosAngle);
writeln("Angle=", angle);
//TODO if (angle < xxx) SetPkDegrade(0.6);
}
end_script
end_weapon_effects
###############################################################################
aero BLUE_LR_SAM_BOOSTER_AERO WSF_AERO
# Booster is actually 340 mm in diameter, but kill vehicle masks it.
reference_area 0.10752 m^2 # Ref 1 - 370 mm diameter
#aspect_ratio 2.0
#cl_max 6.0
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.35
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 6.00
end_aero
aero BLUE_LR_SAM_KILL_VEHICLE_AERO WSF_AERO
reference_area 0.10752 m^2 # Ref 1 - 370 mm diameter
#aspect_ratio 2.0
#cl_max 6.0
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.35
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 6.00
end_aero
mover BLUE_LR_SAM_MOVER WSF_GUIDED_MOVER
integration_timestep 0.001 secs
update_interval 0.01 secs
# 20 sec of divert @ 1.5 G or 6 sec of divert @ 5.0 G
# (assuming empty mass of 80kg)
#
# Thrust = 80 kg (empty mass) * 9.80665 m/s^2 (g) * 5 = 3922.66 Nt
# Assume a specific impulse (I) of 267 sec
# m(dot) = thrust / I / g = 1.4979 Kg/s
# m = 5 sec * 1.4545 = 7.4894 kg
divert_thrust 3922.66 Nt
divert_fuel_mass 7.4894 kg
divert_fuel_mass 10.0 kg # Gave it a little more for testing (bad initial conditions)
divert_fuel_flow_rate 1.4979 kg/s
divert_altitude_limits 80 km 500 km
# The nozzle exit area and nozzle throat area were derived by ratios using the picture in Ref 1.
# The measured diameters (NOT ACTUAL) from the picture were:
#
# Booster: 41.0 mm
# Nozzle Throat: 7.2 mm
# Nozzle Exit: 23.5 mm
#
# The derived values are then:
#
# Nozzle Throat: Diameter = 0.340 m * (7.2 / 41.0) = 0.0597 m, Area = 0.0938 m^2
# Nozzle Exit : Diameter = 0.340 m * (23.5 / 41.0) = 0.195 m, Area = 0.305 m^2
#
# The volume of the fuel mass is also calculated from the drawing
#
# Inside length: 6.170 * (91 / 185) ~= 3.035 m
# Inside diameter: = 0.340 * (39 / 41) ~= 0.3234 m
# Inside volume = 3.168 * (pi * (0.3234/2)^2) ~= .2408 m^3
#
# HTPB has a density of 0.92 g/ml, but is typically mixed with aluminum (2.7 g/ml) and
# ammonium perchlorate (1.95 g/ml). An HTPB/AP/AL mixture of 12%/68%/20% resulted in a
# density 1.98 g/ml which resulted in a fuel mass of 476 kg. The mass fraction will be
# assumed to be 0.8 instead of the 0.85 of the Space Shuttle because of the increased
# acceleration. This gives a mass of 595 kg. An addition 5 kg will be added for the
# interstage and the shroud for a total of 600 kg.
stage 1
aero BLUE_LR_SAM_BOOSTER_AERO
nozzle_exit_area 0.305 m^2 # See calculations above
total_mass 600 kg # See calculations above
fuel_mass 485 kg # See calculations above
#thrust_duration 11.0 sec
#sea_level_specific_impulse 265 sec # Ref 6
thrust_duration 18 sec # Adjusted to get close to 2800 m/s
sea_level_specific_impulse 250 sec # Adjusted to get close to 2800 m/s
end_stage
stage 2
aero BLUE_LR_SAM_KILL_VEHICLE_AERO
total_mass 30 kg # Just the kill vehicle (630 - 600)
end_stage
end_mover
###############################################################################
processor BLUE_LR_SAM_GUIDANCE WSF_GUIDANCE_COMPUTER
# No datalink or seeker is being used, so we must guide to the true target
guide_to_truth true
phase LAUNCH
commanded_flight_path_angle from_launch_computer
proportional_navigation_gain 0.0 # Don't guide to target
velocity_pursuit_gain 0.0 # Don't guide to target
maximum_commanded_g 2.0 g
next_phase MIDCOURSE when on_commanded_flight_path_angle
end_phase
phase MIDCOURSE
# no guidance (just use gravity turn)
guidance_delay 1000.0 sec
next_phase TERMINAL when target_slant_range < 140.0 km
end_phase
phase TERMINAL
proportional_navigation_gain 10.0
proportional_navigation_method augmented
# Disable velocity pursuit. The angle which controls the switch between
# velocity pursuit and pronav are too sensitive at short ranges.
velocity_pursuit_gain 0.0
# Disable g-bias. The target is also falling, so we don't want to fight
# against it! (this is assuming terminal intercept, not boost)
g_bias 0.0
end_phase
end_processor
###############################################################################
platform_type BLUE_LR_SAM_BASE WSF_PLATFORM
icon SA-10_Missile
infrared_signature BLUE_LR_SAM_INFRARED_SIGNATURE
optical_signature BLUE_LR_SAM_OPTICAL_SIGNATURE
radar_signature BLUE_LR_SAM_RADAR_SIGNATURE
weapon_effects BLUE_LR_SAM_EFFECT
mover BLUE_LR_SAM_MOVER
#show_status
end_mover
processor guidance BLUE_LR_SAM_GUIDANCE
#show_status
#show_graphics
end_processor
processor fuse WSF_AIR_TARGET_FUSE
detonate_below_mach 1.0
end_processor
weapon booster WSF_EXPLICIT_WEAPON
launched_platform_type BLUE_LR_SAM_SPENT_BOOSTER
launch_delta_v -50.0 0.0 0.0 m/s
quantity 1
end_weapon
script void on_stage_separation(int aStage)
extern Map<string, bool> SHOW_SPENT_STAGES;
if (SHOW_SPENT_STAGES["ALL"] ||
SHOW_SPENT_STAGES["BLUE_LR_SAM"])
{
if (aStage == 1) Weapon("booster").Fire(WsfTrack());
}
end_script
end_platform_type
###############################################################################
launch_computer BLUE_LR_SAM_LAUNCH_COMPUTER WSF_BALLISTIC_MISSILE_LAUNCH_COMPUTER
surface_to_air_table weapons/sam/blue_lr_sam_launch_data.txt
integration_time_step 0.05 sec
# Disallow intercepts at unreasonable angles
maximum_intercept_angle 60 deg
end_launch_computer
###############################################################################
weapon BLUE_LR_SAM WSF_EXPLICIT_WEAPON
# The location offset puts the weapon center at half the length - 1 m.
# This assumes the scenario creator puts the launching platform at 1 m agl.
location 0.0 0.0 -2.085 m # Ref 1, length = 6170 mm
launched_platform_type BLUE_LR_SAM
launch_computer BLUE_LR_SAM_LAUNCH_COMPUTER
end_launch_computer
tilt 75 deg
# This causes a call to the launch computer to compute the predicted intercept.
# The launcher will then be cued to the proper angles (Subject to the slewing
# limits defined below). This is a bit of a hack until the guidance computer
# is changed...
cue_to_predicted_intercept true
slew_mode azimuth
azimuth_slew_limits -180 deg 180 deg
quantity 8
# Abort the launch if the launch computer didn't provide the required data
require_loft_angle
end_weapon

View File

@@ -0,0 +1,93 @@
# ****************************************************************************
# 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 ------
# BLUE_LR_SAM - Complex (with uplink and seeker)
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# This BLUE_LR_SAM representation extends upon the baseline seeker representation
# by providing a datalink and a seeker.
#
###############################################################################
include blue_lr_sam_common.txt
###############################################################################
platform_type BLUE_LR_SAM BLUE_LR_SAM_BASE
comm datalink WSF_COMM_TRANSCEIVER
internal_link data_mgr
end_comm
# The seeker is modeled very simplisticly. There is no performance data.
# This is really just a method to model seeker errors.
sensor seeker WSF_GEOMETRIC_SENSOR
off
frame_time 0.1 sec
azimuth_field_of_view -30 deg 30 deg
elevation_field_of_view -30 deg 30 deg
maximum_range 50 km
maximum_request_count 1
range_error_sigma 1 m
azimuth_error_sigma 0.001 deg
elevation_error_sigma 0.001 deg
filter WSF_KALMAN_FILTER
process_noise_sigmas_XYZ 50 50 50
process_noise_model constant_acceleration
end_filter
reports_range
reports_bearing
reports_elevation
reports_velocity
internal_link data_mgr
end_sensor
processor data_mgr WSF_WEAPON_TRACK_PROCESSOR
end_processor
# Modify the guidance processor such that when it enters TERMINAL phase
# that it turns on the sensor and starts tracking the target. During this
# phase we guide to perception to allow the introduction of errors.
edit processor guidance
edit phase TERMINAL
guide_to_truth false
on_entry
WsfSensor seeker = PLATFORM.Sensor("seeker");
WsfTrack targetTrack = PLATFORM.CurrentTargetTrack();
if (seeker.IsValid() &&
targetTrack.IsValid())
{
seeker.TurnOn();
seeker.StartTracking(targetTrack, "");
}
end_on_entry
end_phase
end_processor
end_platform_type

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,54 @@
# ****************************************************************************
# 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.
# ****************************************************************************
###############################################################################
# Launch computer generator for BLUE_LR_SAM.
###############################################################################
file_path ../../../base_types
include blue_lr_sam_simple.txt
platform_type LAUNCH_PLATFORM_TYPE WSF_PLATFORM
side red
weapon blue_lr_sam BLUE_LR_SAM
end_weapon
end_platform_type
tool BALLISTIC_MISSILE_LAUNCH_COMPUTER_GENERATOR # ballistic_missile_launch_computer_generator
tool_debug
frame_step 0.5 sec # sample time of trajectory
# altitude 1 m choosen to correspond with typical scenario altitudes
position 0n 0e altitude 1 m
air_target_file blue_lr_sam_launch_data.txt
#gnuplot_file blue_lr_sam_trajectory.plt
loft_angles from 20 deg to 75 deg by 0.2 deg
############################################################################
# All of the remaining data is used to keep the launch computer dataset
# small and to only enable solutions that are doctrinally allowed.
############################################################################
# 'minimum_output_time' should be greater than or equal to the burn time.
# (No intercept during boost)
minimum_output_time 20 sec
# these are new (bwf)
# maximum_output_time 300.0 sec
maximum_output_range 200.0 km
#JAJ maximum_output_altitude 150.0 km
limited_to_preapogee
end_tool
event_pipe
#file replay.aer
end_event_pipe

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,33 @@
# ****************************************************************************
# 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 ------
# BLUE_LR_SAM - Simple (no uplink, no seeker, guide-to-truth)
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# This is a simple representation that guides perfectly to the target. There
# is no uplink or seeker.
#
###############################################################################
include weapons/sam/blue_lr_sam_common.txt
###############################################################################
platform_type BLUE_LR_SAM BLUE_LR_SAM_BASE
end_platform_type

View File

@@ -0,0 +1,217 @@
# ****************************************************************************
# 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 blue_naval_sam
# Sources:
# http://en.wikipedia.org/wiki/RIM-161_Standard_Missile_3
# http://www.raytheon.com/capabilities/products/stellent/groups/public/documents/content/cms01_055769.pdf
# http://www.globalsecurity.org/space/systems/sm3.htm
# http://www.astronautix.com/lvs/staarder.htm
# http://www.designation-systems.net/dusrm/m-161.html
# http://www.designation-systems.net/dusrm/m-156.html (sm2 body information)
# http://www.dtic.mil/cgi-bin/GetTRDoc?AD=ADA457566&Location=U2&doc=GetTRDoc.pdf
# http://web.mit.edu/stgs/pdfs/Forden_Preliminary_analysis_USA_193_Shoot_down.pdf
# http://www.janes.com (requires subscription)
# http://www.deagel.com/Anti-Ballistic-Missiles/Standard-SM-3-Block-IB_a001148012.aspx
# Weapon Definition starts here.
# script_debug_writes on
# Signature data is unknown...
infrared_signature BLUE_NAVAL_SAM_INFRARED_SIGNATURE
constant 1 watts/steradian
end_infrared_signature
optical_signature BLUE_NAVAL_SAM_OPTICAL_SIGNATURE
constant 1 m^2
end_optical_signature
radar_signature BLUE_NAVAL_SAM_RADAR_SIGNATURE
constant 1 m^2
end_radar_signature
# Weapon effects
weapon_effects BLUE_NAVAL_SAM_LETHALITY WSF_GRADUATED_LETHALITY
radius_and_pk 3 km 1.0
end_weapon_effects
########### Aero definitions ##################################################
aero BLUE_NAVAL_SAM_STAGE_1_AERO WSF_AERO
reference_area 2.35 ft^2
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.25
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 10.00
end_aero
aero BLUE_NAVAL_SAM_STAGE_2_AERO WSF_AERO
reference_area 1.02 ft^2
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.25
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 10.00
end_aero
aero BLUE_NAVAL_SAM_STAGE_3_AERO WSF_AERO
reference_area 1.02 ft^2
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.25
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 10.00
end_aero
aero BLUE_NAVAL_SAM_STAGE_4_AERO WSF_AERO #warhead & sensor
reference_area 1.02 ft^2
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.25
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 10.00
end_aero
########### Mover definitions ##################################################
mover BLUE_NAVAL_SAM_MOVER WSF_GUIDED_MOVER
#show_status
integration_timestep 0.001 secs
update_interval 0.01 secs
# divert thrust taken from unclass blue_lr_sam and doubled
divert_thrust 8000 Nt
divert_fuel_mass 10 kg
divert_fuel_flow_rate 1.0 kg/s
divert_altitude_limits 80 km 1000 km
# stage info came from janes.com,
# designation-systems.com
# astronautix.com
stage 1 # MK-72 Solid Rocket Booster
aero BLUE_NAVAL_SAM_STAGE_1_AERO
empty_mass 535 lbs
total_mass 1540 lbs
specific_impulse 260 sec
thrust_duration 6 sec
end_stage
stage 2 # MK-104 Solid Rocket Booster
aero BLUE_NAVAL_SAM_STAGE_2_AERO
pre_ignition_coast_time 1 sec
total_mass 1100 lbs
empty_mass 282 lbs
#fuel_mass 418 lbs
specific_impulse 260 sec
thrust_duration 25 sec
pre_separation_coast_time 30 sec
end_stage
stage 3 # MK-136 Solid Rocket
aero BLUE_NAVAL_SAM_STAGE_3_AERO
total_mass 220 lbs
empty_mass 187 lbs
# fuel_mass 125 lbs
specific_impulse 260 sec
thrust_duration 15 sec
pre_separation_coast_time 1 sec
end_stage
stage 4 # warhead and seeker (aka kill vehicle )
aero BLUE_NAVAL_SAM_STAGE_4_AERO
total_mass 70 lbs
fuel_mass 0 lbs
end_stage
end_mover
############### BLUE_NAVAL_SAM platform ##########################################
platform_type BLUE_NAVAL_SAM WSF_PLATFORM
icon Scud_Missile
infrared_signature BLUE_NAVAL_SAM_INFRARED_SIGNATURE
optical_signature BLUE_NAVAL_SAM_OPTICAL_SIGNATURE
radar_signature BLUE_NAVAL_SAM_RADAR_SIGNATURE
weapon_effects BLUE_NAVAL_SAM_LETHALITY
mover BLUE_NAVAL_SAM_MOVER
end_mover
processor BLUE_NAVAL_SAM_GUIDANCE WSF_GUIDANCE_COMPUTER
guide_to_truth true
phase LAUNCH
commanded_flight_path_angle from_launch_computer
proportional_navigation_gain 0.0 # Don't guide to target
velocity_pursuit_gain 0.0 # Don't guide to target
next_phase TERMINAL if target_slant_range < 200 km # 150 km
next_phase MIDCOURSE if on_commanded_flight_path_angle
end_phase
phase MIDCOURSE
guidance_delay 2000 secs # stay on commanded loft angle
next_phase TERMINAL when target_slant_range < 100 km #250 km
end_phase
phase TERMINAL
proportional_navigation_gain 10.0
proportional_navigation_method augmented
# Disable velocity pursuit. The angle which controls the switch between
# velocity pursuit and pronav are too sensitive at short ranges.
velocity_pursuit_gain 0.0
# Disable g-bias. The target is also falling, so we don't want to fight
# against it! (this is assuming terminal intercept, not boost)
g_bias 0.0
end_phase
end_processor
processor fuse WSF_AIR_TARGET_FUSE
use_current_target
gross_proximity_range 7 km
hit_proximity_range 5 km
update_interval 0.50 sec
fine_update_interval 0.01 sec
time_of_flight_to_arm 60 sec
end_processor
processor seeker WSF_PERFECT_TRACKER
update_interval 0.25 sec
end_processor
end_platform_type
launch_computer BLUE_NAVAL_SAM_LAUNCH_COMPUTER WSF_BALLISTIC_MISSILE_LAUNCH_COMPUTER
maximum_time_of_flight 1000 sec
surface_to_air_table weapons/sam/blue_naval_sam_launch_data.txt
integration_time_step 0.05 sec
# Disallow intercepts at unreasonable angles
maximum_intercept_angle 60 deg
end_launch_computer
########EXPLICIT WEAPON#############################
weapon BLUE_NAVAL_SAM WSF_EXPLICIT_WEAPON
launched_platform_type BLUE_NAVAL_SAM
launch_computer BLUE_NAVAL_SAM_LAUNCH_COMPUTER
end_launch_computer
tilt 89.9 degrees
# This causes a call to the launch computer to compute the predicted intercept.
# The launcher will then be cued to the proper angles (Subject to the slewing
# limits defined below). This is a bit of a hack until the guidance computer
# is changed...
cue_to_predicted_intercept true
slew_mode azimuth
azimuth_slew_limits -180 deg 180 deg
quantity 1
require_loft_angle
end_weapon

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,51 @@
# ****************************************************************************
# 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.
# ****************************************************************************
###############################################################################
# Launch computer generator for blue_naval_sam.
###############################################################################
file_path ../../../base_types
include blue_naval_sam.txt
platform_type LAUNCH_PLATFORM_TYPE WSF_PLATFORM
side red
weapon blue_naval_sam BLUE_NAVAL_SAM
firing_delay 0.0 sec
end_weapon
end_platform_type
tool BALLISTIC_MISSILE_LAUNCH_COMPUTER_GENERATOR # ballistic_missile_launch_computer_generator
tool_debug
frame_step 0.5 sec # sample time of trajectory
# altitude 1 m choosen to correspond with typical scenario altitudes
position 0n 0e altitude 1 m
air_target_file blue_naval_sam_launch_data.txt
#gnuplot_file blue_naval_sam_trajectory.plt
loft_angles from 62 deg to 89.8 deg by 0.2 deg
############################################################################
# All of the remaining data is used to keep the launch computer dataset
# small and to only enable solutions that are doctrinally allowed.
############################################################################
# 'minimum_output_time' should be greater than or equal to the burn time.
# (No intercept during boost)
minimum_output_time 46 sec
maximum_output_range 1000 km
#maximum_output_altitude 440 km
end_tool
event_pipe
# file blue_naval_sam_lc_replay.aer
end_event_pipe

View File

@@ -0,0 +1,236 @@
# ****************************************************************************
# 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 ------
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# References: (PDF files contained in the subdirectory blue_sr_sam_ref)
#
# 1) Jane's JLAD Patriot PAC-3, 21-May-2009
# Diameter: .255 m, Length 5.205
# Mass: 315 kg for BLUE_SR_SAM, 312 kg for BLUE_SR_SAM MSE
# Max Speed: 1700 m/s for BLUE_SR_SAM, >1700 m/s for BLUE_SR_SAM MSE
# Max Range: 15 km for BLUE_SR_SAM, 22 km for BLUE_SR_SAM MSE
#
# 2) http://en.wikipedia.org/wiki/MIM-104_Patriot
# 'The system's missiles are transported on and launched from the M901
# Launching Station, which can carry up to four PAC-2 missiles or up to
# sixteen PAC-3 missiles.'
#
###############################################################################
#
# NOTE: If you modify any parameter in this file, you must rerun 'weapon_tools'
# with 'blue_sr_sam_lcg.txt' as input to regenerate the launch computer data.
#
###############################################################################
# Signature data is unknown...
infrared_signature BLUE_SR_SAM_INFRARED_SIGNATURE
constant 1 watts/steradian
end_infrared_signature
optical_signature BLUE_SR_SAM_OPTICAL_SIGNATURE
constant 1 m^2
end_optical_signature
radar_signature BLUE_SR_SAM_RADAR_SIGNATURE
constant 1 m^2
end_radar_signature
# Nominal lethality data.
weapon_effects BLUE_SR_SAM_EFFECT WSF_GRADUATED_LETHALITY
radius_and_pk 100.0 m 0.9
# This script will reduce the effectiveness if the impact geometry is not desirable.
script void on_weapon_target_engagement(WsfPlatform aTarget)
WsfPlatform weapon = WeaponPlatform();
if (! (aTarget.IsValid() && weapon.IsValid())) return;
// Compute the angle between the velocity vectors. A head-on hit would be 180 degrees.
// (velocity vectors in opposite directions).
Vec3 weaponVel = weapon.VelocityWCS();
Vec3 targetVel = aTarget.VelocityWCS();
double weaponVelMag = weaponVel.Magnitude();
double targetVelMag = targetVel.Magnitude();
if ((weaponVelMag > 1.0) && (targetVelMag > 1.0))
{
double cosAngle = Vec3.Dot(weaponVel, targetVel) / (weaponVelMag * targetVelMag);
if (cosAngle < -1.0) cosAngle = -1.0;
if (cosAngle > 1.0) cosAngle = 1.0;
double angle = Math.ACos(cosAngle);
writeln("Angle=", angle);
//TODO if (angle < xxx) SetPkDegrade(0.6);
}
end_script
end_weapon_effects
###############################################################################
aero BLUE_SR_SAM_AERO WSF_AERO
reference_area 0.0510705 m2 # Ref 1, 0.255 m diameter
aspect_ratio 2.0
cl_max 4.5
cl_max 20.0 # TODO-TEST
# Values estimated from Hoerner's Drag book
cd_zero_subsonic 0.10
cd_zero_supersonic 0.35
mach_begin_cd_rise 0.95
mach_end_cd_rise 1.30
mach_max_supersonic 6.00
end_aero
mover BLUE_SR_SAM_MOVER WSF_GUIDED_MOVER
integration_timestep 0.001 secs
update_interval 0.01 secs
stage 1
aero BLUE_SR_SAM_AERO
total_mass 315 kg # Ref 1
# Ref 2 defines the warhead to be 73 kg
# Add another 20% of remaining mass for structure. (Space Shuttle SRB is
# about 15% structure, but we're making it 20% to account for higher G's.
#
# 315 kg - 73 kg = 242 kg
# 242 kg * 0.2 = 48.4 kg
# So empty mass = 73 + 48 = 121.4 kg
empty_mass 121.4 kg # See calculations above
specific_impulse 250 sec # Nominal solid rocket
burn_time 13 sec # Estimated to get speed ~= 1700 m/s
end_stage
end_mover
###############################################################################
processor BLUE_SR_SAM_GUIDANCE WSF_GUIDANCE_COMPUTER
# No datalink or seeker is being used, so we must guide to the true target
guide_to_truth true
phase LAUNCH
guidance_delay 100.0 sec
next_phase PITCH_OVER when phase_time >= 0.1 sec
end_phase
phase PITCH_OVER
commanded_flight_path_angle from_launch_computer
proportional_navigation_gain 0.0 # Don't guide to target
velocity_pursuit_gain 0.0 # Don't guide to target
maximum_commanded_g 20.0 g
next_phase MIDCOURSE when on_commanded_flight_path_angle
end_phase
phase MIDCOURSE
# no guidance (just use gravity turn)
guidance_delay 1000.0 sec
next_phase TERMINAL when time_to_intercept < 12.0 sec
end_phase
phase TERMINAL
proportional_navigation_gain 10.0
proportional_navigation_method augmented
# Disable velocity pursuit. The angle which controls the switch between
# velocity pursuit and pronav are too sensitive at short ranges.
velocity_pursuit_gain 0.0
# Disable g-bias. The target is also falling, so we don't want to fight
# against it! (this is assuming terminal intercept, not boost)
g_bias 0.0
end_phase
end_processor
###############################################################################
platform_type BLUE_SR_SAM_BASE WSF_PLATFORM
icon SA-10_Missile
infrared_signature BLUE_SR_SAM_INFRARED_SIGNATURE
optical_signature BLUE_SR_SAM_OPTICAL_SIGNATURE
radar_signature BLUE_SR_SAM_RADAR_SIGNATURE
weapon_effects BLUE_SR_SAM_EFFECT
mover BLUE_SR_SAM_MOVER
#show_status
#time_history_path .
end_mover
processor guidance BLUE_SR_SAM_GUIDANCE
#show_status
#show_graphics
end_processor
processor fuse WSF_AIR_TARGET_FUSE
detonate_below_mach 1.0
# The following are used to limit the run time during launch computer
# generation. They can be removed for real simulation use if one really
# wants to see the missile do something after a big miss.
detonate_above_height_msl 35 km
max_time_of_flight_to_detonate 80 sec
end_processor
end_platform_type
###############################################################################
launch_computer BLUE_SR_SAM_LAUNCH_COMPUTER WSF_BALLISTIC_MISSILE_LAUNCH_COMPUTER
surface_to_air_table weapons/sam/blue_sr_sam_launch_data.txt
integration_time_step 0.05 sec
# Disallow intercepts at unreasonable angles
maximum_intercept_angle 60 deg
end_launch_computer
###############################################################################
weapon BLUE_SR_SAM WSF_EXPLICIT_WEAPON
# The location offset puts the weapon center at half the length - 1 m.
# This assumes the scenario creator puts the launching platform at 1 m agl.
location 0.0 0.0 -1.6025 m # Ref 1, length = 5.205 m
launched_platform_type BLUE_SR_SAM
launch_computer BLUE_SR_SAM_LAUNCH_COMPUTER
end_launch_computer
tilt 35 deg
# This causes a call to the launch computer to compute the predicted intercept.
# The launcher will then be cued to the proper angles (Subject to the slewing
# limits defined below). This is a bit of a hack until the guidance computer
# is changed...
cue_to_predicted_intercept true
slew_mode azimuth
azimuth_slew_limits -180 deg 180 deg
quantity 16 # Ref 2
# Abort the launch if the launch computer didn't provide the required data
require_loft_angle
end_weapon

View File

@@ -0,0 +1,107 @@
# ****************************************************************************
# 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 ------
# BLUE_SR_SAM - Complex (with uplink and seeker)
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# This BLUE_SR_SAM representation extends upon the baseline seeker representation
# by providing a datalink and a seeker.
#
# References:
#
# 1) http://www.globalsecurity.org/space/systems/patriot-ac-3.htm
#
# "The missile flies to an intercept point specified prior to launch by its
# ground-based fire solution computer, which is embedded in the engagement
# control station. Target trajectory data can be updated during missile flyout
# by means of a radio frequency uplink/downlink. Shortly before arrival at the
# intercept point, the PAC-3 Missile's on board Ka band seeker acquires the
# target, selects the optimal aim point and terminal guidance is initiated.
# The ACMs, which are small, short duration solid propellant rocket motors
# located in the missile forebody, fire explosively to refine the missile's
# course to assure body-to-body impact.
###############################################################################
include blue_sr_sam_common.txt
###############################################################################
platform_type BLUE_SR_SAM BLUE_SR_SAM_BASE
comm datalink WSF_COMM_TRANSCEIVER
internal_link data_mgr
end_comm
# The seeker is modeled very simplisticly. There is no performance data.
# This is really just a method to model seeker errors.
sensor seeker WSF_GEOMETRIC_SENSOR
off
frame_time 0.1 sec
azimuth_field_of_view -70 deg 70 deg
elevation_field_of_view -70 deg 70 deg
maximum_range 50 km
maximum_request_count 1
range_error_sigma 1 m
azimuth_error_sigma 0.001 deg
elevation_error_sigma 0.001 deg
filter WSF_KALMAN_FILTER
process_noise_sigmas_XYZ 50 50 50
process_noise_model constant_acceleration
end_filter
reports_range
reports_bearing
reports_elevation
reports_velocity
internal_link data_mgr
end_sensor
processor data_mgr WSF_WEAPON_TRACK_PROCESSOR
end_processor
# Modify the guidance processor such that when it enters TERMINAL phase
# that it turns on the sensor and starts tracking the target. During this
# phase we guide to perception to allow the introduction of errors.
edit processor guidance
edit phase TERMINAL
guide_to_truth false
on_entry
WsfSensor seeker = PLATFORM.Sensor("seeker");
WsfTrack targetTrack = PLATFORM.CurrentTargetTrack();
if (seeker.IsValid() &&
targetTrack.IsValid())
{
seeker.TurnOn();
seeker.StartTracking(targetTrack, "");
}
end_on_entry
end_phase
end_processor
end_platform_type

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,69 @@
# ****************************************************************************
# 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.
# ****************************************************************************
###############################################################################
# Launch computer generator for BLUE_SR_SAM.
###############################################################################
file_path ../../../base_types
include blue_sr_sam_simple.txt
platform_type LAUNCH_PLATFORM_TYPE WSF_PLATFORM
side red
weapon blue_sr_sam BLUE_SR_SAM
# Override the firing delay because we are using the firing delay during
# the real simulation to overcome a problem with ballistic intercept
# prediction not accounting for drag.
firing_delay 0.0 sec
end_weapon
end_platform_type
tool BALLISTIC_MISSILE_LAUNCH_COMPUTER_GENERATOR # ballistic_missile_launch_computer_generator
tool_debug
frame_step 0.5 sec # sample time of trajectory
# altitude 1 m choosen to correspond with typical scenario altitudes
position 0n 0e altitude 1 m
air_target_file blue_sr_sam_launch_data.txt
#gnuplot_file blue_sr_sam_trajectory.plt
loft_angles from 20 deg to 85 deg by 0.2 deg
############################################################################
# All of the remaining data is used to keep the launch computer dataset
# small and to only enable solutions that are doctrinally allowed.
#
# If you change these values, also review the weapon fuse definitions in
# blue_sr_sam.txt. It has limits that will cause the weapon to self-destruct in
# certain cases.
############################################################################
# 'minimum_output_time' should be greater than or equal to the burn time.
# (No intercept during boost)
minimum_output_time 10 sec
# Jane's says the max range is 15-20km, but may be more things like
# fighters or cruise missiles.
#
# (MJM) Missiles were fusing on min mach for low trajectories; setting range
# to just over 20 km.
maximum_output_range 22.5 km
# Jane's says the max intercept altitude is 15 km, but we may need to
# go past apogee, so we'll set it higher.
maximum_output_altitude 20 km
end_tool
event_pipe
#file replay.aer
end_event_pipe

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,33 @@
# ****************************************************************************
# 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 ------
# BLUE_SR_SAM - Simplified (no uplink, no seeker, guide-to-truth)
###############################################################################
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
# This definition is intended to be EXPORTABLE. It is defined using publicly
# available, attributable sources. DO NOT ADD ANYTHING BASED ON OTHER SOURCES!
#
# ***** WARNING ***** WARNING ***** WARNING ***** WARNING ***** WARNING *****
#
###############################################################################
#
# This is a 'simplified' BLUE_SR_SAM (guide-to-truth, no uplink, no seeker). It uses
# the base BLUE_SR_SAM from blue_sr_sam_common.txt
#
###############################################################################
include blue_sr_sam_common.txt
###############################################################################
platform_type BLUE_SR_SAM BLUE_SR_SAM_BASE
end_platform_type

93
weapons/sam/large_sam.txt Normal file
View File

@@ -0,0 +1,93 @@
# ****************************************************************************
# 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.
# ****************************************************************************
# * * ************************************** * *
# * ****** Demonstration input file ****** *
# * ****** UNCLASSIFIED ****** *
# * * ************************************** * *
infrared_signature LARGE_SAM_INFRARED_SIGNATURE
constant 1 watts/steradian
end_infrared_signature
optical_signature LARGE_SAM_OPTICAL_SIGNATURE
constant 1 m^2
end_optical_signature
radar_signature LARGE_SAM_RADAR_SIGNATURE
constant 1 m^2
end_radar_signature
platform_type LARGE_SAM WSF_PLATFORM
icon SA-10_Missile
infrared_signature LARGE_SAM_INFRARED_SIGNATURE
optical_signature LARGE_SAM_OPTICAL_SIGNATURE
radar_signature LARGE_SAM_RADAR_SIGNATURE
mover WSF_STRAIGHT_LINE_MOVER
average_speed 2643.0 kts # mach 4
maximum_lateral_acceleration 20.0 g
guidance_mode lead_pursuit
end_mover
processor fuse WSF_AIR_TARGET_FUSE
max_time_of_flight_to_detonate 27.0 sec # 25 nm range
end_processor
processor seeker WSF_PERFECT_TRACKER
update_interval 0.5 s
end_processor
end_platform_type
weapon_effects LARGE_SAM_EFFECT WSF_GRADUATED_LETHALITY
radius_and_pk 100.0 m 0.7
script void on_weapon_target_engagement(WsfPlatform aTarget)
writeln("T=",TIME_NOW," Weapon Engagement",
"; Start Time: ", StartTime(),
"; Elapsed Time: ", TimeSinceStarted(),
", Serial: ", SerialNumber());
WsfPlatform target = aTarget;
WsfPlatform weapon = WeaponPlatform();
if (! (target.IsValid() && weapon.IsValid())) return;
writeln(" Weapon Name : ", weapon.Name());
writeln(" Target Name : ", target.Name());
writeln(" Weapon Loc : ", WeaponLocation().ToString());
writeln(" Target Loc : ", TargetLocation().ToString());
writeln(" Weapon Launch Loc: ", WeaponLocationAtLaunch().ToString());
writeln(" Target Launch Loc: ", TargetLocationAtLaunch().ToString());
writeln(" Miss Distance : ", MissDistance());
writeln(" Pk : ", Pk());
writeln(" Pk Degrade : ", PkDegrade());
writeln(" Heading : Weapon: ", weapon.Heading(), ", Target: ", target.Heading(),
", Diff=", target.HeadingDifferenceOf(weapon));
writeln(" Speed : Weapon: ", weapon.Speed(), ", Target: ", target.Speed());
writeln(" Range : ", weapon.SlantRangeTo(target));
end_script
end_weapon_effects
weapon LARGE_SAM WSF_EXPLICIT_WEAPON
launched_platform_type LARGE_SAM
weapon_effects LARGE_SAM_EFFECT
quantity 4
firing_delay 0.5 sec
salvo_interval 5.0 sec
slew_mode azimuth_and_elevation
azimuth_slew_limits -180.0 deg 180.0 deg
elevation_slew_limits 10.0 deg 70.0 deg
end_weapon

View File

@@ -0,0 +1,48 @@
# ****************************************************************************
# 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.
# ****************************************************************************
# * * ************************************** * *
# * ****** Demonstration input file ****** *
# * ****** UNCLASSIFIED ****** *
# * * ************************************** * *
# Launch/engagement computer for the Large SAM
script bool Large_SAM_LaunchComputer(WsfTrack aTrack,
WsfPlatform aLauncher,
string aEnvelopeName,
double aLaunchDelay)
bool canIntercept = false;
# TODO assuming launcher at 0 alt. need AGL of target
double tgtAlt = aLauncher.RelativeAltitudeOf(aTrack);
double maxTOF = 0.0;
double avgSpd = 0.0;
double maxRng = 0.0;
double shootDelay = 0.0;
# simple wpn-spd data for now
maxRng = 25.0 * 1852.0; # 25 nautical miles
maxTOF = 27.0;
avgSpd = 2643.0 * 1852.0 / 3600.0; # kts -> m/sec
WsfWaypoint intercept = WsfWaypoint();
double tti = aLauncher.InterceptLocation2D(aTrack, intercept, avgSpd, aLaunchDelay + shootDelay);
if ((tti > 0.0) && (tti < maxTOF))
{
double lat = intercept.Latitude();
double lon = intercept.Longitude();
WsfGeoPoint point;
point = point.Construct(lat, lon, tgtAlt);
canIntercept = point.WithinZoneOf(aLauncher, aEnvelopeName);
}
return canIntercept;
end_script

View File

@@ -0,0 +1,14 @@
@echo off
rem ****************************************************************************
rem CUI
rem
rem The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
rem
rem The use, dissemination or disclosure of data in this file is subject to
rem limitation or restriction. See accompanying README and LICENSE for details.
rem ****************************************************************************
setlocal
call ..\..\..\bin\weapon_tools.exe blue_sr_sam_lcg.txt
call ..\..\..\bin\weapon_tools.exe blue_lr_sam_lcg.txt
call ..\..\..\bin\weapon_tools.exe blue_naval_sam_lcg.txt
endlocal

View File

@@ -0,0 +1,30 @@
# ****************************************************************************
# 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.
# ****************************************************************************
# * * ************************************** * *
# * ****** Demonstration input file ****** *
# * ****** UNCLASSIFIED ****** *
# * * ************************************** * *
# Launch/engagement computer
include_once weapons/sam/large_sam_launch_computer.txt
script bool SAM_LaunchComputer(WsfTrack aTrack, WsfPlatform aAssignee, string aEnvelopeName, double aLaunchDelay)
extern bool Large_SAM_LaunchComputer(WsfTrack, WsfPlatform, string, double);
bool canIntercept = false;
string subType = aAssignee.Type();
if ((subType == "LARGE_SAM_BATTALION") ||
(subType == "LARGE_SAM_LAUNCHER"))
{
canIntercept = Large_SAM_LaunchComputer(aTrack, aAssignee, aEnvelopeName, aLaunchDelay);
}
return canIntercept;
end_script