Data and mechanism dual-drive railway signal circuit dynamic simulation model construction method

By building an electrical simulation model library of signal basic equipment and a static model of the signal relay circuit of the whole station, combined with the simulation model state dynamic refresh technology, the problem of difficulty in realizing the systemic simulation logic circuit of the entire station is solved in the existing technology, and the detectability and safety of circuit errors are improved.

CN119670654APending Publication Date: 2025-03-21CHINA RAILWAY FIRST SURVEY & DESIGN INST GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411533935.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The existing technology is difficult to realize systematic simulation of the actual signal relay logic circuits of the entire station, resulting in strong concealment of circuit errors, making it difficult to intuitively discover errors from the drawings, and poses safety hazards.

Method used

Using the dual-drive method of data and mechanism, an electrical simulation model library of signal basic equipment is constructed, and a static model of the signal relay circuit of the whole station is constructed based on the digital data of the station signal drawings. Through the dynamic refreshing technology of simulation model status, the circuit model is dynamically refreshed, and the acquisition information and component status information are output.

Benefits of technology

The systemic simulation of the signal relay logic circuit of the entire station is realized, the detectability and verifiability of circuit errors is improved, and the safety of the railway signal system is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119670654A_ABST
    Figure CN119670654A_ABST
Patent Text Reader

Abstract

The invention discloses a data and mechanism dual-drive railway signal circuit dynamic simulation model construction method, which comprises the following steps: constructing a signal basic equipment electrical simulation model library, each equipment electrical model in the simulation model library comprising physical parameters, static electrical parameters and dynamic characteristic information; based on the simulation model library and the digital data of the station signal drawing, constructing a static model of the whole-station signal relay circuit; and dynamically refreshing the static model of the signal relay circuit of the whole station based on a simulation model state dynamic refreshing technology according to the input driving conditions of various relay circuits, and outputting the acquisition information of various relay circuits and the state information of components. According to the method, a circuit simulation technology based on SPICE is adopted, drawing digital data and a signal basic equipment electrical simulation model library are combined, a whole-station signal relay circuit dynamic simulation subsystem based on data and mechanism dual drive is constructed in an instantiation mode, and the simulation subsystem is consistent with field actual operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of railway signals, and in particular to a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism. Background Art

[0002] The railway signal system consists of multiple subsystems such as the dispatching and command system, the train operation control system, the section block system, the station interlocking system, the signal centralized monitoring system, and the power supply system. The railway signal drawings are designed according to the technical requirements of each subsystem, and the signal equipment / equipment layout diagram, circuit schematic diagram, combined side wiring diagram, combined internal wiring diagram, power loop diagram and other specific drawings are completed. The specific objects expressed by the drawings are relay logic circuits such as signal control circuits, switch machine circuits, track circuits and various combined circuits. The three types of drawings, namely, combined cabinet equipment layout, combined side and internal wiring, and power wiring, express the specific composition and specific construction content of the circuit, and the circuit schematic diagram shows the operation logic of the circuit. There are many signal formats, equipment types, and equipment manufacturers, and the drawings are large in quantity and wiring is numerous. The interface relationship between various circuits is complex. An incorrect wiring will cause a circuit error, and a circuit error may cause a safety accident. The circuit logic is abstract, the analysis is difficult, and the error is highly hidden. When the wiring diagram or schematic diagram is wrong, the error cannot be intuitively found from the drawing, and it is necessary to manually "run the circuit" according to the relay state to analyze the circuit logic. Therefore, it is necessary to carry out relevant research and use computer software simulation technology to verify the correctness of the basic data of the drawings and the correctness of the circuit operation scenarios.

[0003] The simulation tests in the railway signal industry are concentrated on the simulation of the software functions and interfaces of interlocking, CTC and other equipment. Some universities have conducted some research on simulation methods for independent standard circuits such as switch machines and signal machines, but currently they cannot achieve systematic simulation of the actual signal relay logic circuits of the entire station. There are a large number of railway signal BIM-related studies both at home and abroad, and some research on the digital delivery of railway signal design results has been carried out based on BIM. However, the existing research results focus on the three-dimensional appearance display of outdoor trackside equipment, indoor cabinets, etc., as well as the display of some construction processes, which cannot reflect the signal circuit logic. Summary of the invention

[0004] The present application provides a method for constructing a dynamic simulation model of a railway signal circuit driven by both data and mechanism, so as to solve the problem of systematically simulating the actual signal relay logic circuit of the entire station.

[0005] According to the first aspect, an embodiment provides a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism, the method comprising:

[0006] Constructing a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information;

[0007] Based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed;

[0008] According to the input driving conditions of various relay circuits, the static model of the signal relay circuit of the entire station is dynamically refreshed based on the dynamic refresh technology of the simulation model state, and the collection information of various relay circuits and the status information of components are output.

[0009] Furthermore, based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed, which specifically includes:

[0010] Referring to the installation equipment and wiring work in actual construction, based on the digital data of the station's signal drawings, instantiate all the indoor equipment and cabinets related to the station's signal circuits, and instantiate the controlled trackside equipment including signal machines, switch machines, and track circuits. Then instantiate indoor and outdoor wiring, mount simulated power supplies, establish connections between indoor and outdoor signal equipment, and construct a static model of the entire station's signal relay circuit based on the drawing data, which is consistent with the operating logic of the actual signal system.

[0011] Furthermore, based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed, which specifically includes:

[0012] The designed two-dimensional drawings are digitized, and the drawing data is converted into a data structure form that can be directly used by the computer, and stored in the drawing data digitization library, and the inclusion and pointing relationship between the data is established.

[0013] Furthermore, based on the simulation model state dynamic refresh technology, the static model of the signal relay circuit of the entire station is dynamically refreshed, specifically including:

[0014] The dynamic refresh technology of simulation model state based on MNA algorithm is adopted to simulate and analyze the signal relay circuit according to the actual electrical characteristics. The real-time voltage and current of each device in the circuit are solved by MNA algorithm, and then the real-time state of the signal circuit and the device is determined.

[0015] Furthermore, a simulation model state dynamic refresh technology based on the MNA algorithm is adopted, specifically including:

[0016] Step a, obtaining circuit data from an instantiated static model of the whole-station signal circuit;

[0017] Step b, analyze the circuit and generate the matrix:

[0018] The MNA matrix form is: [A] · [x] = [z]

[0019] For a circuit with N nodes and M independent voltage sources:

[0020] The matrix dimension of the A matrix is ​​(N+M)×(N+M), and it only contains known quantities; the N×N part is in the upper left corner of the matrix and satisfies: it only contains passive components, grounded components only appear on the diagonal, and ungrounded components appear both on the diagonal and in other positions of the matrix; the rest of the A matrix outside the N*N part only contains 1, -1, 0, depending on the independent voltage source and current source at the corresponding position;

[0021] The x matrix is ​​a (N+M)×1 vector containing unknown quantities, including node voltages and currents flowing into the voltage source. The upper N elements are the node voltages, and the lower M elements are the currents flowing into the voltage source.

[0022] The z matrix is ​​a (N+M)×1 vector that contains only known quantities. The upper N elements are independent current sources in the circuit, and the lower M elements are independent voltage sources in the circuit.

[0023] The circuit is solved by matrix operations: [x] = [A] - 1 · [z];

[0024] Step c, update the current status of the components in the circuit to the matrix:

[0025] Traverse all the components in the netlist. Every time you encounter a component, add the contribution value of the corresponding type of component to the corresponding sub-matrix. At the end of the traversal, each sub-matrix has the correct value, thus directly generating a system of equations; the contribution value of each component is a constant, and the contribution value is compiled into a table for query;

