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 261<br />

Define a simple voltage<br />

divider.<br />

Extract all elements whose<br />

reference designator match<br />

the string pattern "R*".<br />

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

Netlist[<br />

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

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

{R2, {2, 0}, R2},<br />

{Rload, {2, 0}, Rload}<br />

]<br />

Out[2]= NetlistRaw, 4 <br />

In[3]:= GetElements[netload, "R*"]<br />

Out[3]=<br />

R1, 1, 2, R1, R2, 2, 0, R2, Rload, 2, 0, Rload<br />

3.6.4 RenameNodes<br />

RenameNodes[netlist, repl]<br />

RenameNodes[circuit, repl]<br />

renames nodes in netlist<br />

renames nodes in the top-level netlist of circuit<br />

Command structure of RenameNodes.<br />

Given a Netlist or Circuit object, RenameNodes changes node names in the top-level netlist and<br />

returns the new Netlist or Circuit object, respectively. The replacements repl are given as a single<br />

rule, a sequence of rules, or as a list of replacement rules of the form oldnodename −> newnodename.<br />

The node names can be given as symbols or as strings.<br />

Examples<br />

Load Analog Insydes.<br />

Define a simple voltage<br />

divider.<br />

Show variable names.<br />

In[1]:=

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

Saved successfully!

Ooh no, something went wrong!