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.

72 2. Tutorial<br />

2.4 Setting up and Solving Circuit Equations<br />

2.4.1 Naming Conventions<br />

Automatically Generated Voltage and Current Identifiers<br />

From the small circuit analysis examples already presented in the previous chapters you will have<br />

noticed that Analog Insydes automatically creates variables for voltages and currents when setting<br />

up circuit equations from a netlist. In order to interpret the equations correctly you need to know<br />

everything about the identifier naming scheme employed by Analog Insydes.<br />

By default, identifiers for branch voltages and currents associated with two-terminal elements are<br />

generated by attaching the prefixes V$ and I$ to the reference designator (Section 3.1.3) of the<br />

corresponding circuit element, respectively. For instance, the branch voltage across and branch<br />

current through a resistor R1 would be named V$R1 and I$R1.<br />

Similarly, identifiers for node voltages are generated by prefixing the node names with the tag V$,<br />

so the node voltage at node 1 would be named V$1. Although the prefix is used for branch voltages<br />

you will not experience any name clashes among branch and node voltage identifiers, provided that<br />

your netlists do not contain any symbolic node identifiers (Section 3.1.3) which are identical to some<br />

reference designators. However, if you would rather like different prefixes to be used for branch<br />

and node voltages then read the following sections to learn how to change the standard settings.<br />

In the case of a controlled source we need to distinguish between the voltages and currents at the<br />

controlling and at the controlled branch. While the latter quantities are given names according to the<br />

same convention as applied to two-terminal elements, controlling voltages and currents are marked<br />

with the prefixes VC$ and IC$. For example, the voltage across and current through the controlled<br />

branch of a controlled source VC1 would be called V$VC1 and I$VC1 whereas the corresponding<br />

quantities at the controlling branch would be called VC$VC1 and IC$VC1.<br />

Changing the Default Identifier Prefixes<br />

All identifier prefix settings can be customized by changing the corresponding option. The current<br />

option settings can be displayed using the command Options[CircuitEquations] and can be<br />

changed using the Mathematica command SetOptions. For instance, the command<br />

SetOptions[CircuitEquations, BranchVoltagePrefix −> "E$"]<br />

would change the prefix used for branch voltages from V$ to E$. The names of the prefix options<br />

and their default settings are listed below.<br />

NodeVoltagePrefix −> "V$"<br />

BranchVoltagePrefix −> "V$"<br />

BranchCurrentPrefix −> "I$"<br />

ControllingVoltagePrefix −> "VC$"<br />

ControllingCurrentPrefix −> "IC$"

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

Saved successfully!

Ooh no, something went wrong!