[0026] Step d, solve the matrix and calculate the real-time voltage and current of each device in the circuit:

[0027] The LU decomposition method is used to solve the matrix. The LU decomposition is to decompose the matrix into the product of a lower triangular matrix L and an upper triangular matrix U;

[0028] Step e, determining the state of the component according to the real-time voltage and current of the device and the dynamic characteristics of the device electrical model;

[0029] Step f, refreshes steps c, d, and e at a fixed period or when receiving an external drive instruction.

[0030] Furthermore, the LU decomposition method is used to solve the matrix, specifically including:

[0031] Gaussian elimination: First, use Gaussian elimination or Gaussian elimination with partial pivots to convert the matrix A into an upper triangular form. In this process, each step eliminates the elements at the bottom of the matrix by multiplying it by an elementary row transformation matrix. These row transformations are accumulated to form an inverse matrix L of the lower triangular matrix L. -1 ;

[0032] Record the transformations: While converting A to upper triangular form, record the row transformations at each step so that L can be constructed, which is obtained by applying the same sequence of row transformations to the identity matrix I;

[0033] Form U: After all rows are transformed, the matrix A will become an upper triangular matrix, which is U;

[0034] Solution: With L and U, solve the linear equation system Ax = b through the following two steps:

[0035] Forward substitution: First solve Ly = b to find y, which is done by forward substitution because L is lower triangular;

[0036] Back Substitution: We then solve Ux=y to find x, which is done by back substitution since U is upper triangular.

[0037] Furthermore, based on the simulation model state dynamic refresh technology, the static model of the signal relay circuit of the entire station is dynamically refreshed, which specifically includes:

[0038] According to the correlation between various signal circuits and the electrical characteristics of signal equipment, the antagonistic components are simplified equivalently, and the timing relationship of state changes between various circuits is considered. Based on the MNA algorithm, multi-threading technology is comprehensively utilized to improve the state refresh response speed of the dynamic simulation model.

[0039] Furthermore, the antagonistic components are simplified equivalently, including:

[0040] The relay components were simplified, and the software algorithm timer was used to simulate the delay effect for the coil part that originally relied on inductance design, reducing the MNA matrix size and the number of iterations;

[0041] In certain application scenarios, AC circuits are used to replace DC circuits.

[0042] Furthermore, considering the timing relationship of state changes between various circuits, based on the MNA algorithm, multi-threading technology is comprehensively used to improve the state refresh response speed of the dynamic simulation model, including:

[0043] Optimize the MNA algorithm, including:

[0044] Equation compression: Reduce redundant equations and variables in the MNA equation group, compress the equation size through circuit analysis and sparse matrix technology, and improve solution efficiency;

[0045] Preprocessing: Preprocess the circuit, including node reordering and branch reordering, to optimize the bandwidth and sparsity of the matrix and reduce the computational complexity;

[0046] High-precision solver: Use efficient numerical solvers, including iterative solvers or direct solvers, to solve the MNA equations, ensuring a balance between solution speed and accuracy;

[0047] Introducing multithreading technology, including:

[0048] Multi-threaded design:

[0049] Task division: Divide the MNA solution process into multiple independent or parallel tasks, including the construction of the circuit matrix, the initialization of the solver, and the calculation of each step of the iterative solution;

[0050] Thread management: Use OpenMP to manage threads, including thread creation, scheduling, synchronization, and destruction;

[0051] Parallelization strategy:

[0052] Data parallelism: For data that can be processed in parallel, use multi-threaded parallel computing to speed up data processing;

[0053] Task parallelism: Different tasks in the entire solution process are assigned to different threads or thread groups for parallel execution, including simulating different parts of the circuit at the same time;

[0054] State refresh and dynamic simulation, including:

[0055] Condition Monitoring:

[0056] Real-time status detection: detect the circuit status in real time during the simulation process, and quickly obtain and update the status information through a multi-threaded mechanism;

[0057] Dynamic feedback: Dynamically adjust simulation parameters or models according to changes in circuit status to achieve more accurate simulation results;

[0058] Optimize response speed:

[0059] Cache strategy: Use the cache mechanism to store and reuse intermediate calculation results, reduce repeated calculations, and improve response speed;

[0060] Asynchronous processing: For time-consuming computing tasks, asynchronous processing is adopted. The background thread completes the calculation without affecting the execution of the main thread, and notifies the main thread of the results.

[0061] According to the second aspect, an embodiment provides a data and mechanism dual-driven railway signal circuit dynamic simulation model construction system, the system comprising:

[0062] A model library construction module is used to construct a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information;

[0063] A static model building module, used to build a static model of the signal relay circuit of the entire station based on the simulation model library and the digital data of the station signal drawings;

[0064] The dynamic refresh module is used to dynamically refresh the static model of the signal relay circuit of the entire station according to the input driving conditions of various relay circuits based on the dynamic refresh technology of the simulation model state, and output the collection information of various relay circuits and the status information of components.

[0065] According to the third aspect, an embodiment provides an electronic device, the device comprising: a processor and a memory;

[0066] The memory is used to store one or more program instructions;

[0067] The processor is used to run one or more program instructions to execute the steps of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as described in any of the above items.

[0068] According to the fourth aspect, an embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as described in any of the above items are implemented.

[0069] The present application provides a method for constructing a dynamic simulation model of a railway signal circuit driven by both data and mechanism, constructing a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information; constructing a static model of the signal relay circuit of the entire station based on the simulation model library and the digital data of the station signal drawings; dynamically refreshing the static model of the signal relay circuit of the entire station based on the dynamic refresh technology of the simulation model state according to the driving conditions of various types of relay circuits input, and outputting the acquisition information of various types of relay circuits and the status information of components. The present invention adopts a circuit simulation technology based on SPICE, combines the digital data of the drawings and the electrical simulation model library of the signal basic equipment, and instantiates and constructs a dynamic simulation subsystem of the signal relay circuit of the entire station driven by both data and mechanism, and the simulation subsystem is consistent with the actual operation on site. Based on the constructed dynamic simulation model of the signal equipment of the entire station, the correctness of the basic data of the drawings and the correctness verification of the circuit operation scenario can be further realized. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] Figure 1 A flow chart of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism provided by an embodiment of the present invention;

[0071] Figure 2 A specific implementation flow chart of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism provided by an embodiment of the present invention;

[0072] Figure 3 A data and mechanism dual-driven railway signal circuit dynamic simulation model construction method provided by an embodiment of the present invention is an equivalent replacement for the interruption phase protector (DBQ) model;

[0073] Figure 4 A schematic diagram of a static simulation model structure of a station entry signal in a method for constructing a dynamic simulation model of a railway signal circuit driven by both data and mechanism provided by an embodiment of the present invention;

[0074] Figure 5 A schematic diagram of a technical process for dynamically refreshing the state of a whole-station signal circuit simulation model in a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism provided by an embodiment of the present invention;

[0075] Figure 6 A schematic diagram of the logical structure of a data- and mechanism-driven railway signal circuit dynamic simulation model construction system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0076] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.

[0077] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.

[0078] The first embodiment of the present invention provides a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism. Figure 1 and Figure 2 Provide detailed explanation.

