Mehmet Emre Doğan
Creating an Ideal Diode for LTSpice
The Problem
The default diode that comes with LTSpice has a nonzero opening voltage. As shown in the figure 1, the diode D1 has a non-zero opening voltage; however, in simulations, sometimes use of an ideal diode becomes essential.
The Solution
By creating a custom diode object, this problem could be overcomed. In this tutorial, the creation of the ideal enough diode will be explained.Method 1
Step 1: Add a spice directive

Step 2: Add the spice directive
.model nameThatDiode D(Ron=0.1n Roff=1G Vfwd=0.001)

Step 3: Name your diode
nameThatDiode

Step 4: Success 🎉

Method 2
Step 1: Download the file I have already created
ideal_diode_custom.zip
Step 2: Unzip files to a folder
Step 3: Move that folder to LTSpice library directory
Generally, the fibrary directory is found at the following path: C:\Users\YOUR_USER_NAME\Documents\LTspiceXVII\lib\sym

Step 4: Success 🎉
