According to the write-up on Diodes there is a “simplified behavioral diode” which allows zero forward voltage drop and infinite reverse voltage drop…where is it. I have not been able to find it?
Hi, Tom.
Based on the Help, looks like you set RON to a positive value (perhaps very small).
Diode.qsch (3.0 MB)
–robert
Thank you…I was putting the RON as a symbol attribute as opposed to the model statement.
In SPICE, diode is described through a .model statement, in regardless it is behavioral or not.
I made an ideal diode symbol in my library KSKelvin-Github/Qspice
/Symbols-KSKelvin/devices/switches/Diode-Ideal(.model).qsym
The concept is that we can place a .model statement in the Library File in Symbol Properties. An additional character | needs to be added in front of the .model statement for an embedded .model. I hide the first attribute (model name) and change the color of the triangle to indicate that it is something special for visual purposes. With a symbol like this, you can avoid typing the .model statement every time you need the ideal diode.
The downside is that if we want to change Ron or Vfwd for all ideal diodes, this type of symbol is not convenient for that.
I created an ideal diode just like you inicated above with the embedded .model … statement and the | character in front of the .model… in the Library File property. The simulation runs but there is a message that says that the simulation could not find a model for D1 and assumed defaults which sort of defeats the reason for the embedded .model
I would really like to get this to work so that I could edit the ideal model properties on the test schematic.
Never mind…I found the problem. I forgot to add a “D” after the diode name in the |.model statement. All is well now.