[0079] The scheme for constructing the dynamic simulation model of the whole station relay circuit of the present invention is shown as follows: Figure 2 . Based on the specific digital data of drawings and the electrical simulation model of basic signal equipment, circuit analysis and status refresh are performed using circuit simulation technology. An instantiation is constructed based on the dual-driven data mechanism for the dynamic simulation model of the signal relay circuit of the entire station. The model is consistent with the actual operation logic of the signal system on site and is the logical center of the simulation verification platform. The input of the model is the driving conditions of various relay circuits, and the output is the collection information of various relay circuits and the status of trackside signals, switches, and track circuits. It includes three key technologies: the construction of a signal basic equipment electrical simulation model library, the construction technology of the static model of the signal relay circuit of the entire station based on drawing data, and the dynamic refresh technology of the simulation model status. The specific contents are as follows:

[0080] like Figure 1 As shown, in step S100, a signal basic equipment electrical simulation model library is constructed, and each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information.

[0081] The basic simulation model of equipment is the basic unit for moving real-world signal equipment into the software system, and is a necessary condition for building a dynamic and operational overall simulation model of station signals. The model of each equipment should adopt object-oriented thinking, define the main electrical characteristics of the equipment involved in operation (including static parameters and functional actions), and execute the same action logic as the actual equipment when electrically driven.

[0082] The signal basic equipment electrical simulation model library is the basic condition for building an operational full-station relay circuit dynamic simulation model, including relays, wires, power supplies, transformers, resistors and capacitors, signal machines, switch machines, tracks, etc. Each equipment model constructs three types of information: physical parameters, static electrical parameters, and dynamic characteristics.

[0083] Taking the JWXC-1700 relay as an example, the relevant information of its electrical model is shown in Table 1. Its dynamic characteristics are encapsulated as a specific algorithm using a computer program. When the relay is powered on or off, the relay automatically changes its suction or drop state and automatically connects the front and rear contacts.

[0084] Table 1 JWXC-1700 relay electrical model information

[0085]

[0086] According to programming thinking, the construction of simulation model of equipment is the process of defining objects. Objects contain properties and methods, and equipment contains static electrical parameters and functional actions. Taking the most commonly used relay in the signal system as an example, its static electrical characteristics include that each relay includes 8 groups of contacts, each group of nodes includes 3 contacts, front, middle and back, and relay type, etc. can be used as static attributes of the model; its dynamic characteristics drive it to be attracted after excitation and fall after power failure. In theory, this module should model all equipment and devices involved in circuit wiring and logic processing.

[0087] Due to the complexity of the circuit types of the entire station and the wide variety of equipment, the internal structure of the complex type of equipment does not affect the verification results of the circuit operation. At this time, the internal components of this type can be replaced with logical equivalents to simplify the design of the model. The main models are as follows:

[0088] (1) Construction of relay model

[0089] As a commonly used component in automatic control systems and remote control systems, relays are widely used in signal circuits. They use the principle of electric excitation switches to connect and disconnect circuits to issue control commands, reflect equipment status, and perform logical operations. According to circuit requirements, there are many types of relays used in signal circuits. The physical structure and electrical characteristics of each type of relay are different, and their pickup conditions are also inconsistent. The construction of the logical model must be based on a complete understanding of the characteristics of each type of relay, such as JWXC-1700, JZXC-H18, JWJXC-H125 / 80, JPXC-1000, JYJXC-160 / 260, JWJXC-480, JYJXC-, JWJXC-H, RXYC-75.

[0090] (2) Construction of DBQ model:

[0091] Model construction based on equivalent substitution method: DBQ is used for circuit detection mechanism in scenarios such as over-voltage, under-voltage, phase loss, phase failure, and reverse phase in industrial three-phase electricity. According to the requirements of this project, the construction of this model mainly considers the circuit logic in the case of phase failure. Therefore, the role of this device can be logically summarized into the following two points:

[0092] 1. The A, B and C lines of three-phase electricity can be directly connected to DBQ;

[0093] 2. Output a constant DC power of about 20V to drive the protection relay (BHJ).

[0094] Therefore, the model can be constructed as follows Figure 3 The methods shown are equivalent replacements.

[0095] (3) Traffic signal machine model (basic device combination circuit):

[0096] The basic colors of railway signal lights are red, yellow, and green; the auxiliary colors are blue, white, and purple (for turnout indicators). The railway signal light source is white light produced by incandescent lamps. The functions of signal lights are as follows: red light is a stop signal, yellow light is a warning or deceleration signal, green light is a signal to run at a specified speed, blue light is used as a shunting prohibition signal, white light is used as a shunting permission signal, and purple is used as a turnout indicator to indicate that the turnout is open in the straight direction.

[0097] Luminescence principle:

[0098] The light emitting principle of LED bulbs is the use of light emitting diodes.

[0099] The principle of incandescent lamp light is that when current passes through a resistor, the current does work and consumes electrical energy, generating heat, which heats the filament to an incandescent state.

[0100] The terminal voltage of the color light signal bulb is rated at 12V and the rated power is 25W.

[0101] Such as train signal 10.2 ~ 11.4V; shunting signal 9 ~ 11.4V; permission signal 7.8 ~ 10.2V.

[0102] (4) Switch machine model

[0103] A switch is a device used in railway transportation. It is usually installed at places where tracks cross or fork, allowing trains to enter another track. Its main function is to ensure that trains can travel smoothly to their destinations and avoid accidents and congestion. A switch is mainly composed of motors, switches, sensors, controllers and other components. It receives signals and instructions through the controller and converts them into motor action commands.

[0104] Principle description:

[0105] The starting circuit sends 380V AC power to the three-phase motor of the switch machine. The indicating circuit is the circuit that makes the corresponding indicating relay pick up. The circuit of the outdoor part is that the three-phase power continues to be sent to the inside of the switch machine through the cable box, and then the contacts of the automatic switch are connected to the three-phase AC motor for rotation. The essence of the starting circuit of the switch machine is to connect the circuit that turns the motor in different directions. When the motor rotates, the fourth row of contact seats will also be brought over and connected. At this time, the 2DQJ will change the connection phase sequence of the three-phase AC motor after the pole is turned, so that the demand of operating the turnout to the opposite position at any time can be realized.

[0106] Turnout rotation limit:

[0107] 1. Section locking: When there is a car in the switch section, the switch should not be switched.

[0108] 2. Approach locking: When the approach is in the locked state, the switches on the approach should no longer be switched.

[0109] 3. After the switch start circuit has been activated, if the vehicle subsequently enters the switch section, it should be ensured that the switch mechanism can continue to switch to the end and not stop due to the restriction of (1) above.

[0110] 4. After the turnout starting circuit is activated, if the motor circuit is blocked due to poor contact of the automatic switch contactor of the switch machine or poor contact between the commutator and the brush of the motor, the starting circuit should automatically stop working and recover to ensure that the turnout will not switch again.

[0111] 5. In order to facilitate maintenance and testing, and to enable the turnout to return to its original position when an obstacle is sandwiched between the point rail and the main rail, causing the turnout to fail to turn to the bottom, it must be ensured that no matter what position the turnout is turned to, it can be turned back by manual operation at any time.

[0112] 6. After the turnout is switched, the circuit of the motor should be automatically cut off.

[0113] Example 1: ZD6 series switch machine: DC switch machine

[0114] Working current: ≤2.0A.

[0115] Rated voltage: DC 160V.

[0116] 2. S700K type switch machine: AC switch machine, powered by three-phase AC power supply or single-phase AC power supply. Rated voltage 380V.

[0117] Working current: Normal current is 2A, maximum starting current can reach 6A.

[0118] Rated voltage: The control voltage is 220V and the control frequency is 50Hz.

[0119] ZYJ7 type switch machine: electro-hydraulic switch machine

