2023-02-25 07:25:35 +00:00
|
|
|
--
|
|
|
|
-- System and Safety Constants
|
|
|
|
--
|
|
|
|
|
|
|
|
-- 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)
|
|
|
|
|
|
|
|
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 = {}
|
|
|
|
|
|
|
|
annunc.RCSFlowLow = -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%
|
2023-03-04 06:37:15 +00:00
|
|
|
annunc.WasteLevelHigh = 0.80 -- fill >= 80%
|
2023-02-26 19:17:35 +00:00
|
|
|
annunc.WaterLevelLow = 0.4 -- fill < 40%
|
2023-02-25 07:25:35 +00:00
|
|
|
annunc.SteamFeedMismatch = 10 -- ±10mB difference between total coolant flow and total steam input rate
|
|
|
|
annunc.RadiationWarning = 0.00001 -- 10 uSv/h
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
--#endregion
|
|
|
|
|
|
|
|
return constants
|