举例:Syntax: 语法 Cnnn n1 n2 Q=<expression> [ic=<value>] [m=<value>]
There is a special variable, x, that means the voltage across the device. Therefore, a 100pF constant capacitance can be written as Cnnn n1 n2 Q=100p*x 含义:容量为100pF电容,x表示设备上的电压。
A capacitance with an abrupt change from 100p to 300p at zero volts can be written as Cnnn n1 n2 Q=x*if(x<0,100p,300p) 含义:电容在零伏时从100p突变到300p
Resistor (and Capacitor) Model Statements
It's not in the .model section of the Help file, but LTspice seems to recognize standard model statements for resistors (RES) and capacitors (CAP), but not inductors (IND).
LTspice似乎识别了电阻(RES)和电容(CAP)的标准模型语句,但没有识别电感(IND)。
As in many other SPICE simulators, "RES" and "CAP" are allowed as model keywords. For example, with the following line of spicetext和许多其他SPICE模拟器一样,“RES”和“CAP”也可以作为模型关键字。
.model X7R cap (T_measured=20 Tc1=0 Tc2=-19u)
on a schematic, if a capacitor then has "X7R" entered into its "SpiceModel" field (via ctrl-right mouse click) its base value will be multiplied by the following temperature factor, TF
TF = 1 + Tc1*(T-Tmeasured) + Tc2*(T-Tmeasured)**2
where T = the global temperature TEMP or the local instance if specified.