[0120] Rated voltage: DC160V

[0121] Rated conversion force: ≥54000N

[0122] Action time: ≤5s (4 seconds for switch switching, 2 seconds for locking)

[0123] Normal operating current: ≤1.8A

[0124] (5) Isolation Transformer Model

[0125] An isolation transformer is a special transformer that achieves electrical isolation and voltage conversion by electrically isolating the input and output. The main components of an isolation transformer include input windings, output windings, and magnetic cores. There is no electrical connection between the input winding and the output winding, but electrical isolation is achieved through the interaction of the magnetic field of the magnetic core. The number of turns of the input winding and the output winding is different, so voltage conversion can be achieved between the input voltage and the output voltage. The main function of the isolation transformer is to achieve electrical isolation and voltage conversion. It can be used for safety protection of electrical equipment, signal isolation, interference suppression, etc.

[0126] Such as isolation transformer BXG-35:

[0127] The electrical performance of the transformer shall comply with the requirements in Table 2:

[0128] Table 2 Transformer electrical characteristics

[0129]

[0130] When the primary side of the transformer is 220V, the rated voltage between the terminals on the secondary side is shown in Table 3 below:

[0131] Table 3 Transformer rated voltage

[0132]

[0133] 1. No-load characteristics

[0134] When the secondary winding of the transformer is open-circuited and the rated voltage at the rated frequency is applied to the primary winding, the effective value of the no-load current shall comply with the provisions of Table 1, and the effective value of the voltage between the secondary terminals shall be the rated value, and the error shall not be greater than +5% of the rated value.

[0135] 2. Load characteristics

[0136] Under rated load conditions, the output voltage between the secondary terminals of the transformer should not be less than 90% of the rated value.

[0137] 3. Efficiency

[0138] Under rated input voltage and output voltage conditions, the transformer efficiency should not be less than 85%.

[0139] 4. Insulation resistance

[0140] a) Under the standard atmospheric conditions of the test, the resistance between the primary and secondary windings and between the windings and the core should be no less than 1000MΩ.

[0141] b) The wet insulation resistance should not be less than 1.5MΩ.

[0142] 5. Insulation withstand voltage

[0143] When the atmospheric pressure is not less than 89.8kPa (the altitude does not exceed 1000m), the transformer windings and the windings to the core should be able to withstand the AC sine wave 50Hz, effective value 2000V test voltage, lasting 1min without breakdown or flashover phenomenon, and the leakage current should not be greater than 10mA. The test voltage value of the repeated test is 75% of the original test voltage value.

[0144] (6) Power supply model

[0145] Railway signal power refers to the power provided to ensure the normal operation of the railway signal system. Its main function is to provide stable and reliable power for signal equipment to ensure that the signal equipment can function accurately. The voltage, current and frequency parameters of the railway signal power supply need to comply with the standards and railway industry standards to ensure the normal operation of the signal system.

[0146] According to the circuit requirements, select the power supply type including direct current (DC) and alternating current (AC). Select appropriate components to represent the power supply. In the power supply model, determine the parameters such as the voltage value, current value and internal resistance value of the power supply. The complex power supply circuit can be simplified into an equivalent voltage source or current source.

[0147] 1. DC power supply

[0148] DC power supply refers to the power supply that provides DC power for railway signal systems. The output voltage of DC power supply is generally 24V, 48V, 60V, 110V, etc., and the current is generally between tens of amperes and hundreds of amperes.

[0149] 2. AC power supply

[0150] AC power supply refers to the power supply that provides AC power for railway signal systems. The output voltage of AC power supply is generally 220V, 380V, etc., and the current is generally between tens of amperes and hundreds of amperes.

[0151] The voltage parameters of the power supply are determined according to the terminal markings in the drawing, such as: KZ, KF (24V), DJZ, DJF (220V), XJZ, XJF (220V), AC-380-A, AC-380-B, AC-380-C (380V), etc.

[0152] (7) Resistance model

[0153] Resistor types include fixed resistors, variable resistors, and sensitive resistors. The resistor value is determined according to the specific model of the device and instantiated into the circuit diagram. The resistance value, power, and accuracy level of the resistor are determined. The resistor model can be simplified, such as merging multiple resistors into an equivalent resistor.

[0154] Determine according to the resistor model marked on the drawing, such as: RXYC-75 / 1KΩ.

[0155] (8) Capacitor model

[0156] According to the circuit requirements, determine whether the capacitor is an electrolytic capacitor, ceramic capacitor, or film capacitor. Different types of capacitors have different electrical characteristics. Capacitance is composed of two conductors. In essence, it is a measure of the ability of two conductors to store charge under a certain voltage. There is a certain amount of capacitance between any two conductors. The capacitance C can be simply defined as: the ratio of the amount of charge stored on a single conductor (Q) to the voltage between the conductors (V), C = Q / V.

[0157] The rated voltage of the capacitor, each capacitor will be marked with the insulation withstand voltage, the capacitance value has a voltage drop effect so it is generally 1.5-2 times higher than the rated voltage. For example, if the rated voltage of a capacitor is 10V, its capacitance will be attenuated when used at 10V. It can be used at 5V. The recommended working voltage is half of the rated voltage.

[0158] In the capacitor model, the parameters of the capacitor, such as the capacity, withstand voltage, polarity, etc., are determined. The capacitor model can be simplified by combining multiple capacitors into one equivalent capacitor.

[0159] For example, the compensation capacitor of the station coding section:

[0160] 80μF (microfarad) capacitors are used in track sections with carrier frequencies of 1700HZ or 2000HZ;

[0161] The 60μF capacitor is used in track sections with a carrier frequency of 2300HZ or 2600HZ.

[0162] Interval blocking partition compensation capacitor:

[0163] 55μF capacitor is used for blocking partition with carrier frequency of 1700HZ;

[0164] 50μF capacitor is used for blocking partition with carrier frequency of 2000HZ;

[0165] 46μF capacitor is used for blocking partition with carrier frequency of 2300HZ;

[0166] The 40μF capacitor is used for blocking partitions with a carrier frequency of 2600HZ.

[0167] (9) Switch model

[0168] According to the requirements of the circuit diagram, establish the connection relationship between the switch and other components to ensure that the connection is correct and reasonable. Determine the type of switch: mechanical switch, relay, etc. Different types of switches have different electrical characteristics and action mechanisms. A switch is an electronic component that opens a circuit, interrupts the current, or allows it to flow to other circuits. The "closed" contact means that the electronic contact is conductive and allows current to flow; the "open" switch means that the electronic contact is not conductive and forms an open circuit, and does not allow current to flow.

[0169] (10) Fuse model

[0170] Railway signal equipment electronic fuse, relates to an overcurrent protector for railway signal equipment. It consists of a housing, a detection circuit, an alarm indication circuit, and a power supply circuit. If the current flowing through the detected line is within the rated value, the protected circuit is disconnected. In the model, its action characteristics need to be considered, that is, when the overcurrent reaches a certain value, the state of the fuse changes.

[0171] Determine the type of fuse. Different types of fuses have different protection characteristics and operating characteristics. Determine the fuse's rated current value, breaking capacity, voltage level and other specification parameters.

[0172] (11) Three-phase motor model

[0173] Determine the type of motor. Different types of motors have different working principles and electrical characteristics. Determine the rated voltage, rated current, rated power and other parameters of the motor. Three-phase AC voltage, three-phase voltage value: 380V.

[0174] (12) Wire model

[0175] Wires are components that connect components. The resistance of wires is ignored in the model.

[0176] (13) Alternating current model

