23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

46 2. Tutorial<br />

In[16]:= cccseqs2 = CircuitEquations[<br />

cccsCircuit2 /. {loadtype −> Resistor, loadval −> RL}];<br />

DisplayForm[cccseqs2]<br />

Out[17]//DisplayForm=<br />

1<br />

1<br />

<br />

RB<br />

CM s CM s <br />

RB<br />

1 0 0 V$1<br />

CM s CM s 0 0 beta 1 V$2<br />

<br />

<br />

1<br />

1<br />

RB<br />

0 <br />

RB<br />

0 1 0 V$3<br />

.<br />

⩵⩵<br />

1 0 0 0 0 0 I$V0<br />

0 0 1 0 0 0 IC$CC1<br />

<br />

<br />

0 1 0 0 0 RL I$Load <br />

In[18]:= Solve[cccseqs2, I$Load]<br />

beta CM RB s V0<br />

Out[18]= I$Load <br />

RB 1 CM RL s<br />

Next, we select a capacitive load CL and solve for the load current again.<br />

0<br />

0<br />

0<br />

V0<br />

In[19]:= cccseqs3 = CircuitEquations[<br />

cccsCircuit2 /. {loadtype −> Capacitor, loadval −> CL}];<br />

DisplayForm[cccseqs3]<br />

Out[20]//DisplayForm=<br />

1<br />

1<br />

<br />

RB<br />

CM s CM s <br />

RB<br />

1 0 0<br />

CM s CM s 0 0 beta 1<br />

<br />

<br />

<br />

1<br />

RB<br />

0<br />

1<br />

<br />

RB<br />

0 1 0<br />

1 0 0 0 0 0<br />

0 0 1 0 0 0<br />

0 1 0 0 0<br />

In[21]:= Solve[cccseqs3, I$Load]<br />

1<br />

<br />

CL s<br />

CL beta CM RB s V0<br />

Out[21]= I$Load <br />

<br />

CL CM RB<br />

<br />

<br />

0<br />

0<br />

<br />

V$1<br />

V$2<br />

<br />

.<br />

V$3<br />

I$V0<br />

⩵⩵<br />

<br />

IC$CC1<br />

<br />

I$Load <br />

<br />

<br />

<br />

<br />

<br />

0<br />

0<br />

0<br />

V0<br />

0<br />

0<br />

<br />

<br />

<br />

InitialCondition<br />

With the InitialCondition option (see Section 3.1.4), you can specify initial currents and voltages<br />

for the dynamic elements Inductor (Section 4.2.6) and Capacitor (Section 4.2.5), respectively. If no<br />

initial condition is given explicitly, it will be assumed to be zero (AC analysis) or will be calculated<br />

automatically from the operating-point data (transient analysis).<br />

As an example, we set an initial capacitor voltage of V0 for the netlist entry C1 of the following filter<br />

circuit:<br />

In[22]:= filter =<br />

Netlist[<br />

{V1, {1, 0}, V1},<br />

{R1, {1, 2}, R1},<br />

{C1, {2, 0}, Value −> C1, InitialCondition −> V0}<br />

]<br />

Out[22]= NetlistRaw, 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!