.IC Statement
.IC statements can be used to specify initial conditions for certain capacitors and inductors. This is purely for supporting legacy syntax, as initial conditions can be directly specified in the (C) Capacitor Statement or (L) Inductor Statement.
.IC provides an alternative syntax for specifying the starting voltage or current for capacitors and inductors.
.IC V(nodename)=value | I(inductorName)=value <...>
Where:
V(nodename)=value- Sets initial voltage at a node (for capacitors)I(inductorName)=value- Sets initial current through an inductorMultiple conditions can be specified in one statement
.PARAM initialCurrent=2
C1 out 0 100u
L1 in out 1m
.IC V(out)=5 I(L1)={initialCurrent}
Several restrictions apply when using .IC for capacitors:
One node must be ground.
The non-ground node must only be connected to a single capacitor.
The capacitance must be constant.
.IC is overwritten when the IC parameter is specified in the corresponding capacitor/inductor.