File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -300,43 +300,6 @@ Ideal diode based on the Shockley diode equation.
300300 end
301301end
302302
303- """
304- Diode(; name, Is = 1e-6, n = 1, T = 300.15)
305-
306- Ideal diode based on the Shockley diode equation.
307-
308- # States
309-
310- - See [OnePort](@ref)
311-
312- # Connectors
313-
314- - `p` Positive pin
315- - `n` Negative pin
316-
317- # Parameters
318-
319- - `Is`: [`A`] Saturation current
320- - `n`: Ideality factor
321- - `T`: [K] Ambient temperature
322- """
323- @mtkmodel Diode begin
324- begin
325- k = 1.380649e-23 # Boltzmann constant (J/K)
326- q = 1.602176634e-19 # Elementary charge (C)
327- end
328-
329- @extend v, i = oneport = OnePort (; v = 0.0 )
330- @parameters begin
331- Is = 1e-6 , [description = " Saturation current (A)" ]
332- n = 1 , [description = " Ideality factor" ]
333- T = 300.15 , [description = " Ambient temperature" ]
334- end
335- @equations begin
336- i ~ Is * (exp (v * q / (n * k * T)) - 1 )
337- end
338- end
339-
340303"""
341304 HeatingDiode(; name, Is = 1e-6, n = 1)
342305
You can’t perform that action at this time.
0 commit comments