From c079a66e65b5a5376136194142a1f5800a6dd5fe Mon Sep 17 00:00:00 2001 From: Stefan Date: Thu, 21 Nov 2024 11:12:08 +0100 Subject: [PATCH] Remove redundant code --- src/Electrical/Analog/ideal_components.jl | 37 ----------------------- 1 file changed, 37 deletions(-) diff --git a/src/Electrical/Analog/ideal_components.jl b/src/Electrical/Analog/ideal_components.jl index fcc798ff..a90d9258 100644 --- a/src/Electrical/Analog/ideal_components.jl +++ b/src/Electrical/Analog/ideal_components.jl @@ -300,43 +300,6 @@ Ideal diode based on the Shockley diode equation. end end -""" - Diode(; name, Is = 1e-6, n = 1, T = 300.15) - -Ideal diode based on the Shockley diode equation. - -# States - - - See [OnePort](@ref) - -# Connectors - - - `p` Positive pin - - `n` Negative pin - -# Parameters - - - `Is`: [`A`] Saturation current - - `n`: Ideality factor - - `T`: [K] Ambient temperature -""" -@mtkmodel Diode begin - begin - k = 1.380649e-23 # Boltzmann constant (J/K) - q = 1.602176634e-19 # Elementary charge (C) - end - - @extend v, i = oneport = OnePort(; v = 0.0) - @parameters begin - Is = 1e-6, [description = "Saturation current (A)"] - n = 1, [description = "Ideality factor"] - T = 300.15, [description = "Ambient temperature"] - end - @equations begin - i ~ Is * (exp(v * q / (n * k * T)) - 1) - end -end - """ HeatingDiode(; name, Is = 1e-6, n = 1)