1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Merge pull request #445 from metrostroi-repo/#425

Вывод на вольтметры напряжения на 10 проводе. Имитация просадки напряжения на ПП БПСН и его тепловая защита
This commit is contained in:
HellReach
2022-04-10 00:04:54 +03:00
committed by GitHub
5 changed files with 85 additions and 7 deletions

View File

@@ -66,7 +66,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
local isDot2 = self.Type == 5
local Panel = Train.Panel
Panel.V1 = BO
Panel.V1 = T[10]
--Поездная часть
S["33D"] = T[10]*Train.A54.Value*Train.A84.Value

View File

@@ -70,7 +70,7 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter)
local KV = Train.KV
local KRU = Train.KRU
local Panel = Train.Panel
Panel.V1 = BO
Panel.V1 = T[10]
local RC1 = Train.RC1.Value
local ARS = Train.ALS_ARS
local RC2,AVI,AVO

View File

@@ -9,7 +9,7 @@ Metrostroi.DefineSystem("BPSN")
function TRAIN_SYSTEM:Initialize()
self.X2 = {
[2] = 0,
[3] = 0,
[3] = 0, --overheat protection simulation
[4] = 0,
[5] = 0, -- Out only
[6] = 0,
@@ -42,7 +42,7 @@ end
function TRAIN_SYSTEM:Think()
local Train = self.Train
-- Get high-voltage input
self.X2_1 = Train.KPP.Value * (1-Train.RZP.Value) -- P4
self.X2_1 = Train.KPP.Value * (1-Train.RZP.Value) * (1-self.X2[3]) -- P4
-- Get battery input
local XT3_1 = self.X2[5]*self.X2_1
if Train.Electric.Aux750V*self.X2_1 > 975 then
@@ -50,7 +50,6 @@ function TRAIN_SYSTEM:Think()
self.X2_1 = 0
XT3_1 = 0
end
-- Check if enable signal is present
self.Active = XT3_1>0 and 1 or 0
self.X2_2 = Train.Electric.Aux750V*self.Active