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.

94 2. Tutorial<br />

Model[<br />

Name −> Diode,<br />

Selector −> DC,<br />

Ports −> {A, C},<br />

Parameters −> {Is, Global[Vt]},<br />

<br />

]<br />

The Definition Argument<br />

For behavioral model definitions, the Definition parameter must be of the form<br />

Definition −> Equations[eq 1 , eq 2 , ]<br />

where eq 1 , eq 2 , denote the symbolic device equations. (For compatibility reasons the right hand<br />

side of the Definition parameter may also be a list of equations.) When specifying an arbitrary<br />

set of equations we must tell Analog Insydes how the unknowns of the equations relate to the port<br />

currents and voltages of a model object.<br />

node+<br />

Voltage[node+, node-]<br />

Current[node+, node-]<br />

node-<br />

Figure 6.2: Voltage and current identifiers at a model port branch<br />

Ports of behavioral models are defined in terms of electrical port branches. Every unique pair<br />

of node identifiers [node+, node−] introduces an electrical port branch in between the model port<br />

nodes node+ and node−. For the associated port voltage and current the positive reference direction<br />

is defined to be oriented from node+ to node−, which is illustrated in Figure 6.2.<br />

Port variables in behavioral model equations can be referred to by means of two special keywords<br />

which are recognized by Analog Insydes and replaced by the corresponding global current or voltage<br />

identifiers during model instantiation and expansion. The keywords provided to make references to<br />

port currents and voltages are, respectively:<br />

Current[node+, node-]<br />

Voltage[node+, node-]<br />

Note that the above definition of positive reference directions implies that Current[nodeA, nodeB] and<br />

Current[nodeB, nodeA] are two different quantities and refer to different port branches. Similarly,<br />

Current[nodeA, nodeB] and Voltage[nodeB, nodeA] do not refer to the same port branch.

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

Saved successfully!

Ooh no, something went wrong!