Frequently Asked Question

Video: 3.3.2.1. Electrical circuit partitioning
Last Updated 3 years ago


Press "Ctrl + F" to find the keyword of your interest.

If you wish to have a direct link access to the video timestamps, please follow these instructions.

Found this video helpful? Why not take the whole HIL Specialist course? A Certificate is waiting for you for free at HIL Academy.

Would you or your organization benefit from having these videos narrated in your native language? Contact us and let us know if you wish to contribute.

TRANSCRIPT

00:00:02

Hello everyone and welcome to our lesson on electrical circuit partitioning between cores.  

00:00:07

You will acquire knowledge about all the relevant components,  

00:00:10

and understand how and where to use each of them.Let's start with why we do electrical circuit  

00:00:16

partitioning. The motivation is to enable parallel computing of complex  

00:00:20

power electronics and power system models that usually contain a large number of switches.  

00:00:26

The basic partitioning algorithm is based on the detection of unconnected circuits.  

00:00:31

In this diagram, there are 3 separate unconnected circuits that will end up in three separate cores.  

00:00:37

This is because when Schematic Editor detects unconnected circuits,  

00:00:40

it assigns them automatically to separate cores. There is still the possibility to override this  

00:00:46

and group some parts of separate circuits in the same core, which will be explained later.  

00:00:54

Components used for Electrical circuit partitioning elements can be divided into  

00:00:58

three main groups: Ideal transformer based, Transmission line model-based core couplings,  

00:01:04

and Core marker components.  

00:01:09

IT coupling components are ideal transformers with a transfer ratio of one. They are  

00:01:14

used to partition the complete emulated power electronics circuit into multiple sub-circuits.  

00:01:19

Consequently, each sub-circuit is assigned and executed on a separate processing core.  

00:01:24

In addition, this ideal transformer block introduces a time delay of one simulation step  

00:01:29

between the coupling s sides, which is negligible for most practical systems. They are also  

00:01:35

asymmetrical which is emphasized by the red and green sides of the component icon. The red side of  

00:01:40

a coupling component is the current source side, while the green side is the voltage source side.  

00:01:49

IT coupling components can be single phase and multi-phase.  

00:01:53

You can find out more details about each type in the documentation link in the Materials tab.  

00:01:58

Depending on the position, IT core coupling elements can introduce instabilities in the  

00:02:03

circuit. In order to verify the stability of IT core coupling components a coupling stability  

00:02:08

analysis tool is available in Schematic Editor. You can enable this by clicking on Model, Model  

00:02:14

Settings, Circuit Solver settings, and then check the Enable coupling stability analysis checkbox.  

00:02:20

When coupling components are added to the circuit some topological conflicts can occur, as we  

00:02:26

covered in lesson 3.2.1 on topological conflicts. These conflicts are solved by adding snubber  

00:02:32

circuits in parallel with the coupling's current source and/or in series with the coupling's  

00:02:36

voltage source. Snubbers are embedded in coupling components. We will cover this in more detail in  

00:02:42

lesson 3.3.2.1.1 on Snubber parametrization.Now let's switch to TLM core couplings.  

00:02:51

TLM, or Transmission Line Model, core coupling components are based on transmission-line links.  

00:02:58

Similar to IT coupling components, they are used to partition the complete emulated power  

00:03:03

electronics circuit into multiple sub-circuits. A coupling component can be either capacitive  

00:03:08

or inductive. Core coupling elements can be single, three, four, or five phases.  

00:03:14

You can find out more about each type in the documentation links in the Materials tab.  

00:03:20

The main advantage of TLM couplings, compared to the ideal transformer-based coupling components,  

00:03:26

is that TLM couplings are symmetrical components. Both sides of the TLM couplings  

00:03:31

are voltage sources behind a resistance. Because of this property, TLM coupling rotation is not  

00:03:37

important and they will not introduce any topological conflict in the circuit. The main  

00:03:42

disadvantage is that they add some additional inductance or capacitance to the circuit.  

00:03:47

However, it is better to replace an existing inductor/capacitor with a  

00:03:51

TLM coupling in order to get better results. When it comes to TLM coupling components the  

00:03:56

bilinear discretization method is recommended since TLM coupling is based on this approach.  

00:04:02

But, if the TLM inductance or capacitance is relatively small, trapezoidal discretization  

