230 likes | 520 Views
Electronic Circuit Modeling and Simulation in Modelica. Fran çois E. Cellier ETH Zürich, Switzerland. Christoph Clauß Fraunhofer Institute Dresden, Germany. Alfonso Urquía UNED Madrid, Spain.
E N D
Electronic Circuit Modeling and Simulation in Modelica François E. Cellier ETH Zürich, Switzerland Christoph Clauß Fraunhofer Institute Dresden, Germany Alfonso Urquía UNED Madrid, Spain
Modern electronic circuits are usually fairly large systems. These lead to highly non-linear, high-order, index-2 DAE models that cannot easily be converted to state-space form. Properties of Electronic Circuits • For this reason, electronic circuit simulation environments are traditionally specialized tools that were designed for simulating electronic circuits only. The general-purpose CSSL-type simulation languages had no chance of breaking into this “market.”
Circuit simulators do not support the simulation of mixed systems, such as a mechatronic model of a car engine together with its electronic control unit. Disadvantages of Using Circuit Simulators • Circuit simulators do not support thermal simulation of circuits. Whereas they can simulate a circuit at different temperature values, they cannot be used to calculate the heat dissipated by the circuit, and from that information, determine the device temperature.
Modern object-oriented physical systems modeling environments, such as Modelica, are able to handle large, high-order, higher-index DAE systems. Object-oriented Circuit Modeling • Hence they can be used as an alternative to the specialized circuit simulators, such as PSpice and HSpice. • Modelica lends itself to both mechatronic systems modeling and thermal modeling of electronic circuits.
The Modelica Standard Library contains a sub-library for modeling and simulating analog electronic circuits. It offers simple transistor models. 3 Circuit Libraries for Modelica • There exists a free library called SpiceLib that offers full-fledged PSpice-style MOS transistor models and supports directly DC-, AC-, and transient analysis. • Finally, there is yet another free library, called BondLib, that is based on bond-graph technology, and offers a full implementation of HSpice.
A Simple Inverter Circuit Modelica Standard Library BondLib
A Simple Inverter Circuit VIII BondLib PSpice
PSpice BondLib A Simple Inverter Circuit IX
A Simple Inverter Circuit X Modelica Standard Library BondLib
Modeling electronic circuits in Modelica allows us to simulate mechatronic systems easily and conveniently. We can also perform a true thermal analysis on an integrated circuit, something that Spice cannot do. The library is much easier to maintain and upgrade than any classical Spice software. The BondLib approach is better suited for teaching the principles of analog circuit design, because it enables us to dig into a circuit to any depth and look at any internal signal. Advantages of OO Approach
The Modelica Standard Library can be down-loaded for free from the Modelica website: http://www.modelica.org/. The SpiceLib library can also be downloaded for free from the Modelica website. Although the Modelica website offers also a version of the BondLib library, this is not the current version. The most recent version can be downloaded for free from the website: http://www.inf.ethz.ch/~fcellier/Soft/Soft_index_engl.html. References