2023-02-25 07:25:35 +00:00
|
|
|
--
|
|
|
|
-- System and Safety Constants
|
|
|
|
--
|
|
|
|
|
|
|
|
local constants = {}
|
|
|
|
|
|
|
|
--#region Reactor Protection System (on the PLC) Limits
|
|
|
|
|
|
|
|
local rps = {}
|
|
|
|
|
|
|
|
rps.MAX_DAMAGE_PERCENT = 90 -- damage >= 90%
|
|
|
|
rps.MAX_DAMAGE_TEMPERATURE = 1200 -- temp >= 1200K
|
|
|
|
rps.MIN_COOLANT_FILL = 0.10 -- fill < 10%
|
2023-03-04 06:37:15 +00:00
|
|
|
rps.MAX_WASTE_FILL = 0.95 -- fill > 95%
|
2023-02-25 07:25:35 +00:00
|
|
|
rps.MAX_HEATED_COLLANT_FILL = 0.95 -- fill > 95%
|
|
|
|
rps.NO_FUEL_FILL = 0.0 -- fill <= 0%
|
|
|
|
|
|
|
|
constants.RPS_LIMITS = rps
|
|
|
|
|
|
|
|
--#endregion
|
|
|
|
|
|
|
|
--#region Annunciator Limits
|
|
|
|
|
|
|
|
local annunc = {}
|
|
|
|
|
2023-03-05 02:19:35 +00:00
|
|
|
annunc.RCSFlowLow_H2O = -3.2 -- flow < -3.2 mB/s
|
|
|
|
annunc.RCSFlowLow_NA = -2.0 -- flow < -2.0 mB/s
|
|
|
|
annunc.CoolantLevelLow = 0.4 -- fill < 40%
|
|
|
|
annunc.ReactorTempHigh = 1000 -- temp > 1000K
|
|
|
|
annunc.ReactorHighDeltaT = 50 -- rate > 50K/s
|
|
|
|
annunc.FuelLevelLow = 0.05 -- fill <= 5%
|
|
|
|
annunc.WasteLevelHigh = 0.80 -- fill >= 80%
|
|
|
|
annunc.WaterLevelLow = 0.4 -- fill < 40%
|
|
|
|
annunc.SteamFeedMismatch = 10 -- ±10mB difference between total coolant flow and total steam input rate
|
|
|
|
annunc.SFM_MaxSteamDT_H20 = 2.0 -- flow > 2.0 mB/s
|
|
|
|
annunc.SFM_MinWaterDT_H20 = -3.0 -- flow < -3.0 mB/s
|
|
|
|
annunc.SFM_MaxSteamDT_NA = 2.0 -- flow > 2.0 mB/s
|
|
|
|
annunc.SFM_MinWaterDT_NA = -2.0 -- flow < -2.0 mB/s
|
|
|
|
annunc.RadiationWarning = 0.00001 -- 10 uSv/h
|
2023-02-25 07:25:35 +00:00
|
|
|
|
|
|
|
constants.ANNUNCIATOR_LIMITS = annunc
|
|
|
|
|
|
|
|
--#endregion
|
|
|
|
|
|
|
|
--#region Supervisor Alarm Limits
|
|
|
|
|
|
|
|
local alarms = {}
|
|
|
|
|
|
|
|
-- unit alarms
|
|
|
|
|
|
|
|
alarms.HIGH_TEMP = 1150 -- temp >= 1150K
|
2023-03-04 06:37:15 +00:00
|
|
|
alarms.HIGH_WASTE = 0.85 -- fill > 85%
|
2023-02-25 07:25:35 +00:00
|
|
|
alarms.HIGH_RADIATION = 0.00005 -- 50 uSv/h, not yet damaging but this isn't good
|
|
|
|
|
|
|
|
-- facility alarms
|
|
|
|
|
|
|
|
alarms.CHARGE_HIGH = 1.0 -- once at or above 100% charge
|
|
|
|
alarms.CHARGE_RE_ENABLE = 0.95 -- once below 95% charge
|
|
|
|
alarms.FAC_HIGH_RAD = 0.00001 -- 10 uSv/h
|
|
|
|
|
|
|
|
constants.ALARM_LIMITS = alarms
|
|
|
|
|
|
|
|
--#endregion
|
|
|
|
|
|
|
|
--#region Supervisor Constants
|
|
|
|
|
|
|
|
-- milliseconds until turbine flow is assumed to be stable enough to enable coolant checks
|
|
|
|
constants.FLOW_STABILITY_DELAY_MS = 15000
|
|
|
|
|
2023-03-04 07:05:36 +00:00
|
|
|
-- Notes on Radiation
|
|
|
|
-- - background radiation 0.0000001 Sv/h (99.99 nSv/h)
|
|
|
|
-- - "green tint" radiation 0.00001 Sv/h (10 uSv/h)
|
|
|
|
-- - damaging radiation 0.00006 Sv/h (60 uSv/h)
|
|
|
|
constants.LOW_RADIATION = 0.00001
|
|
|
|
constants.HAZARD_RADIATION = 0.00006
|
|
|
|
constants.HIGH_RADIATION = 0.001
|
|
|
|
constants.VERY_HIGH_RADIATION = 0.1
|
|
|
|
constants.SEVERE_RADIATION = 8.0
|
|
|
|
constants.EXTREME_RADIATION = 100.0
|
|
|
|
|
2023-02-25 07:25:35 +00:00
|
|
|
--#endregion
|
|
|
|
|
|
|
|
return constants
|