Docsity

Circuit sim 1 handout, Exams of Digital & Analog Electronics

Partial preview of the text

Download Circuit sim 1 handout and more Exams Digital & Analog Electronics in PDF only on Docsity!

Techniques for Circuit Simulation

Department of Electrical Engineering^ Mahesh B. Patil

[email protected] Bombay

March 10, 2009

Outline

* Circuit simulation: introduction

* Nodal analysis

* Modified nodal analysis

* Sparse tableau approach

* Nonlinear circuits

* Transient (dynamic) analysis

Why do we need circuit simulation?

R 1

Vs R 2

is

Example 1

Why do we need circuit simulation?

R 1

Vs R 2 R^3

is

Example 1

Why do we need circuit simulation?

R 1

Vs R 2 R^3

is

R 4

R 5

Example 1

Why do we need circuit simulation?

R 1

Vs^ R^6 R 2 R^3

is

R 4

R 5

Example 1

Why do we need circuit simulation?

VC 1

Vs(t)

R 1

C 1

Example 2

Why do we need circuit simulation?

VC 1

Vs(t)

R 1 R 2

C 1 C 2

Example 2

Circuit simulation on a computer

* Must be efficient in terms of CPU time (especially for large circuits).

* Must make good use of the memory available. If a matrix is sparse,it should not be stored in the a(i, j) form.

* The approach must be systematic. โ€œTricksโ€ such as resistors inseries or parallel, star-to-delta conversion, etc. will work in special

cases. What we need is a all circuits. general-purpose method that will work for

Outline

* Circuit simulation: introduction

* Nodal analysis

* Modified nodal analysis

* Sparse tableau approach

* Nonlinear circuits

* Transient (dynamic) analysis

Step 1: Initialize

I k v 3

0 0 0

0 0 0

e 1 e^0 0
e

2

3

0 v^3
R 1
R 2 R 3
0 R 4

e e e

1 2 3

0 0

2 3

KCL at 1 0

Step 2

I k v 3

0 0 0

0 0 0

e 1 e^0 0
e

2

3

0 v^3
R 1
R 2 R 3
0 R 4

e e e

1 2 3

0 0

2 3

KCL at 1 0

Step 3

I k v 3

0 0 0

0 0 0

e 1 e^0 0 0 I^0
e

2

3

0 v^3
R 1
R 2 R 3
0 R 4

e e e

1 2 3

0 0

2 3

KCL at 1

Step 3

I k v 3

0 0 0

G 1 G 1 I 0
G 1 G 1
e 1 e
e

2

3

0 v^3
R 1
R 2 R 3
0 R 4

e e e

1 2 3

0 0

2 3

KCL at 1 0 0