23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.6 Circuit and DAEObject Manipulation 271<br />

Define netlist description<br />

of a simple diode rectifier<br />

circuit.<br />

Set up DAE system.<br />

Return design point stored<br />

in dae.<br />

Return the values of the<br />

parameters R1 and C1.<br />

In[2]:= cir =<br />

Circuit[<br />

Netlist[<br />

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

Value −> 2. Sin[10^6 Time]},<br />

{R1, {2, 0}, Symbolic −> R1, Value −> 100.},<br />

{C1, {2, 0}, Symbolic −> C1, Value −> 1.*^−7},<br />

{D1, {1 −> A, 2 −> C},<br />

Model −> "Diode", Selector −> "Spice"}<br />

]<br />

]<br />

Out[2]= Circuit <br />

In[3]:= dae = CircuitEquations[cir,<br />

AnalysisMode −> Transient, ElementValues −> Symbolic]<br />

Out[3]= DAETransient, 4 4 <br />

In[4]:= GetDesignPoint[dae]<br />

Out[4]=<br />

V0 2. Sin1000000 t, R1 100., C1 1. 10 7 , AREA$D1 1.,<br />

BV$D1 ∞, GLEAK$D1 0, GLEAKSW$D1 0, GMIN 1. 10 12 ,<br />

IBV$D1 0.001, IS$D1 1. 10 14 , ISW$D1 0, PERIM$D1 0,<br />

RS$D1 0, TEMP 300.15, TNOM 300.15, $k 1.38062 10 23 ,<br />

$q 1.60219 10 19 , CD$D1 0, CJO$D1 0, CJSW$D1 0<br />

In[5]:= GetDesignPoint[dae, {R1, C1}]<br />

Out[5]= 100., 1. 10 7 <br />

3.6.13 ApplyDesignPoint<br />

ApplyDesignPoint[dae, stringpattern]<br />

replaces all parameters of dae matching stringpattern with<br />

their numerical values<br />

ApplyDesignPoint[dae, {stringpattern <br />

, stringpattern <br />

, † † † }]<br />

replaces all parameters matching a list of string patterns<br />

with their numerical values<br />

ApplyDesignPoint[dae]<br />

Command structure of ApplyDesignPoint.<br />

replaces all parameters of the design point with their<br />

numerical values<br />

Given a DAEObject, ApplyDesignPoint returns a new DAEObject where all parameters in the<br />

equation system which match a string pattern stringpattern are replaced with their numerical values<br />

stored in the DesignPoint option of dae. If a list of string patterns is given, all parameters which<br />

match at least one of the patterns are replaced. By default, all replaced parameters are removed from

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

Saved successfully!

Ooh no, something went wrong!