00:04:07

can be used. TLM coupling is in general more robust than Ideal Transformer coupling.  

00:04:13

TLM coupling in combination with a bilinear or trapezoidal discretization method guaranties  

00:04:18

stability in most practical use cases, so there is no need for an additional stability analysis.  

00:04:25

There are five Component Properties available to parameterize the components:  

00:04:30

Coupling Type, input values for L or C, Embedded inductors/capacitors, TLM / Embedded components  

00:04:36

ratio, and Ratio. The coupling type can be either inductive or capacitive. According to  

00:04:42

the selected type, a parameter for the Inductor value or the Capacitor value is available.  

00:04:47

Based on these inputs, the TLM coupling behaves as an additional inductor/capacitor in the circuit.  

00:04:56

If Embedded inductors/capacitors is enabled, embedded inductors/capacitors  

00:05:00

are added to both sides of the coupling.If embedded components are added,  

00:05:04

it is necessary to specify how the impedance is divided between the TLM coupling and embedded  

00:05:10

components. That can be done using the TLM / Embedded components ratio and Ratio properties.  

00:05:17

If the 'Automatic' option is selected, the ratio is determined by the discretization method.  

00:05:22

For instance, if the bilinear discretization method is chosen,  

00:05:26

the coupling element will use around 20% of the impedance and rest will be divided equally  

00:05:32

between the TLM coupling embedded components. With the trapezoidal discretization method,  

00:05:37

less than 5% of the impedance is used by the coupling element, while the rest is equally  

00:05:43

divided between TLM embedded components. If the 'Manual' option is selected, the  

00:05:47

ratio can be explicitly set to meet the model's requirements. It must be a value between 0 and 1.

00:05:55

An existing inductor or capacitor can be replaced with a corresponding TLM coupling. In this case,  

00:06:01

the TLM coupling inductance/capacitance needs to be the same as the inductance/capacitance of the  

00:06:06

replaced element. If Embedded inductors/capacitors is enabled, the inductance/capacitance will be  

00:06:12

divided between TLM and embedded components. In that case, the best results are obtained. It is  

00:06:19

recommended to use TLM couplings in this way.TLM partitioning elements can also be single  

00:06:25

phase or multi-phase. In the Materials tab, you can find more about each type. 

00:06:31

As mentioned before, the basic partitioning algorithm is based on the detection of  

00:06:36

unconnected circuits. Each unconnected circuit is executed on a separate core.  

00:06:41

But there is component called a core marker which can connect separate cores into one core.  

00:06:45

This component has only one parameter which is Marker ID. Independent circuits,  

00:06:51

unconnected circuits, or circuits divided by a coupling component from the full schematic model  

00:06:56

are emulated on the same FPGA solver core if they share a core marker with the same Marker ID.  

00:07:02

Core markers are not mandatory in order to partition the model properly, but they can help  

00:07:07

you to save on core resources. You can find more details about core markers in the Materials tab.  

00:07:15

Now let s see how we can simulate some parts of the  

00:07:18

circuit in the same core using the example model.  

00:07:20

As you can see, we have three separate circuits which are all simulated on different FPGA cores.  

00:07:38

Now we will add core markers in these two cores. For this,  

00:07:42

let s make sure they share the same ID. Any name can be used for the ID, so let s use Id0.  

00:08:02

Now if we compile the model again, you can see that in this case the model fits into two cores.  

00:08:16

Each type of core coupling has its advantages and disadvantages.  

00:08:20

The ideal transformer (IT) coupling is simpler in structure, but can present a challenge with  

00:08:26

circuit placement and orientation. If not done optimally numerical instabilities can happen,  

00:08:32

such as arithmetic overflow, shown by the AO flag. Because of that, it's very important to  

00:08:38

know the orientation of the core coupling and if snubbers are needed to parametrize them correctly.  

00:08:44

Determining the position for the coupling component is crucial in order to preserve  

00:08:48

stability and accuracy of the simulation. In some cases, this step is trivial, while there  

00:08:54

are use cases when it is more challenging. Here are some general rules for coupling placement:  

00:09:00

IT Coupling elements should be placed in the model where the dynamics in signals are lower.  

00:09:05

Usually, these spots are next to capacitors or next to inductors.  

00:09:10

