You are on page 1of 13

ME 344 M. D.

Bryant, Mohsen Nakhaeinejad 04/15/2008

20-sim 4.0
Modeling and Simulation using Bond Graph

TA: Mohsen Nakhaeinejad


mohsenn@mail.utexas.edu,
ETC 1.106B (512) 471-0968
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

What is 20-sim?
A program to simulate the behavior of dynamic
systems, such as electrical, mechanical and hydraulic
systems.
Runs under Microsoft Windows
Supports graphical modeling
Components from library > connect > simulate

1
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

20-sim
Consists of:

Editor Simulator

Model/Library Graphic Editor Output/Process/ Interface/Icon


tab Find tab

2
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

General overview of 20-sim


20-sim supports various model representations:
Block diagrams
Iconic diagrams
o Electric
o Hydraulic
o Thermal
o Mechanical
Bond graphs
Combination with customized elements

20-sim toolboxes:
3D Mechanics toolbox
Animation toolbox
Control toolbox
Frequency domain toolbox
Time domain toolbox
Mechatronics toolbox
Real-time toolbox

3
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

How to use?
Install on your computer:
o Buy the standard/professional version
o Download free (viewer/demo) version:
A full version but models cannot be saved.
http://www.20sim.com

Access to METER from your computer by Citrix


http://www.me.utexas.edu/meter/appservers.php
o 20-sim 3.6 (not 4.0)

Computer Lab: ETC 2.126 (20-sim 4.0)

4
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

Bond Graph Simulation in 20-sim


Steps:
1. Create the BG using the library components
2. Check the model
3. Set the parameters and initial conditions
4. Simulate (Select the output parameters and run)

Freq. Domain Analysis: Bode Plot


Bode Plots: amplitude and phase of the system as
function of the frequency
Bode plots can be shown for every 20-sim model
through linearization
The bode plot can be customized

5
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

Example: Filter Circuit


This example shows how to model and simulate the behavior of a system
(the Filter Circuit) using Bondgraph in 20-sim. Also, it demonstrated how to
construct the Bode plots of the system in 20-sim.

This example has been discussed in the class. We built the bond graph of the
system, extracted the equations from the bond graph, and we showed how to
draw the bode plots from the equations. Here we model and simulate the
circuit numerically in 20-sim.

Bond graph of the circuit:

6
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

1. Run 20-sim on your computer: Start > 20-sim 4.0


2. From the Library tab, select Bond Graph and drag and drop all the
components (Se, I, C, R) that you need for the model to the graphic editor
window

3. From the top buttons in the editor, select

7
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

1- Then connect the elements as we have in the bond graph model

2- Click on the button to check the model; then you will see if there is
any errors or warning for the model in the process tab:

8
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

3- Select to set the parameters and initial values:

4- From the Parameter/Initial values Editor window, select the model and
enter the parameter value for each component as follow; then click OK
C = 1e-6 C1 = 1e-6 C2 = 1e-6
I = 1e-3 I1 = 1e-3 I2 = 1e-3
R = 100

5- Click on the to open the simulator window

9
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

6- Click on the to select the parameters you want to have in the plot

7- Click on the Add Curve and select the desired parameters (select C2
from the model components, then select the state). Click OK:

8- Again click OK to close the Plot Properties window.

10
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

9- Click on and run the simulation

10- From the menu, select Tool > Frequency Domain Toolbox > Model
Linearization
11- From the 20-sim Model Linearization window, select the input
(Se\p.e) and output (R\p.e) as shown here. Click OK:

11
ME 344 M. D. Bryant, Mohsen Nakhaeinejad 04/15/2008

12- Click on the button to see the Bode plots of the system:

You can learn more by looking at some examples available in the library:

12

You might also like