# 7 Bond Graph Models for Electrical Systems

# 7.1 Overview

An electrical system may consist of components such as resistors, inductors, capacitors, transformers, and batteries/source. The generalized BG elements and relations apply to the analysis of dynamics of electrical systems and components in a similar way that the mechanical components were treated; i.e., they are analogous (see Table 3-1). In other words, electric charge is equivalent to the generalized displacement , electrical current to to the flow , and voltage to the effort . The inductor (with inductance ) is analogous to point mass and is represented by -element; the capacitor (with capacitance ) is analogous to a mechanical spring and is represented by -element; and resistor (with resistance ) is analogous to mechanical damper and is represented by -element. The generalized momentum or flux linkage is the integral of with respect to time. Therefore, we can write

Using the constitutive relations, for an -element we have or , and for a *C-*element we have or . Similarly, for an *R*-element we have or . The energy associated with storage elements can be written using Equations (3.7) and (3.8), or for elements *I* and *C*, as and , respectively. An advantage of the bond graph method is its analogous applicability to different domains using the common constitutive relations, as described above for electrical systems.

The analogy between mechanical and electrical systems can be summarized as follows:

- For a system with series-connected components, we have equal effort for mechanical and equal flow for electrical systems. For example, when a spring and a damper are connected in series, they experience the same force, and when a capacitor and a resistor are connected in series, they experience the same current.
- For a system with parallel-connected components, we have equal flow for mechanical and equal effort for electrical systems. For example, when a spring and a damper are connected in parallel, they experience the same velocity (or rate of displacement), and when a capacitor and a resistor are connected in parallel, they experience the same voltage.

In other words, the relations of efforts and flows are swapped according to the type of the physical system between mechanical and electrical systems.

Table 7-1 shows typical components for resistor/, capacitor/, Inductor/, Transformer/, Electric motor/.

-Element(resistor) |
-Element(capacitor) |
-Element(inductor) |
-Element(transformer) |
-Element(electric motor) |

# 7.2 Example: Sign Convention for Electrical Systems

Like mechanical systems, for which we defined +C and +T sign convention for internal forces, we require to define a sign convention for electrical systems. It is customary to use the *passive sign convention* (PSC) for defining the direction of electrical current ( ) passing through the elements of an electrical circuit. The background for the PSC is to have power being positive when absorbed by passive elements, e.g., -, -, and -elements in BG method. Therefore, for a typical passive element, by definition, the electrical current is considered as being positive when input into the element from its higher-voltage node (i.e., positive voltage/ ) and output from the relatively lower-voltage node (i.e., negative voltage/ ). Otherwise, the current is negative. See Figure 7‑1.

Using the PSC, we have power defined positive for positive current and negative for negative current, or when and ; hence, power is absorbed by the element. Otherwise, power is generated, when when and . Figure 7‑2 shows the electrical power sign convention for passive elements (, , ) and active elements (voltage and current sources).

In the next section, we use the PSC for defining the current and voltage signs and discuss the step-by-step procedure for building BG models for electrical systems.

# 7.3 Guidelines for Drawing BG for Electrical Systems

As mentioned in chapter 4, the general guidelines for drawing BG model can be applied to electrical systems along with causality assignment rules. For electrical systems, we follow these guidelines, along with Kirchhoff’s circuit laws **[24]** and the PSC for building their BG models, as described in the following steps:

- Assign voltage polarity () for each element in the electrical circuit.
- Assign current direction based on PSC for each element (see Figure 7‑1 and Figure 7‑2).
- Assign 0-junction for each
*distinct*voltage node in the circuit, according to Kirchhoff’s voltage law (KVL)—the algebraic sum of all voltage drops around a closed circuit is equal to zero. - Assign 1-junction for each element in the circuit, according to Kirchhoff’s current law (KCL)—the algebraic sum of all electrical currents entering and leaving a node is equal to zero). This is for taking care of
*relative*voltage or drops related to each element located between two 0-junctions, since 1-junction is an effort summator. - Select a node in the circuit as a reference, i.e., the grounding, with zero voltage.
- Assign -element for capacitors, -element for resistors, -element for inductors, for voltage, and for current sources.
- Assign -element for electrical transformers and -element for electric motors.
- Connect the elements with power bonds, assign causalities, and simplify by neglecting the bonds and the 0-junction which are connected to the ground source.

The above steps are based on KVL, and the process starts with assigning 0-junctions for each distinct voltage node. It is also possible to start with KCL and assign 1-junctions for the current in each closed-circuit loop and use 0-junctions in between for distribution of the current to corresponding circuit loops. The latter will result in a more simplified BG model and is recommended for complex circuits that involve several electric loops. In practice, we sometimes use a combination of these two approaches for building BG model for electrical systems.

In the following sections, we demonstrate the application of the procedure discussed above, with some worked-out examples.

# 7.4 Example: An RCL Circuit—in Series

Figure 7‑3 shows an RCL circuit consisting of a resistor, a capacitor, and an inductor connected in series. To build the BG model, we apply the PSC and use the procedure listed in section 7.3. The four nodes identified by solid circles have distinct voltages. Therefore, four 0-junctions are assigned at the four corners of the circuit. For voltage drop across each element, we assign 1-juction and connect it to the corresponding element with a power bond. Note that the current direction in the circuit is consistent with the PSC convention. The resulting BG model is shown in Figure 7‑4 after being simplified with deleted ground-connecting bonds shown in the dashed circle. Alternatively, we can simplify the BG model and use a 1-juction for the current in the circuit loop according to KCL. In other words, the electrical current flowing through all elements should be identical. The resulting simplified BG model is shown in Figure 7‑5.

