GeckoCIRCUITS Tutorial Basics en
GeckoCIRCUITS Tutorial Basics en
Beginners Tutorial
User
This tutorial is written for users with little or no experience in power electronics simulation. The simulation software GeckoCIRCUITS is explained in detail. Thermal problems, where GeckoCIRCUITS is especially powerful, are not discussed here in order to keep the tutorial simple.
Circuit simulator GeckoCIRCUITS after starting the program. Depending on the tabs at the right
Double-click (2x left button) with the mouse-pointer onto the components symbol to open the
parameter dialog. Sources are set to AC-sources by default. By clicking the DC-Tab of the
parameter dialog, the source becomes a DC voltage source. Set the DC-value of the source to 20V.
Ideal Switch:
Clicking (1x left) Ideal Switch S (power circuit, blue tab) provides an ideal switch with bidirectional behaviour, ON-voltage drop (default: 0V), ON-resistance (default: 10m) and OFFresistance (default: 10Meg). These parameters can be changed by the user via the components parameter dialog. The parameter
dialog can be opened by doubleclicking (2x left) the components symbol after the switch has been put down.
If power circuit components are in their editing mode (gray), they can
The ideal switch (default-name: S.1) is put down with one mouse-
Blue Tab & Mouse-Click (1x right) Blue Pen for Drawing Connections Blue connections can only connect blue components
If the blue tab is active (power circuit) with no component in editing mode, a blue pen for drawing connections can be activated by a mouse-click (1x right). There is a node at start- and end-point of each connection where other connections or input/output-ports of components can be attached. Blue connections can only connect (blue) power circuit components. A second mouse-click (1x right) deactivates the drawing pen.
Clicking (1x left) Diode D in the blue tab provides a diode with ONvoltage drop (default: 0.6V), ON-
resistance (default: 10m) and OFF-resistance (default: 10Meg). These parameters can be modified
Inductor L gives higher simulation speed, but in case of magnetic coupling Inductor Coupling Lc has to be employed
Now select Inductor L [H] from the blue tab. If you want to couple inductors magnetically (e.g. modelling transformers) you have to employ Inductor Coupling Lc [H] instead. The component Magnetic Coupling k would provide the coupling. The two components Inductor L [H] and Inductor Coupling Lc [H] are equivalent, but using Inductor L [H] might improve simulation speed.
Rotate the inductor by 90 via mouse-click (1x right) in editing mode (gray). Put down the
inductor by mouse-click (1x left). The editing mode is then exited automatically and the inductor
Menu View >> Flow_Direction: Visualize flow direction in power circuit components Current measurement Initial conditions of L, C
Visualize the flow direction in power circuit components via submenu View >> Flow_Direction. This is especially of advantage for current measurement and for setting initial conditions of inductors (initial current) capacitors (initial voltage). and
180-Rotation: Mouse-click 1x left Entering editing mode (gray) Mouse-click 1x right Rotation 90 Mouse-click 1x right Rotation 90 Mouse-click 1x left Component put down (changes to blue)
Mouse-click (1x left) the inductor to bring it into its editing mode (gray). Then, rotate the inductor by 180 via two mouse-clicks (2x right). Put the inductor down by one mouseclick (1x left) which makes the inductor exit its editing mode (changing from gray to blue again).
A mouse-click (1x right) gives the drawing pen for drawing connections. Here, the blue tab for
power circuit components has to be active in order to get the blue pen. Only the blue pen can realize
Simplified input of values: Instead of typing 10e-6 or 0.000001 just write: 10u
Double-click symbols of R and C to open parameter dialogs for changing component values. Instead of typing 10e-6 or 0.00001 you can alternatively write 10u (also valid abbreviations: p, n, u, m, k). You could also define an initial voltage of the capacitor. This is of advantage e.g. in case of boost-converters, if you would like to omit the simulation of preloading.
For modelling the control circuit you have to activate one of the green tabs, e.g. Source/Sink. By mouse-clicking (1x left) of Signal Source, moving the mouse-pointer
into the worksheet, and putting the selected component at its location (mouse-click 1x left to exit the editing mode), you get a general signal-source. Open the parameter
dialog via double-clicking. By selecting the tab REC the signalsource will provide a rectangular signal.
Control active power switches (blue) via the green Gate-Control block
Get the control block Gate_Control from the tab Source/Sink in order to be able to control active switches in the power circuit. This is the only way to control active
switches. Because the green tab is active, you can get the green drawing pen by one mouse-click (1x right). With the green pen only connections between green
control-blocks can be drawn. Deactivate the green pen by one second mouse-click (1x right).
Double-click the Gate Control_ block to open its parameter dialog. Here, you can select a certain
to
be
After successful selection, the red text not defined of Gate Block changes to the name of the
selected power switch: >>_S.1. The red text no gate-signal of the selected power switch changes to
Measure all currents and voltages of the power circuit (blue) via green measurement blocks AMP and VOLT
To measure currents and voltages you need to employ the control blocks Measure Voltage and Measure Current in the green tab Measure. If you double-click the voltage measurement block, the according parameter dialog allows the selection of two nodes, if you already have defined node-names. If there are no node-names defined, you cannot select and measure voltages.
10
Double-clicking of the current measurement block opens the according parameter dialog. Here,
all power circuit components are listed and one can be selected.
Use the signal block SCOPE of the green tab Measure for
Node-names of the inputports of the SCOPE are used to name the displayed curves
The number of input-ports of the SCOPE can be modified by clicking one of the red triangles (at top and bottom of the SCOPEsymbol). If the input-ports have names, these names are used to label the displayed curves.
11
12
Use the scope-window menu Graphs >> SignalGraph to open the ConnectionMatrix-Dialog
Open the dialog ConnectionMatrix via the scope-menu Graphs >> Signal-Graph, where the number of displayed graphs can be set (via buttons Add Graph and Delete Graph). All SCOPE input signals can be attached to each graph via the matrix structure of this dialog.
Click button Add Graph twice to create two more graphs in this scope-window. In the matrix there are now three graphs, furthermore
three signals with entry X plus five signals with entry Y (uIN, uOUT, iL, iS, gate). By mouseclicking (1x right) these matrix-
Set the top graph to display two voltage curves uIN and uOUT, and the second graph to display two current curves iL and iS. The third
graph has to be set as Digital (see according checkbox). This is very helpful if a number of digital signals should be displayed which
13
After all properties and parameters have been set, the three graphs (including the third one which has
been set to Digital) are displayed. The curve-names (defined by the node-names at the SCOPE input
Menu Simulation >> Parameter opens dialog for numerical step-width and simulation time
Open the dialog Simulation Parameters via menu Simulation >>_Parameter for defining the constant numerical step-width (dt = 1e-6) and the duration of the simulation (t_SIM = 3e-3). Optionally you can stop the simulation at a defined time by setting t_PAUSE different from -1. E.g. t_PAUSE = 0.001 would stop the simulation after one third of its total duration. Then, the user could change parameters like load resistor and proceed via menu Simulation_>>_Continue in order to investigate a load-change.
14
For the numerical step-width dt (defined in the dialog Simulation >> Parameter) you should select a value that is significantly lower than the smallest time-constant of
the system. In case of this DC-DC converter the smallest time to consider is defined by the switching frequency as Ts = 1/fs = 1/25kHz = 40us. Therefore, the
maximum value of dt should be around 40us/100 = 400ns. Start the simulation via submenu Simulation >> Init & Start.
Zoom-Button in ScopeWindow
Click the Zoom-Symbol (third symbol from top at the menu lefthand side in the scope-window). Draw a red rectangle to define the zoom-region by dragging the mouse pointer on the graph.
Time-Slider in ScopeWindow
The zoomed curves are autoscaled. By clicking the SliderSymbols (fourth symbol from top at the menu left-hand side) you activate the time-slider to show values of the curves.
15
Use the scope-menu Analysis >> Calc. AVG, RMS to calculate important curve properties like avg- and rms-value. Proceed with the simulation via scope-menu Simulation >>_Continue. Before
proceeding parameters can be modified. If, e.g., the load resistor is changed, a load-step-response can be simulated. If you want to save simulation-data in form of an ASCII-file (scope-menu Data >>
Write Data to File), activate datasaving before starting the simulation via scope-menu Data_>> Activate Data Saving.
Activate scope-menu Data >> Activate Data Saving before simulation Save simulation results as ASCII-file
Information / Feedback
Author: Date: Contact: Uwe Drofenik Nov. 7, 2008 Uwe Drofenik Power Electronic Systems Laboratory ETH Zentrum, ETL H13 CH-8092 Zurich, Switzerland Phone +41-44-632 4267 Fax +41-44-632 1212 Email [email protected] [email protected]
16