www.kxcad.net Home > Electronic Index > Altium(Protel) Index

Model Kind
General
Model Sub-Kind
Spice Subcircuit
SPICE Prefix
X
Model Name
SINI
SPICE Netlist Template Format
@DESIGNATOR %1 %2 %3 %4 @MODEL
Parameters (definable at component level)
None
Notes
The content of the sub-circuit file (SINI.ckt) associated with this model is shown below. The formula/equation used to provide this function is declared as part of the netlist-specific entry, under the .SUBCKT line of the file.
*Sine of Current
.SUBCKT SINI 1 2 3 4
VX 1 2 0
BX 4 3 I=SIN(I(VX))
.ENDS SINI
The resulting current is the value expressed in radians.
Examples

Consider the circuit in the image above. With respect to the SINI component, the entries in the SPICE netlist will be:
*Schematic Netlist:
XM1 IN 0 OUT 0 SINI
.
.
*Models and Subcircuit:
.SUBCKT SINI 1 2 3 4
VX 1 2 0
BX 4 3 I=SIN(I(VX))
.ENDS SINI
The effect of the function can be seen in the resultant waveforms obtained by running a transient analysis of the circuit:

Links
Sine of Voltage (Single-Ended Input)
Sine of Voltage (Differential Input)