I have used a .IC statement to set a voltage across an inductor, but when I run transient analysis, the results are different than what I set.
In the Transient Analysis Limits, the Operating Point must be disabled. A .IC statement will usually keep the voltage fixed through an operating point calculation. However, when it computes an operating point, it short circuits all inductors. Thus an initial condition across an inductor is a mathematical impossibility and may end up producing extremely large currents within the circuit as the voltage iterates to 0. Disabling the operating point will fix this. Similarly, a voltage source also can not have a .IC statement across it.