The red side of the coupling component represents the current source side of a coupling. This  

00:09:15

side should be rotated towards a slow changing voltage, usually a voltage source or capacitor.  

00:09:21

The green side of a coupling component represents the voltage source side of a coupling. This side  

00:09:27

should be rotated towards a slow changing current, usually, a current source or an inductor.  

00:09:33

These are general rules. It is not always possible to place coupling component in an ideal position.  

00:09:39

Power electronic circuits are highly dynamic. Each switch permutation  

00:09:43

can modify the topology in a way that a capacitive circuit becomes more inductive,  

00:09:48

therefore a circuit snubber might be needed.IT coupling placement is explained in detail  

00:09:53

in the link in the Materials tab. In this document, you will find more examples.  

00:09:59

The transmission line model (TLM) core coupling is more complex in structure, but is much more  

00:10:04

forgiving in terms of placement. There's no requirement for orientation or snubbers.  

00:10:10

However, these benefits don't come for free. The discretization type must be changed, which many  

00:10:16

times results in extra time slot utilization. More importantly, these couplings present a parasitic  

00:10:22

capacitance. The value of the capacitance is a function of the inductance and the selected  

00:10:27

simulation time step. The smaller the inductance set for the coupling, the bigger the parasitic  

00:10:32

capacitance added to the circuit. The bigger the time step, the bigger the capacitance.  

00:10:38

TLM coupling brings an additional inductor or capacitor in the circuit,  

00:10:42

according to the selected coupling type. Because of that,  

00:10:45

it is recommended to remove an existing inductor (or capacitor) from the circuit  

00:10:49

and then place a corresponding TLM coupling component at that spot.  

00:10:54

You can find more examples about TLM coupling placement in the link in the Materials tab.  

00:11:00

Empirically, the IT core coupling has shown to be more applicable in power electronics while the TLM  

00:11:07

core coupling finds its application better suited to microgrids and power systems. That being said,  

00:11:12

they should not be understood as separate solutions for these two application domains.  

00:11:17

In addition to the core coupling components that we ve already covered, there are some components  

00:11:22

that have embedded core couplings as well. For example, if we check transformer components,

00:11:37

you can see that next to the General tab is a Coupling tab.  

00:11:40

This shows that you are able to use embedded couplings inside of some other components.  

00:11:46

Now let's look at how an embedded coupling can be used in the single phase two winding transformer. 

00:11:56

There are two possible options for embedded coupling in the single phase two winding  

00:12:00

transformer: Ideal Transformer based coupling and TLM coupling. If Embedded coupling is set  

00:12:07

to Ideal Transformer, an Ideal Transformer based coupling will be placed between the two windings  

00:12:12

of the transformer. If Embedded coupling is set to TLM, a secondary winding inductor (L2) will  

00:12:18

be replaced with a TLM coupling component. The inductance will be divided between the coupling  

00:12:24

and the embedded inductors hidden in the TLM.The TLM to embedded inductors ratio can be  

00:12:29

determined by the compiler, but also it can be specified explicitly. If the  

00:12:34

Automatic option is selected, the ratio will be determined by the discretization method.  

00:12:39

If the Manual option is selected, the ratio can be explicitly set to meet your requirements.  

00:12:45

You can find the list of components that have embedded coupling options in the Materials tab.  

00:12:51

Now let s look at a practical example of when it is recommended to use IT core  

00:12:55

coupling and when it is better to use TLM coupling elements.  

00:13:00

The following example will illustrate some of the common circuit partitioning patterns.  

00:13:05

Let's enter the Example Explorer, choose grid-connected converter  

00:13:09

and three-phase back-to-back converter.As you can see there are two converters  

00:13:15

coupled through a large DC link capacitor. This circuit partition is necessary,  

00:13:20

since the overall converter weight is 6, and if we check the device table,  

00:13:31

we can see that the maximum converter weight for the chosen device configuration is 3 per core.  

00:13:37

There are two suitable positions for coupling. Those positions are either  

00:13:41

to the left side of the capacitor or the right side of capacitor,  

00:13:44

since the capacitor should change voltage slowly. The red, current, side of the  

00:13:48

coupling should be connected in parallel with the capacitor. Let's try both solutions,  

00:14:19

we can figure out that in both cases a topological conflict appears. As you can see the issue appears  