[0177] Three-phase alternating current is a combination of three-phase symmetrical sinusoidal alternating currents with a phase difference of 120 degrees. It is generated by three symmetrical windings of a three-phase generator. Each winding and its external circuit are called A phase, and the combination of A, B and C is called a three-phase system. They are usually powered by three-phase three-wire and three-phase four-wire systems, that is, triangle connection and star connection. The phase voltage is 220V and the line voltage is 381 (approximate value).

[0178] Single-phase AC power is usually single-phase two-wire, which means it consists of only one phase line (L) and one neutral line (N). These two lines are used to obtain 220V single-phase voltage to power electrical equipment.

[0179] (14) Orbital model

[0180] Track circuit is the basic equipment for railway signal automatic control. Track circuit can automatically detect the position of trains and vehicles, control the display of signal machines, and transmit ground signals to locomotives through track circuit, so as to control the operation of trains. Track circuit is composed of two steel rails of railway lines as conductors, with both ends electrically insulated or electrically divided, and connected to power transmission and receiving equipment.

[0181] When the two rails are intact and no vehicle is occupying them (the track circuit is idle), the current passes through the two rails and the track relay, causing the track relay to be attracted and the front contact closure signal to be open. When a train occupies the track circuit, the current passes through the wheelset of the locomotive vehicle, and the track circuit is shunted. Since the resistance of the wheelset is much smaller than that of the track relay, the output current of the power supply is significantly increased, and the voltage drop on the current limiting resistor increases accordingly. The voltage between the two rails decreases, and the current flowing through the track relay is reduced to its drop value, causing the track relay to drop, and the rear contact closure signal is closed. At the same time, when the track circuit is broken or disconnected, the track relay will also drop.

[0182] For example, the composition of 25Hz track circuit equipment:

[0183] 1. The equipment at the power transmission end consists of: power transmission choke transformer BE25, track transformer BG25, resistor R0, fuse RD1, and fuse RD2.

[0184] 2. The equipment at the power receiving end consists of: power receiving choke transformer BE25, track transformer BG25, resistor R0, insurance RD1, lightning protection FB, protection box FH, 25HZ track relay GJ (JRJC1-70 / 240).

[0185] 25Hz phase sensitive track circuit characteristics:

[0186] 1. The effective voltage on the track coil of the track relay should be ≥15V, and the track voltage phase angle should lag behind the local voltage phase angle by 90±30°. The effective voltage at the receiving end of the JXW-25 microelectronic phase-sensitive track circuit receiver should be ≥16V, the allowable misalignment angle should be within ±30°, and the DC voltage output should be 20V~30V.

[0187] 2. Equal resistance lines should be used from the choke transformers at the power supply and receiving ends of the track circuit to the rails, and the wiring resistance should not be greater than 0.1Ω.

[0188] 3. The connection resistance from the track transformer to the choke transformer at the power supply and receiving ends of the track circuit shall not exceed 0.3Ω.

[0189] 4. The allowable voltage drop of the cable from the track circuit power panel to the primary side of the track transformer at the power transmission end is 30V. The cable resistance between the track relay and the track transformer is not more than 150Ω.

[0190] 5. The resistance values ​​of the current-limiting resistors RX and RS at the power supply and receiving ends of the track circuit should be fixed according to the values ​​given in the reference adjustment table in the atlas and shall not be adjusted down.

[0191] 6. In the coded section, when a 0.06Ω standard shunt resistor line is used for shunting at the locomotive signal input end, the minimum short-circuit current requirement for the actuating locomotive signal shall be met (for ZPW-2000A type, when a 0.15Ω standard shunt resistor line is used for shunting, 1700, 2000, 2300Hz ≥ 500mA, 2600Hz ≥ 450mA).

[0192] 7. The 25Hz power supply panel outputs a track voltage of 220±6.6V, a local voltage of 110±3.3V, and a local voltage phase angle that is 90°±1° ahead of the track voltage phase angle. The output JXW-25 DC voltage should be 24(1±15%)V.

[0193] 8. Applicable to the track circuits in stations and forecast sections of AC electrified traction sections where the total continuous traction current in the rails is ≤800A and the unbalanced current in the rails is ≤60A.

[0194] like Figure 1 As shown, in step S200, a static model of the signal relay circuit of the entire station is constructed based on the simulation model library and the digital data of the station signal drawings.

[0195] As mentioned above, after the basic simulation model library of equipment has been established, the construction process of the dynamic simulation model is equivalent to connecting the equipment involved in the drawing through wiring according to the drawing data, and it is necessary to analyze and calculate the circuit according to the connection relationship and electrical characteristics of the equipment, and solve the current, voltage and other values ​​of each node of the circuit, so as to know the overall operation status of the circuit, that is, the process of circuit simulation. After the circuit simulation model is built, it can be used for circuit analysis and circuit logic verification.

[0196] Railway signal two-dimensional drawings cannot be directly read and used by computer programs. In this embodiment, the designed two-dimensional drawings (or as-built drawings) are used as system input, and the digital processing module completes the digital processing, converting the drawing data into a data structure form that can be directly used by the computer, and storing it in the drawing data digital library. The reverse digitization of drawing data mainly includes two key steps: obtaining the original drawing data and analyzing and storing the data.

[0197] (1) Obtaining original drawing data

[0198] The outdoor drawing data mainly includes the signal equipment layout diagram and the relevant data in the two-line cable route diagram. The key data is imported into the system after manually filling out the EXCEL table according to the drawings.

[0199] Indoor drawing data mainly includes data related to station interlocking, coding, section blocking, special combination circuits, etc., including layout diagrams of various cabinet equipment, wiring diagrams of various cabinet sides, internal wiring diagrams of various combinations, power wiring diagrams, etc. These drawings are all forms of various types. Taking coding as an example, coding indoor cabinets are mainly divided into three types: coding frequency shift cabinets, coding integrated cabinets, and coding combination cabinets. The frequency shift cabinets are mainly equipped with coding transmitters, the integrated cabinets are mainly equipped with lightning protection equipment for the coding section, indoor isolation equipment, and transmission matching lightning protection units, etc. The combination cabinets are mainly used to place relays used in coding circuits.

[0200] CAD drawings are used as input, and computer technology is used to complete tasks such as sub-image splitting, sub-image filtering, and sub-image original data extraction. Finally, the tables in such drawings are converted into Excel tables (memory form) that are easy to interpret and calculate. The Excel table structure is exactly the same as the table in the drawing.

[0201] (2) Data analysis and storage

[0202] As the tables in the drawings are fixed in format and limited in number, the characteristics of the same table type are manually analyzed and extracted, and the feature matching algorithm is used to match the original data Excel table for data parsing. At the same time, each character in the drawing table has a specific meaning. The completion rules for its complete meaning are extracted according to the drawing design habits / standards, and all the data in the table are given specific meanings. For example, all terminal characters are completed with the three-level complete meaning of "cabinet name-cabinet layer-terminal". For example, the data "5" is written on the 01-3 terminal table of cabinet 11 on the 2nd floor. The algorithm can fully parse "05" into "11-201-5".

[0203] According to the characteristics of the signal system, a total of 8 levels of digital drawing data structure are designed, including "station -> station / section -> interlocking / coding / blocking -> cabinet -> cabinet layer -> side / interior -> equipment -> terminal". Finally, the original drawing data is converted into structured data that can be directly interpreted and used by computer programs, and the inclusion and pointing relationship between data is established to realize the reverse digitization of signal drawings. Finally, the digital drawing data is stored in the database for direct access and data management in subsequent links.