It is useful to discuss the analogy between the RCL circuit and mechanical mass-spring-damper systems (see Figure 4‑1) and their identical BG model. Assuming a ground connection for the circuit is analogous to a wall with zero velocity for the mass-spring-damper system, the current through the inductor is analogous to the velocity of the mass. The same current flows through the resistor and the capacitors, analogous to the velocity of the spring and damper components. Therefore, the simplified BG model (see Figure 7‑5) is identical for both electrical and mechanical systems. In other words, the BG model is identical to the one for a mass-spring-damper connected in parallel.

# 7.5 Example: An RCL Circuit—in Parallel

Figure 7‑6 shows an RCL circuit consisting of two inductors, a resistor, and a capacitor connected in parallel. We use the KCL approach to build the BG model for this example. Because the voltages across all components are identical, we can, using power bonds, apply a 0-junction (i.e., voltage equalizer) and connect the , , and components to it. This can be obtained by simplifying the BG model shown in Figure 7‑7.

The following video shows how to build and run the model for this example in 20-sim.

# 7.6 Example: An Electrical Circuit—Two Loops

Figure 7‑8 shows an RCL two-loop circuit consisting of resistors, inductors, and a capacitor connected in parallel. We use the KCL approach to build the BG model for this example.

The following video shows how to build and run the model for this example in 20-sim.

The simplified BG model with a supplied voltage signal as a square wave is shown in Figure 7‑9.

# 7.7 An Electrical Circuit—Three Loops

Figure 7‑10 shows an RCL three-loop circuit consisting of resistors, inductors, and a capacitor connected in parallel. We use the KCL approach to build the BG model for this example.

The following video shows how to build and run the model for this example in 20-sim.

The simplified BG model with a supplied voltage signal as a block wave is shown in Figure 7‑11.

# 7.8 An Electrical Circuit—Wheatstone Bridge

Figure 7‑12 shows a Wheatstone circuit consisting of resistors. This circuit is usually used to measure an unknown resistor, e.g., placed in the system as , by adjusting the variable such that the current through is null, i.e., the balanced point. Using Kirchhoff’s and Ohm’s laws **[25]**, we can calculate the currents going through the branch as and branch as Therefore, the voltages at nodes and , with reference to the ground, are and , respectively. For having null voltage across , we let or after some manipulations, we get . As shown, the balanced point is independent of the voltage supplied. We use the KCL approach to build the BG model for this example.

The following video shows how to build and run the model for this example in 20-sim.

The simplified BG model with a supplied voltage is shown in Figure 7‑13.

# 7.9 An Electrical Circuit—Multi-loop

Figure 7‑14 shows an RCL multi-loop circuit consisting of resistors, inductors, and capacitors connected in series and parallel. We use the KCL/KVL approach to build the BG model for this example.

The following video shows how to build and run the model for this example in 20-sim.

The simplified BG model with a supplied voltage is shown in Figure 7‑15.

# 7.10 An Electrical Circuit—Multi-loop with Transformer

Figure 7‑16 shows an RCL multi-loop circuit consisting of resistors, inductors, capacitors, and a transformer connected in series and parallel. We use the KCL/KVL approach to build the BG model for this example.

The following video shows how to build and run the model for this example in 20-sim.

The simplified BG model with a supplied voltage is shown in Figure 7‑17.

# Exercise Problems for Chapter 7

Exercises

- Build the BG model for the electrical system as shown in the sketch. Run the model and report the following quantities:
- charge accumulated on capacitors
- current across resistors
- voltage drop across resistor
- momentum (flux linkage) for the inductor.

Use following data: , , , , , , , and transformer parameter 2:1. Perform Parameter Sweep on a range of parameter values, 0.5-3 and graph the results for electric charge on capacitor .

- Build a BG model for the electrical circuit shown. Use , , for simulation. Report voltages across each element for a direct source voltage of . Also, run the model for a range of capacitance , , using Parameter Sweep and report the across the inductance for these values. Draw the sketch.

- For the electrical system shown in the sketch, build the BG model.

- A modified Wheatstone bridge circuit is shown in the sketch. Build a BG model and show that the voltage across the bridge resistor (R5) is null when the bridge is balanced.

- An electrical circuit is shown in the below sketch below. The circuit consists of two capacitors, two inductors, and one resistor. Build the corresponding BG model.

- Modify the example given in section 7.7 by making the components branching from node to be laid out in parallel. Build the BG model for the modified circuit.
- For the example given in above section 7-9, use the corresponding BG model and the following data to simulate the system: , , , , , , , .
- Build the BG model for the electrical circuit shown below. After building the model in 20-sim, simplify it and interpret the simplified model. Perform a parametric sweep analysis for the capacitor and inductor.

### Media Attributions

- Gustav Robert Kirchhoff is licensed under a Public Domain license
- Georg Simon Ohm © BerndGehrmann is licensed under a Public Domain license
- Exercise-7-1