23
September 10, 2007 Start Presentation Eurosim 2007, Ljubljana 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

Start Presentation Eurosim 2007, Ljubljana September 10, 2007 Electronic Circuit Modeling and Simulation in Modelica François E. Cellier ETH Zürich, Switzerland

  • View
    213

  • Download
    0

Embed Size (px)

Citation preview

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

Electronic Circuit Modeling and Simulation in Modelica

François E. CellierETH Zürich, Switzerland

Christoph ClaußFraunhofer Institute Dresden, Germany

Alfonso UrquíaUNED Madrid, Spain

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

Properties of Electronic Circuits

• 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.

• 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.”

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

Disadvantages of Using Circuit Simulators

• 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.

• 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.

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

Object-oriented Circuit Modeling

• Modern object-oriented physical systems modeling environments, such as Modelica, are able to handle large, high-order, higher-index DAE systems.

• 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.

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

3 Circuit Libraries for Modelica

• The Modelica Standard Library contains a sub-library for modeling and simulating analog electronic circuits. It offers simple transistor models.

• 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.

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit

Modelica Standard LibraryBondLib

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit II

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit III

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit IV

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit V

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit VI

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit VII

PSpice

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit VIII

PSpice

BondLib

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit IX

BondLib

PSpice

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

A Simple Inverter Circuit X

BondLib

Modelica Standard Library

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

HiFi Operational Amplifier

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

HiFi Operational Amplifier II

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

HiFi Operational Amplifier III

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

HiFi Operational Amplifier IV

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

HiFi Operational Amplifier V

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

Advantages of OO Approach

• 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.

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

References

• 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.

September 10, 2007 Start PresentationEurosim 2007, Ljubljana

References II