00:14:25

on the green side of the coupling when the inverter is in short-circuit mode.  

00:14:29

During regular work, when it is not of interest that converter works in short-circuit mode,  

00:14:34

this warning can be ignored. If we want to solve the warning,  

00:14:38

we can enable a dynamic resistive snubber on the voltage source side of the coupling component.  

00:14:44

Now let's switch to another example that demonstrates the use of IT core couplings as well.  

00:14:49

In order to find this example, let s navigate to electrical drives and then induction machine  

00:14:54

open loop in the Example Explorer.As you can see this example contains  

00:15:02

a three- phase rectifier with a weight of 3 and a three-phase inverter with a weight of 3.  

00:15:06

You can find the maximum converter weight in the device table for this device configuration;  

00:15:17

here we can see the weight is 3 per core. That means that we have to separate this  

00:15:22

model in two cores. Since IT couplings are better for Power Electronics applications,  

00:15:28

we will use them to separate this circuit. The red side of the coupling  

00:15:32

is placed towards the capacitor, as suggested previously in the lesson.  

00:15:38

The next example demonstrates a typical use of TLM couplings. As we explained,  

00:15:43

TLM couplings are mainly used in Power systems and microgrid applications. Let s look at two examples  

00:15:50

of the use of TLM couplings. The first example presents a simple microgrid system consisting of  

00:15:56

three battery components and the grid. In order to find this example, check Materials tab.  

00:16:03

In this example, generic microgrid components are used. If we try to  

00:16:07

compile this model without coupling, we can see that matrix memory is utilized over 100% .

00:16:23

Since this model should be coupled, the best place for the coupling placement is the RL section,

00:16:28

which has an embedded TLM coupling.

00:16:38

As you can see in this case it is not obvious where a good position for the IT coupling is.  

00:16:43

If you follow the general rules mentioned above for IT coupling placement,  

00:16:47

you can figure out that they do not apply to this example.  

00:16:51

For instance, if we put IT coupling between the Grid and RL section,  

00:16:55

the current side of the core coupling will be rotated towards the inductor in both cases,  

00:17:09

which is not recommended since it can cause a topological conflict.  

00:17:14

Here snubbers are needed and they must be parameterized,  

00:17:17

which can be tricky because of issues with instability.  

00:17:21

In cases where it is not so obvious where the best place for the IT core coupling component,  

00:17:25

the TLM couplings are the recommended solution. By using TLM couplings,  

00:17:30

this issue of coupling placement is avoided.The next example represents a power systems  

00:17:35

application. Let s open the Power Systems IEEE33 bus system example in the Example Explorer.  

00:17:47

As you can see this example is very complex, and it is not easy to find a  

00:17:51

suitable position for IT coupling, since the coupling orientation is important.  

00:17:56

In case you want to use IT couplings for this kind of application, you would need to add a snubber  

00:18:01

which will be difficult to parametrize. Also, an IT coupling can cause some instability which would  

00:18:07

be avoided by using TLM couplings. As you can see there are RL sections that represent a natural  

00:18:14

place for TLM couplings. For these reasons, in this example, inductive TLM couplings are used.  

00:18:21

Let's summarize what are the main advantages and disadvantages of each type of core coupling.  

00:18:29

When it comes to symmetry, IT couplings are asymmetrical while TLM couplings are symmetrical.  

00:18:35

Any discretization method can be applied for IT couplings, while bilinear or trapezoidal  

00:18:40

discretization method is recommended for TLM couplings. TLM couplings are straightforward  

00:18:46

to place, while IT couplings require some additional considerations for placement.  

00:18:51

Snubbers are characteristic for IT couplings, while in TLM core couplings there is no need  

00:18:56

for snubbers. TLM couplings inject parasitic impedance into the model,  

00:19:01

while for IT couplings that is not the case. IT couplings are more suitable for power electronics  

00:19:06

applications while TLM couplings are recommended for microgrid and power systems applications.  

00:19:13

In this lesson we covered electrical circuit partitions, as well as the main groups of core  

00:19:17

coupling components, their advantages, and disadvantages. In the following lessons,  

00:19:23

we will focus more on Signal Processing Circuit Partitioning and IT snubber parametrization.  

00:19:29

So, see you then. Thank you for watching!

Please Wait!

Please wait... it will take a second!