logo
  • About
  • Publications
  • Gallery
  • Blog
  • Climate Report

Note

Click here to download the full example code

Ideal CCM Converter¶

Canonical form for an ideal single-inductor, single-capactor, CCM converter

import schemdraw
import schemdraw.elements as elm
d = schemdraw.Drawing(unit=3)
Vg = elm.SourceV().label(r'$V_g + \hat{v}_g(s)$')

d += Vg.up()
d += elm.Line().right()
d.push()
j = elm.SourceI().label(r'$j(s)\hat{d}(s)$')
d += j.down()
d.pop()
e = elm.SourceV().label(r'$e(s)\hat{d}(s)$')
d += e.right()
X = elm.Transformer(t1=6, t2=6, loop=True, core=False).label("1 : M(D)")
d += X.anchor('p1')

Le = elm.Inductor2().label('$L_e$')
d += Le.right().at(X.s1)
d.push()
C = elm.Capacitor().label('$C$')
d += C.down()
d.pop()
d += elm.Line().length(2).right()
d.push()
G = elm.Gap().label(['+', '', '$V + \hat{v}(s)$', '', '–'])
d += G.down()
d.pop()
d += elm.Line().length(2).right()
R = elm.Resistor().label('$R$')
d += R.down()
d += elm.Line().left().tox(X.s2)
d.push()
d += elm.Line().up().toy(X.s2)
d.pop()
d += elm.Line().at(X.p2).down().toy(Vg.start)
d += elm.Line().left().tox(Vg.start)


d.draw()
ccm converter

Out:

<schemdraw.backends.mpl.Figure object at 0x7f14f5d22d00>

Total running time of the script: ( 0 minutes 1.035 seconds)

Download Python source code: ccm-converter.py

Download Jupyter notebook: ccm-converter.ipynb

Gallery generated by Sphinx-Gallery

previous

Single-Diode Model

next

Boost Converter

© Copyright 2015-2023, Kevin Anderson. Site layout adapted from Chris Holdgraf.

Created using Sphinx 5.3.0.