[0204] Next, referring to the installation equipment and wiring work in the actual construction, based on the digital data of the station's own drawings, using the static model construction algorithm of the entire station relay circuit, the software automatically instantiates all the indoor equipment and cabinets related to the station's signal circuits, and instantiates the controlled trackside equipment such as signal machines, switch machines, and track circuits. Then, the indoor and outdoor wiring is instantiated, and the simulation power supply is mounted. The connection between indoor and outdoor signal equipment is established to build a static model of the entire station signal relay circuit based on the drawing data. However, because the circuit analysis technology is not added, the static model cannot be run. Figure 4 .

[0205] The dynamic simulation model of the entire station has constructed the static circuit connection relationship between each device. According to the digital extraction of the drawings, the obtained devices and terminals are instantiated to check the duplicate lines and loops, and finally the static circuit model is generated. Taking the interlocking combination cabinet as an example, the drawing data object is instantiated into a model object in the following order:

[0206] 1. Obtain the number of interlocking combination cabinets from the digital structure of the whole station drawing. According to the digital structure data, instantiate the basic equipment models into objects one by one, and assign them corresponding names, number of layers and other basic information to form a combination cabinet model that is consistent with the number of interlocking combination cabinets designed in the drawing. At this time, the combination cabinet model object is in an empty cabinet state.

[0207] 2. Traverse the combination cabinets, initialize the side terminal block information of each layer of each combination cabinet, set the contact points of each side terminal, and bind the side terminal block model with the corresponding integrated cabinet after initialization.

[0208] 3. According to the combination type of each layer of the combination cabinet, check the corresponding combination internal table to determine the category and model of the equipment contained therein, and create equipment model objects such as relays, circuit breakers, and wires at each position.

[0209] like Figure 1 As shown, in step S300, according to the input driving conditions of various relay circuits, the static model of the signal relay circuit of the entire station is dynamically refreshed based on the dynamic refresh technology of the simulation model state, and the collection information of various relay circuits and the status information of components are output.

[0210] After building the dynamic simulation model of the entire station signal equipment, through dynamic simulation, the equipment drive state is changed in conjunction with test cases or artificial scene settings, so that the dynamic simulation model runs according to the real logic to find circuit design wiring problems or operation logic problems. The dynamic refresh technology of the simulation model state is the "engine" that enables the static model to move, and is the core technology for building the dynamic simulation model of the entire station signal circuit.

[0211] (1) Basic principles of circuit analysis

[0212] 1) Recursive algorithm

[0213] Existing research mostly uses recursive algorithms to realize dynamic simulation of signal relay circuits. Based on graph theory, it abstracts the circuit into a graph form, and uses the electrical connection point of each component as a node of the graph structure. It combines the depth-first search and breadth-first search algorithms to realize the circuit conduction path search, and then determine the state of the circuit. However, recursive path finding has certain limitations in application. On the one hand, for complex circuits, recursive algorithms are difficult to solve problems. For example, in the case of multi-branch parallel branches or short circuits, it is impossible to completely select the path or find errors. On the other hand, the recursive algorithm searches each path of the circuit and cannot calculate the real-time voltage and current of each device, which limits the subsequent expansion of applications. Recursive algorithms are not suitable for this topic.

[0214] 2) Improved Node Algorithm (MNA)

[0215] The Modified Node Algorithm (MNA) is a mature and general circuit simulation algorithm that can solve the real-time voltage and current of each device in the circuit. MNA is based on Kirchhoff's Current Law (KCL), Kirchhoff's Voltage Law (KVL) and Ohm's Law. The KCL law means that the algebraic sum of the currents of all branches connected to the same node in the circuit is zero, and the KVL law means that the algebraic sum of the branch voltages of each loop in the circuit is zero. According to the law, an equivalent set of equations for the actual circuit is established, and then the equations are solved. According to the MNA method, a set of equations can be established for any circuit. The general form of the equations formed by the MNA method is:

[0216]

[0217] Where Y is the admittance matrix, B, C and D represent the contributions of the loop branch equations, and Si and Sv represent the node currents and the voltages of the loop branches.

[0218] (2) Dynamic refresh technology of the whole station signal circuit simulation model state

[0219] Signal relay circuits are all conventional analog circuits, so this study uses mature and universal analog circuit simulation technology to simulate and analyze signal relay circuits according to actual electrical characteristics, and uses the modified contact algorithm (MNA) to solve the real-time voltage and current of each device in the circuit, thereby determining the real-time status of the signal circuit and the device. Figure 5 The specific steps include:

[0220] Step a, obtaining circuit data from the instantiated static model of the whole station signal circuit.

[0221] Step b, analyze the circuit and generate a matrix.

[0222] There are three main methods based on circuit theory: Kirchhoff's voltage law (KVL), Kirchhoff's current law (KCL), and branch constitutive equations.

[0223] MNA is used to include only passive components. Active components, independent voltage sources, and current sources can be written in the form of matrix equations: [A] · [x] = [z]

[0224] For a circuit with N nodes and M independent voltage sources:

[0225] The matrix dimension of the A matrix is ​​(N+M)×(N+M), and it only contains known quantities; the N×N part is in the upper left corner of the matrix and satisfies: it only contains passive components, grounded components only appear on the diagonal, and ungrounded components appear both on the diagonal and in other positions of the matrix; the rest of the A matrix outside the N*N part only contains 1, -1, 0, depending on the independent voltage source and current source at the corresponding position;

[0226] The x matrix is ​​a (N+M)×1 vector containing unknown quantities, including node voltages and currents flowing into the voltage source. The upper N elements are the node voltages, and the lower M elements are the currents flowing into the voltage source.

[0227] The z matrix is ​​a (N+M)×1 vector that contains only known quantities. The upper N elements are independent current sources in the circuit, and the lower M elements are independent voltage sources in the circuit.

[0228] The circuit is solved by matrix operations: [x] = [A] - 1·[z].

[0229] For example, a common one-port linear element, assuming that the branch where the one-port element is located is k, the voltage and current are associated with the reference direction s→t, and the impedance element is:

[0230] Assume the element admittance is y, and the branch constraint equation is:

[0231]

[0232] where i k is the branch current where the component is located.

[0233] Arrange the above formula to get:

[0234]

[0235] The corresponding MNA matrix form is:

[0236]

[0237] Step c, update the current status of the components in the circuit to the matrix, such as whether a relay is currently connected at the front contact or the rear contact:

[0238] Traverse all the components in the netlist. Every time a component is encountered, the contribution value of the corresponding type of component is added to the corresponding sub-matrix. At the end of the traversal, each sub-matrix has the correct value, thus directly generating a set of equations; the contribution value of each component is a constant, and the contribution value is compiled into a table for query, which is also called the "tabular method".

[0239] Step d, solve the matrix and calculate the real-time voltage and current of each device in the circuit:

[0240] The LU decomposition method is used to solve the matrix. The full name is Lower-Upper decomposition. LU decomposition is a method of decomposing a matrix into the product of a lower triangular matrix L and an upper triangular matrix U. This method is particularly effective in solving linear equations because it allows solutions to be found efficiently through forward substitution and back substitution processes;

[0241] The basic idea of ​​LU decomposition:

[0242] Given a square matrix A (in MNA, this is usually a coefficient matrix based on circuit elements and connections), the goal of LU decomposition is to find two matrices L and U such that A = LU. Among them, L is a lower triangular matrix whose elements on the diagonal are all 1 (or can be non-zero, but are usually made 1 by row transformation to simplify calculation), and U is an upper triangular matrix.

