What meaning are these terms of modeling in spice simulation?

There are some terms of transformer modeling in spice simulation, like below,

.SUBCKT 1TO1#0 1 2 3 4 VISRC 9 4 DC 0V FCTRL 6 2 VISRC 1E+0 EVCVS 8 9 5 2 1E+0 RPRI 1 7 1E-1 RSEC 8 3 1E-1 LLEAK 7 5 1E-6 LMAGNET 6 5 1E-6 .ENDS 1TO1

I hope to know, what the terms of VISRC and FCTRL are? and when I use specification of . FCTRL 6 2 VISRC 1E-1 EVCVS 8 9 5 2 1E-1

the simulation can be run, but if according to above specificagtion(1E

+0) the simulation will stop, what happed? why
Reply to
readeraz
Loading thread data ...

VISRC is an independant voltage source, as are all component named beginning with 'V' . From the above model, it appears to be a zero volt source. This is esentially a wire, but it has special meaning to spice. The curent through a voltage source may be referenced in another model line. In this case, VISRC is used in:

FCTRL 6 2 VISRC 1E-1

FCTRL is a linear dependant current source, as are all components beginning with 'F'. The value of this source is defined by the current VISRC times 1E-1.

Which 1E-1 parameter are you changing? Both?

Stop how? With what error? Or does it just hang?

--
Paul Hovnanian     mailto:Paul@Hovnanian.com
------------------------------------------------------------------
Marching to a different kettle of fish.
Reply to
Paul Hovnanian P.E.

This is what it seems to look like in a nodal mesh (fixed font)

1 ---\\/\\/\\---- 7 ----uuuuu----- 5 ------- 8 ---\\/\\/\\/------ 3 RPRI LLK l l l RSEC l l l l l l C l l C / \\ / \\ LMAG C / \\ / \\ C l l l l C \\ / \\ / l \\ / \\/ l l l FCTRL l l EVCVS l VISRC 2 -----x---/ \\----------------- 6 l 9 ---/ \\-------- 4 l l l l l l l \\ / l \\ / l---------------------------------l

1E+/-0 = 1

Your "transformer" is a subcircuit that includes frequency dependant components that I don't recognize. It could possibly be replaced by a coupled inductor with externally modified strays, if only basic function is required.

Perhaps you should ask the guy you got it from.

An old spice3 tutorial

formatting link

RL

Reply to
legg

Thank you very much, Paul, I change both of them. when dont change, prompt is too samll step . then hang.

Reply to
readeraz

--- 3

=A0l =A0 =A0 =A0l =A0 =A0RSEC

=A0 =A0 =A0l =A0 =A0 =A0l

=A0 =A0 =A0l =A0 =A0 =A0l

=A0 =A0 =A0l =A0 =A0 =A0l

=A0 =A0 / \\ =A0 =A0/ \\

=A0/ =A0 \\ =A0/ =A0 \\

=A0 l =A0 =A0 l l =A0 =A0l

=A0 =A0\\ =A0 / =A0 \\ =A0/

=A0 =A0 \\ / =A0 =A0 \\/

=A0 =A0 =A0l =A0 =A0 =A0 l

=A0 =A0l EVCVS l =A0 =A0VISRC

\\-------- 4

=A0 =A0 =A0l =A0 =A0 =A0 =A0 =A0 l =A0 l

=A0 =A0 l =A0 =A0 =A0 =A0 =A0 =A0\\ / =A0

Thank ou RL,

Reply to
readeraz

Probably too small a time step in your .TRAN statement. Or the step size is OK, but the time range is too big.

--
Paul Hovnanian	paul@hovnanian.com
-----------------------------------------------------------------------
Procrastinators: The leaders for tomorrow.
Reply to
Paul Hovnanian P.E.

t
.
1E

No, I set out to change the time range and no use. just change gain from 1 to 0.1 as saying above and all is right, why?

Reply to
readeraz

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.