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.

208 3. Reference Manual<br />

A circuit with a resistor<br />

model.<br />

In[6]:= resckt = Circuit[<br />

Netlist[<br />

{V0, {1, 0}, Symbolic −> V0, Value −> 1},<br />

{R1, {1 −> "P", 0 −> "N"},<br />

Model −> "RES", Selector −> "DC",<br />

RES −> 1000., TC1 −> 10^−3}<br />

],<br />

Model[<br />

Name −> "RES", Selector −> "DC",<br />

Ports −> {"P", "N"},<br />

Parameters −> {RES, TC1, Global[TEMP, TNOM]},<br />

Defaults −> {TC1 −> 0, TNOM −> 300.15, TEMP −> 300.15},<br />

Symbolic −> {RES −> R},<br />

Variables −> {Voltage["P", "N"], Current["P", "N"]},<br />

Definition −> Equations[<br />

Voltage["P", "N"] ==<br />

RES*(1 + TC1*(TEMP − TNOM))*Current["P", "N"]<br />

]<br />

],<br />

GlobalParameters[TEMP −> 310.]<br />

]<br />

Out[6]= Circuit <br />

Note that only R$R1 is<br />

kept in symbolic form.<br />

In[7]:= CircuitEquations[resckt, AnalysisMode −> DC,<br />

ElementValues −> Symbolic] // DisplayForm<br />

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

I$PN$R1 I$V0 ⩵⩵ 0, V$1 ⩵⩵ V0, V$1 ⩵⩵ 1.00985 I$PN$R1 R$R1,<br />

V$1, I$V0, I$PN$R1,<br />

DesignPoint V0 1, R$R1 1000., TEMP 310.<br />

The following example demonstrates the use of local model parameter sets in a subcircuit definition.<br />

The netlist shown below represents a bipolar differential pair with emitter degeneration resistors.<br />

The Circuit object contains a local ModelParameters statement in which the values of the BJT’s<br />

ohmic collector and emitter resistances are calculated as a function of the area factor.

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

Saved successfully!

Ooh no, something went wrong!