[0243] The specific steps of LU decomposition are as follows:

[0244] Gaussian elimination: First, use Gaussian elimination or Gaussian elimination with partial pivots to convert the matrix A into an upper triangular form. In this process, each step eliminates the elements at the bottom of the matrix by multiplying it by an elementary row transformation matrix. These row transformations are accumulated to form an inverse matrix L of the lower triangular matrix L. -1 ;

[0245] Record the transformations: While converting A to upper triangular form, record the row transformations at each step so that L can be constructed, which is obtained by applying the same sequence of row transformations to the identity matrix I;

[0246] Form U: After all rows are transformed, the matrix A will become an upper triangular matrix, which is U;

[0247] Solution: With L and U, solve the linear equation system Ax = b through the following two steps:

[0248] Forward substitution: First solve Ly = b to find y, which is done by forward substitution because L is lower triangular;

[0249] Back Substitution: We then solve Ux=y to find x, which is done by back substitution since U is upper triangular.

[0250] Step e, determining the state of the component according to the real-time voltage and current of the device and the dynamic characteristics of the device electrical model.

[0251] For example, the dynamic characteristics are determined according to the relay model, such as JWXC-1700:

[0252] The electrical parameters are as follows:

[0253] Rated voltage: DC 24V;

[0254] Rated current: 10A;

[0255] Working value: no more than DC16.8V;

[0256] Release value: not less than DC3.4V;

[0257] Reverse working value: no more than DC18.4V;

[0258] Coil resistance: single coil 850Ω, 2 sets of coils total 1700Ω;

[0259] The action logic is as follows:

[0260] When the excitation coil is connected to a 24V DC power supply, the relay contacts are excited and attracted; when the coil is de-energized, the contacts fall. This relay is a stepless relay and can work when current flows in both directions.

[0261] Step f, refreshes steps c, d, and e at a fixed period or when receiving an external drive instruction.

[0262] In addition, in order to ensure the operating efficiency of the dynamic simulation model of the entire station signal circuit in large-scale stations, the antagonistic components are equivalently simplified according to the correlation between various signal circuits and the electrical characteristics of signal equipment, and the timing relationship of state changes between various circuits is considered. Based on the improved contact algorithm (MNA), multi-threading technology is comprehensively utilized to improve the state refresh response speed of the dynamic simulation model.

[0263] The equivalent simplification of antagonistic components mainly includes the following contents:

[0264] (1) Relay components were simplified. The coil part, which originally relied on inductance design, later used a software algorithm timer to simulate the delay effect and reduce the MNA matrix size and iteration number.

[0265] (2) In specific application scenarios, AC circuits are equivalent to DC circuits, such as in a relatively stable environment like inside a switch machine.

[0266] Based on the improved joint algorithm (MNA), the contents of comprehensive use of multi-threading technology are as follows:

[0267] 1. Optimize the MNA algorithm

[0268] MNA algorithm optimization:

[0269] Equation compression: Reduce redundant equations and variables in the MNA equation group, compress the equation size through circuit analysis and sparse matrix technology, and thus improve the solution efficiency.

[0270] Preprocessing: Preprocess the circuit, such as node reordering, branch reordering, etc., to optimize the bandwidth and sparsity of the matrix and reduce the computational complexity.

[0271] High-precision solver: Use efficient numerical solvers (such as iterative solvers or direct solvers) to solve the MNA equations to ensure a balance between solution speed and accuracy.

[0272] 2. Introducing multithreading technology

[0273] Multi-threaded design:

[0274] Task division: Divide the MNA solution process into multiple independent or parallel tasks, such as circuit matrix construction, solver initialization, and each step of iterative solution calculation.

[0275] Thread management: Use OpenMP to manage these threads, including thread creation, scheduling, synchronization, and destruction.

[0276] Parallelization strategy:

[0277] Data parallelism: For data parts that can be processed in parallel (such as matrix multiplication and addition, etc.), use multi-threaded parallel computing to speed up data processing.

[0278] Task parallelism: Different tasks in the entire solution process are assigned to different threads or thread groups for parallel execution, such as simulating different parts of a circuit at the same time.

[0279] 3. State refresh and dynamic simulation

[0280] Condition Monitoring:

[0281] Real-time status detection: Detect the circuit status (such as voltage, current, etc.) in real time during the simulation process, and quickly obtain and update the status information through a multi-threaded mechanism.

[0282] Dynamic feedback: Dynamically adjust simulation parameters or models according to changes in circuit status to achieve more accurate simulation results.

[0283] Optimize response speed:

[0284] Cache strategy: Use the cache mechanism to store and reuse intermediate calculation results, reduce repeated calculations, and improve response speed.

[0285] Asynchronous processing: For time-consuming computing tasks, asynchronous processing is adopted. The background thread completes the calculation without affecting the execution of the main thread, and notifies the main thread of the results.

[0286] The present invention establishes a simulation model library with electrical parameters for basic signal equipment such as relays, wires, power supplies, transformers, signal machines, switch machines, and tracks, and adopts SPICE-based circuit simulation technology, combined with digital data of drawings and electrical simulation model library of basic signal equipment, to instantiate and construct a dynamic simulation subsystem of the whole-station signal relay circuit driven by both data and models, and the simulation subsystem is consistent with the actual operation on site. Based on the constructed dynamic simulation model of the whole-station signal equipment, the correctness of the basic data of the drawings and the correctness verification of the circuit operation scenario can be further realized.

[0287] Corresponding to the above-disclosed method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism, the embodiment of the present invention further discloses a system for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism, such as Figure 6 As shown, it specifically includes:

[0288] A model library construction module is used to construct a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information;

[0289] A static model building module, used to build a static model of the signal relay circuit of the entire station based on the simulation model library and the digital data of the station signal drawings;

[0290] The dynamic refresh module is used to dynamically refresh the static model of the signal relay circuit of the entire station according to the input driving conditions of various relay circuits based on the dynamic refresh technology of the simulation model state, and output the collection information of various relay circuits and the status information of components.

[0291] It should be noted that for the detailed description of a data and mechanism dual-driven railway signal circuit dynamic simulation model construction system provided in an embodiment of the present invention, reference can be made to the relevant description of a data and mechanism dual-driven railway signal circuit dynamic simulation model construction method provided in an embodiment of the present application, which will not be repeated here.

[0292] In addition, an embodiment of the present invention also provides an electronic device, comprising: a processor and a memory; the memory is used to store one or more program instructions; the processor is used to run one or more program instructions to execute the steps of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as described in any of the above items.

[0293] It should be noted that, for the detailed description of an electronic device provided in an embodiment of the present invention, reference can be made to the relevant description of a method for constructing a dynamic simulation model of a railway signal circuit driven by both data and mechanism provided in an embodiment of the present application, which will not be repeated here.

[0294] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as described in any of the above items are implemented.

[0295] It should be noted that, for the detailed description of a computer-readable storage medium provided in an embodiment of the present invention, reference can be made to the relevant description of a method for constructing a dynamic simulation model of a railway signal circuit driven by both data and mechanism provided in an embodiment of the present application, which will not be repeated here.

[0296] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.

[0297] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.

Claims

1. A method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism, characterized in that: The method comprises: Constructing a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information; Based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed; According to the input driving conditions of various relay circuits, the static model of the signal relay circuit of the entire station is dynamically refreshed based on the dynamic refresh technology of the simulation model state, and the collection information of various relay circuits and the status information of components are output.

2. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 1, characterized in that: Based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed, which specifically includes: Referring to the installation equipment and wiring work in actual construction, based on the digital data of the station's signal drawings, instantiate all the indoor equipment and cabinets related to the station's signal circuits, and instantiate the controlled trackside equipment including signal machines, switch machines, and track circuits. Then instantiate indoor and outdoor wiring, mount simulated power supplies, establish connections between indoor and outdoor signal equipment, and construct a static model of the entire station's signal relay circuit based on the drawing data, which is consistent with the operating logic of the actual signal system.

3. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 2, characterized in that: Based on the simulation model library and the digital data of the station signal drawings, a static model of the signal relay circuit of the entire station is constructed, which specifically includes: The designed two-dimensional drawings are digitized, and the drawing data is converted into a data structure form that can be directly used by the computer, and stored in the drawing data digitization library, and the inclusion and pointing relationship between the data is established.

4. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 1, characterized in that: Based on the dynamic refresh technology of simulation model status, the static model of the signal relay circuit of the whole station is dynamically refreshed, including: The dynamic refresh technology of simulation model state based on MNA algorithm is adopted to simulate and analyze the signal relay circuit according to the actual electrical characteristics. The real-time voltage and current of each device in the circuit are solved by MNA algorithm, and then the real-time state of the signal circuit and the device is determined.

5. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 4, characterized in that: The simulation model state dynamic refresh technology based on the MNA algorithm is adopted, which includes: Step a, obtaining circuit data from an instantiated static model of the whole-station signal circuit; Step b, analyze the circuit and generate the matrix: The MNA matrix form is: [A] · [x] = [z] For a circuit with N nodes and M independent voltage sources: The matrix dimension of the A matrix is ​​(N+M)×(N+M), and it only contains known quantities; the N×N part is in the upper left corner of the matrix and satisfies: it only contains passive components, grounded components only appear on the diagonal, and ungrounded components appear both on the diagonal and in other positions of the matrix; the rest of the A matrix outside the N*N part only contains 1, -1, 0, depending on the independent voltage source and current source at the corresponding position; The x matrix is ​​a (N+M)×1 vector containing unknown quantities, including node voltages and currents flowing into the voltage source. The upper N elements are the node voltages, and the lower M elements are the currents flowing into the voltage source. The z matrix is ​​a (N+M)×1 vector that contains only known quantities. The upper N elements are independent current sources in the circuit, and the lower M elements are independent voltage sources in the circuit. The circuit is solved by matrix operations: [x] = [A] - 1 · [z]; Step c, update the current status of the components in the circuit to the matrix: Traverse all the components in the netlist. Every time you encounter a component, add the contribution value of the corresponding type of component to the corresponding sub-matrix. At the end of the traversal, each sub-matrix has the correct value, thus directly generating a system of equations; the contribution value of each component is a constant, and the contribution value is compiled into a table for query; Step d, solve the matrix and calculate the real-time voltage and current of each device in the circuit: The LU decomposition method is used to solve the matrix. The LU decomposition is to decompose the matrix into the product of a lower triangular matrix L and an upper triangular matrix U; Step e, determining the state of the component according to the real-time voltage and current of the device and the dynamic characteristics of the device electrical model; Step f, refreshes steps c, d, and e at a fixed period or when receiving an external drive instruction.

6. A data and mechanism dual-driven railway signal circuit dynamic simulation model construction method as claimed in claim 5, characterized in that: The LU decomposition method is used to solve the matrix, including: Gaussian elimination: First, use Gaussian elimination or Gaussian elimination with partial pivots to convert the matrix A into an upper triangular form. In this process, each step eliminates the elements at the bottom of the matrix by multiplying it by an elementary row transformation matrix. These row transformations are accumulated to form an inverse matrix L of the lower triangular matrix L. -1 ; Record the transformations: While converting A to upper triangular form, record the row transformations at each step so that L can be constructed, which is obtained by applying the same sequence of row transformations to the identity matrix I; Form U: After all rows are transformed, the matrix A will become an upper triangular matrix, which is U; Solution: With L and U, solve the linear equation system Ax = b through the following two steps: Forward substitution: First solve Ly = b to find y, which is done by forward substitution because L is lower triangular; Back Substitution: We then solve Ux=y to find x, which is done by back substitution since U is upper triangular.

7. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 1, characterized in that: Based on the dynamic refresh technology of simulation model status, the static model of the signal relay circuit of the whole station is dynamically refreshed, which specifically includes: According to the correlation between various signal circuits and the electrical characteristics of signal equipment, the antagonistic components are simplified equivalently, and the timing relationship of state changes between various circuits is considered. Based on the MNA algorithm, multi-threading technology is comprehensively utilized to improve the state refresh response speed of the dynamic simulation model.

8. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 7, characterized in that: The antagonistic components are simplified equivalently, including: The relay components were simplified, and the software algorithm timer was used to simulate the delay effect for the coil part that originally relied on inductance design, reducing the MNA matrix size and the number of iterations; In certain application scenarios, AC circuits are used to replace DC circuits.

9. The method for constructing a railway signal circuit dynamic simulation model driven by both data and mechanism as claimed in claim 7, characterized in that: Considering the timing relationship of state changes between various circuits, based on the MNA algorithm, multi-threading technology is comprehensively used to improve the state refresh response speed of the dynamic simulation model, including: Optimize the MNA algorithm, including: Equation compression: Reduce redundant equations and variables in the MNA equation group, compress the equation scale through circuit analysis and sparse matrix technology, and improve solution efficiency; Preprocessing: Preprocess the circuit, including node reordering and branch reordering, to optimize the bandwidth and sparsity of the matrix and reduce the computational complexity; High-precision solver: Use efficient numerical solvers, including iterative solvers or direct solvers, to solve the MNA equations, ensuring a balance between solution speed and accuracy; Introducing multithreading technology, including: Multi-threaded design: Task division: Divide the MNA solution process into multiple independent or parallel tasks, including the construction of the circuit matrix, the initialization of the solver, and the calculation of each step of the iterative solution; Thread management: Use OpenMP to manage threads, including thread creation, scheduling, synchronization, and destruction; Parallelization strategy: Data parallelism: For data that can be processed in parallel, use multi-threaded parallel computing to speed up data processing; Task parallelism: Different tasks in the entire solution process are assigned to different threads or thread groups for parallel execution, including simulating different parts of the circuit at the same time; State refresh and dynamic simulation, including: Condition Monitoring: Real-time status detection: detect the circuit status in real time during the simulation process, and quickly obtain and update the status information through a multi-threaded mechanism; Dynamic feedback: Dynamically adjust simulation parameters or models according to changes in circuit status to achieve more accurate simulation results; Optimize response speed: Cache strategy: Use the cache mechanism to store and reuse intermediate calculation results, reduce repeated calculations, and improve response speed; Asynchronous processing: For time-consuming computing tasks, asynchronous processing is adopted. The background thread completes the calculation without affecting the execution of the main thread, and notifies the main thread of the results.

10. A data and mechanism dual-driven railway signal circuit dynamic simulation model construction system, characterized in that: The system comprises: A model library construction module is used to construct a signal basic equipment electrical simulation model library, wherein each equipment electrical model in the simulation model library includes physical parameters, static electrical parameters and dynamic characteristic information; A static model building module, used to build a static model of the signal relay circuit of the entire station based on the simulation model library and the digital data of the station signal drawings; The dynamic refresh module is used to dynamically refresh the static model of the signal relay circuit of the entire station according to the input driving conditions of various relay circuits based on the dynamic refresh technology of the simulation model state, and output the collection information of various relay circuits and the status information of components.