Skip to content

Commit c079a66

Browse files
committed
Remove redundant code
1 parent 2e84c48 commit c079a66

File tree

1 file changed

+0
-37
lines changed

1 file changed

+0
-37
lines changed

src/Electrical/Analog/ideal_components.jl

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -300,43 +300,6 @@ Ideal diode based on the Shockley diode equation.
300300
end
301301
end
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

0 commit comments

Comments
 (0)