Assignment 7 - Bond Graphs#

Note

Submit your assignment as a single PDF, including plots and source code (if any). We expect academic honesty. Collaboration is encouraged, but must be declared. Any use of AI must be declared along with any other sources used. This is not an exam. Do your best and show that you put in effort and the assignment will be approved.

In this assignment we will study how we can use power bonds to connect submodel into a system model.

Problem 1 - Steering mechanism#

../_images/Steeringmechanism.png

Fig. 17 Simple model of a steering mechanism.#

../_images/word_bg_steering_mech.png

Fig. 18 Word bond graph for the steering mechanism.#

Figure Fig. 17 shows a simple model of a steering mechanism for a vehicle, while figure Fig. 18 shows a word bond graph for the same steering mechanism.

Tasks

  1. Draw a block diagram of the system based on the word bond graph and the causality assignment given to it.

  1. The following information is given about each submodel:

  • Batter:

    Gives a constant voltage.

  • DC motor:

    A DC-motor can be described by the following equations

    (53)#\[\begin{split}L_a \frac{di_a}{dt} = -R_a i_a - K_t \omega_m + u_a \\ J \dot{\omega}_m = K_T i_a - \tau\end{split}\]

    where \(L_a\) is the armature inductance, \(i_a\) is the armature current, \(R_a\) is the resistance in the armature circuit, \(K_T\) is a constant, \(\omega_m\) is the speed of the motor, \(u_a\) is the armature voltage, and the torque \(\tau\) is the load.

  • Flexible shaft:

    A flexible shaft may have a slight difference in the angular velocity \(\omega_1\) and :math: omega_2 of each side, resulting also in a slight difference \(\Delta \theta = \int_{t_0}^t (\omega_2 - \omega_1) dt\) in the angular displacement on each side. We can think of the flexible shaft as an angular spring with a linear relation between the angular displacement and the torque, such that \(\tau = k_s \Delta \theta\). The moment of inertia for the shaft is small compared to the moment of inertia of the DC-motor and the rack, so we may consider it as massless.

  • Gear (or pinion):

    The gear is modelled as massless and loss-less (i.e. it does not remove energy from the system). Its function in this system is to transform between the angular velocity and torque on one port, and linear velocity and a force on the other port. The relationship between the linear velocity and the angular velocity is \(v = r\omega\). Since it is loss-less, we also have that the power on each port is identical. In equation form this can be stated as \(\omega \tau = v F\).

  • Rack:

    The rack can be modelled as mass m that can move with one degree of freedom. This mass is governed by the equation: \(ma = \sum F\) .

  • Spring:

    The spring gives a linear relation between the force and the displacement, such that the spring force \(F_s\) is given as \(F_s = kx\) , where \(x = \int_{t_0}^t v dt\).

  • Damper:

    The damper (or dashpot) is governed by the law: \(F_d = k_d v\).

Use the block diagram you made together with the information given above and the word bond graph to show that the system equations for the steering mechanism can be written as

(54)#\[\begin{split}L_a \frac{di_a}{dt} &= -R_a i_a - K_t \omega_1 + u_a \\ J \dot{\omega}_m &= K_T i_a - k_s \Delta \theta \\ \dot{\Delta \theta} &= \frac{1}{r} v - \omega_1 \\ \dot{x} &= v \\ m \dot{v} &= - kx - dv + \frac1{r} k_s \Delta \theta\end{split}\]

Problem 2 - Two rotating shafts#

../_images/two_rotating_masses.png

Fig. 19 Two rotating shafts connected by a gearbox#

../_images/word_bg_flywheels.png

Fig. 20 Word bond graph of the system#

Figure Fig. 19 shows two rotating flywheels connected by a gearbox. The gearbox is friction-less. There are two torques \(T_1\) and \(T_2\) applied to the two flywheels. The left flywheel rotates with the angular speed \(\omega_1\) and has moment of inertia \(J_1\), while the right-hand flywheel rotates with an angular speed \(\omega_2\) and has moment of inertia \(J_2\). A system model is shown in the form of a word bond graph in figure Fig. 20.

Tasks

  1. Draw a block diagram for the system based on the word bond graph and the causality defined by the causal strokes.

  2. While it is tempting to use two differential equations on the form

    (55)#\[J_i \dot{\omega}_i = \sum T\]

    this is not viable because the two flywheels are not able to rotate independently of each other. If we know \(\omega_1\), we also know \(\omega_2\) (and if we know \(\dot{\omega_1}\) we know \(\dot{\omega_2}\)). In particular, \(r \omega_1 = \omega_2\) and \(\tau_1 = r \tau_2\). Therefore we only need a single differential equation to describe both of them. Show that the equation of motion for the two flywheels can be written as

    (56)#\[\left( J_1 + r^2 J_2 \right) \dot{\omega}_1 = T_1 + r T_2\]
  3. Derive the same expression using Lagrange mechanics with your generalized coordinate \(q = \theta_1\) and \(\dot{q} = \omega_1\).