readeraz said:
There are some terms of transformer modeling in spice simulation, like
below,
.SUBCKT 1TO1#0 1 2 3 4
VISRC 9 4 DC 0V
N+ and N- are the positive and negative nodes, respectively. Note that
voltage sources need not be grounded. Positive current is assumed to flow
from the positive node, through the source, to the negative node. A current
source of positive value forces current to flow out of the N+ node, through
the source, and into the N- node. Voltage sources, in addition to being used
for circuit excitation, are the 'ammeters' for SPICE, that is, zero valued
voltage sources may be inserted into the circuit for the purpose of
measuring current. They of course have no effect on circuit operation since
they represent short-circuits.
Linear Current-Controlled Current Sources
General form:
FXXXXXXX N+ N- VNAM VALUE
Examples:
F1 13 5 VSENS 5
N+ and N- are the positive and negative nodes, respectively. Current flow is
from the positive node, through the source, to the negative node. VNAM is
the name of a voltage source through which the controlling current flows.
The direction of positive controlling current flow is from the positive
node, through the source, to the negative node of VNAM. VALUE is the current
gain.
Linear Voltage-Controlled Voltage Sources
General form:
EXXXXXXX N+ N- NC+ NC- VALUE
Examples:
E1 2 3 14 1 2.0
N+ is the positive node, and N- is the negative node. NC+ and NC- are the
positive and negative controlling nodes, respectively. VALUE is the voltage
gain.