Distributed SLE (Systems of Linear Equations)

This subsection describes the specialized library "SLE" and the blocks included in this library. One of the examples of rational use of the library of SLE blocks is simulating electrical network elements.

A new feature of SimInTech is the concept of building multidomain numerical models – that is, models that include the description of subsystems of different classes (electrical networks, hydraulic networks, and control systems) within a single system of equations.

Real physical networks (electrical, hydraulic), as a rule, are described in the most general form in the form of an undirected graph, in the nodes of which the equations of current (flow) balance are solved, and in the edges the conductivity coefficients between the nodes are described. At the same time, when reducing the description of a complex technical object from an undirected graph to a scheme in input-output relations, it is necessary to take into account the fact that different subsystems are effectively simulated by different numerical methods. The scheme created by the user using a graphical editor should be as close as possible to the schematic diagram of the system being described – that is, externally the system should be described by an undirected graph, and internally it should be transformable to the input-output model.

In this subsection we will consider the methodology of assembling a set of blocks, reducing the description of physical networks on the example of electrical networks, to the description of the system in input-output relations, modeling and analysis of which is performed with the help of SimInTech control systems modeling subsystem.

Some new features were introduced in the control system modeling kernel for efficient implementation of electrical networks models: The presence of these blocks allowed to apply direct filling of matrix coefficients and to get rid of numerical calculation of the Jacobian, which was associated with multiple recalculation of the whole scheme. That is, within the framework of one model it became possible to simulate conventional input-output circuits using explicit integration methods in combination with specialized numerical schemes for power networks.
The possibility of creating non-directional group connections implies that one communication line can describe several topologically independent communication lines going in different directions. Specialized Bidirectional bus type blocks are provided to implement this feature. This block has one common input-output, to which a generalized communication line and several named configurable inputs or outputs are connected. Two similar blocks are connected between the communication line through common ports, and the secondary named ports are processed by the block sorting algorithm so that ports with the same name are directly connected to each other. An example of how these blocks are used to create generalized connections is shown in Figure 1, and Figure 2 shows an equivalent circuit without the use of non-directional connections:

Рисунок 1. Scheme of interconnection of blocks using non-directional group connections

Рисунок 2. A scheme topologically equivalent to a scheme using non-directional connections

Like any other communication lines, the SimInTech environment allows the use of generalized communication lines within submodels in blocks of type Submodel port and in blocks In memoryFrom memory. These blocks do not have separate run-objects, but only indicate the direction of connections.

A set of specialized blocks for direct work with systems of linear algebraic equations (SLE), allows you to specify for the scheme one or more independent named sparse linear systems of the following type: A·X=B, where A is the matrix of the system coefficients; X is the result vector; B is the vector of the right-hand sides.

The solution of SLE is performed according to the method described in [Тьюарсон Р. Разреженные матрицы. – М.: Мир, 1977. – 189 страниц], after all the blocks of setting coefficients have been processed. That is, these blocks allow anywhere in the circuit to set the coefficients and values of the right parts of a single SLE, as well as to derive the SLE solution from the previous step. This set of blocks includes 3 blocks: The block Linear equation number is a counter for the number of equations in a system with a given name. The block Coefficients of the linear equation specifies the coefficients and values of the right-hand side for the equations specified at its first input. The SLE Results block returns the output vector of the linear system calculation results with the specified name.

Using these blocks, as well as blocks for creating non-directional connections, it is possible to effectively describe physical networks within the input-output model, as well as to combine in one model the input-output representation of the model and various ways of representing the physical network (for example, the electrical network described within the single-frequency model in complex numbers and described using differential equations).

Let us consider (briefly) the method of reducing the description of electrical networks (as the simplest in description) using the method of nodal potentials [И. Влах, К. Сингхал, Машинные методы анализа и проектирования электронных схем, Радио и связь, 1988 г.; Чуа Л.О., Лин Пен-Мин, Машинный анализ электронных схем: Алгоритмы и вычислительные методы. – М.: Энергия, 1980 г.]. The nodal potential method is standard for solving electric network design problems and is used in specialized calculation programs such as SPICE. The advantages of this method include the absence of topological limitations, such as those inherent in the mesh current method.

For topologically complete description of electric networks within the framework of the nodal potential method the following types of elements should be present in the model: More complex objects can be constructed from these elementary objects and input-output blocks of the standard SimInTech block library. All blocks used to describe electrical networks in SimInTech (note from 2012.01.13: except for the relatively old “Electrical Machines” library) are submodels whose appearance is approximated to that of the corresponding elements in electrical diagrams.