Regarding the complexity and opacity of the existing analysis process for relay circuits, and the difficulty of large-scale circuits analysis, a logic function simulation method of railway relay circuits based on Graph Theory (GT) and Cellular Automata (CA) is proposed. Firstly, a formal description of relay circuits was given, and the short circuit concept was introduced to simplify the circuit structure. Secondly, the rules for transforming relay circuit into directed graph were formulated, and the judgement rules of the directed graph direction were designed based on Kirchhoff's Current Law (KCL). Besides, the CA model of the relay circuits was constructed and its evolution rules were formulated. Finally, through the case study of actual relay circuits, the dynamic execution process of circuits was demonstrated and compared with the expected execution results to verify the correctness and effectiveness of the simulation method. The results show that the simulation process and results are consistent with the expected effects under 4 test scenarios, and the logic simulation method of railway relay circuits based on GT-CA has the ability to accurately realize the logic function simulation of railway relay circuits, which can provide theoretical reference and technical support for the design verification and error finding of railway relay circuits.
该系统架构由3个模块构成,其中继电电路形式化描述模块主要负责电路元件的数学建模与结构简化,将继电器、电源等电路元件抽象为5种基本类型,构建其数学模型并采用形式化语言精确描述元件间的逻辑关系[16],同时引入短电路分割技术,实现电路拓扑结构的初步简化;继电电路有向图模块基于图论方法实现电路结构的转换与分析,首先制定拓扑结构到有向图的映射规则,随后基于基尔霍夫电流定律(Kirchhoff’s Current Law,KCL)制定有向图方向判定准则,通过规范通路搜索方向显著减少无效路径的遍历过程;继电电路CA仿真模块通过制定继电电路元胞邻居的获取规则和元胞状态的演化规则,构建继电电路的CA仿真模型,并通过在离散时间点记录模型的元胞状态和演化流程,获取电路执行过程中元件的状态变化与影响关系。
MAXiaoping, WANGXu, JIALimin, et al. Design of Railway Disaster Prevention Monitoring Simulation System Based on Digital Twin and MBSE [J]. China Railway Science, 2024, 45 (3): 168-181. in Chinese
[5]
牟志京.应用图论对时序继电电路的分析方法[J].铁道学报,1981,3(4):53-63.
[6]
MUZhijing. A Graph Method for Analysing the Sequential Relay Circuits [J]. Journal of the China Railway Society, 1981, 3 (4): 53-63. in Chinese
[7]
CHENZ, YINZ X, CUIJ Z, et al. DNA Switching Circuits Based on Binary Tree [J]. IEEE Access, 2021, 9: 94033-94039.
YANGXue, CHENCe, XIQi. An Analytic Method of Sneak Path in Relay Circuit [J]. Aerospace Control, 2018, 36 (6): 72-75. in Chinese
[10]
BENACHOURA, YAHIAOUIS, ELBAZ D, et al. Fast Parallel Algorithms for Finding Elementary Circuits of a Directed Graph: a GPU-Based Approach [J]. The Journal of Supercomputing, 2023, 79: 4791-4819.
[11]
RIAZAR. Setting up the State Equations of Switched Circuits Using Homogeneous Models [J]. IEEE Transactions on Circuits and Systems I: Regular Papers, 2024, 71 (4): 1947-1960.
[12]
YANGS, GAOX, RENJ. Sequential Circuits Synthesis for Rapid Single Flux Quantum Logic Based on Finite State Machine Decomposition [J]. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2023, 42 (10): 3315-3326.
ZHENGYong, YANGYang. Research on Relay Circuit Simulation Algorithms Based on FSM and Graph Theory [J]. Railway Signaling & Communication, 2020, 56 (12): 25-29. in Chinese
[15]
XUP, MAQ. Sneak Circuit Analysis Using Petri Net [C]// 2010 5th IEEE Conference on Industrial Electronics and Applications (ICIEA). New York: IEEE Press, 2010: 921-925.
[16]
XUEY, YANGY, YANGM, et al. Sneak Circuit Analysis of Relay Circuits Based on Logic Delay Petri Nets [C]// 2023 14th International Conference on Reliability, Maintainability and Safety (ICRMS). New York: IEEE Press, 2023: 646-655.
LULibo, YANGYang, YANGMing, et al. Simulation Research on Logic Function of Relay Control Circuit Based on Agent-CA [J/OL]. Control Engineering of China, 2024: 1-9 (2024-04-03) [2024-06-03]. in Chinese
SONGZhengxiang, WANGJianhua. Modeling and Algorithm Design for the Logical Analysis of Relay Control Circuit [J]. Journal of Xi’an Jiaotong University, 1998, 32 (6): 5-8. in Chinese
LISheng. Design of Simulation System for Computer Interlocking Control Circuit [J]. Railway Signalling & Communication, 2018, 15 (1): 20-24. in Chinese
ZHANGYingyao, GENGYingsan, ZHANGGuogang, et al. A Logical Formula Extracting Method of Relay Circuit Based on Network Topology [J]. Low Voltage Apparatus, 2007 (21): 1-4, 48. in Chinese
WANGKun. Formal Modeling and Verification of CBTC Computer Interlocking System Based on Communication Sequential Process and B Method [J]. China Railway Science, 2018, 39 (3): 101-109. in Chinese
[27]
DÖRFLERF, SIMPSON-PORCOJ W, BULLOF. Electrical Networks and Algebraic Graph Theory: Models, Properties, and Applications [J]. Proceedings of the IEEE, 2018, 106 (5): 977-1005.
[28]
VRBIKJ. Solving Electrical Circuits via Graph Theory [J]. Applied Mathematics, 2022, 13 (1):77-86.
[29]
BHARDWAJR, UPADHYAYA. Cellular Automata: Elementary Cellular Automata [J]. Journal of Organizational and End User Computing, 2016, 29 (1): 42-50.
[30]
MALECKIK. Graph Cellular Automata with Relation-Based Neighbourhoods of Cells for Complex Systems Modelling: a Case of Traffic Simulation [J]. Symmetry, 2017, 9 (12): 322-344.
[31]
GONGYEX, WANGY, WENY, et al. A Simple Detection and Generation Algorithm for Simple Circuits in Directed Graph Based on Depth-First Traversal [J]. Evolutionary Intelligence, 2022, 15: 2411-2420.