Skip to content

Commit fb90653

Browse files
committed
unit removed from VariableResistor - all tests pass now
1 parent f1021de commit fb90653

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/Electrical/Analog/ideal_components.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,9 @@ R = R_const + pos * R_ref * (1 + alpha * (port.T - T_ref))
391391
end
392392

393393
@parameters begin
394-
R_ref = 1.0,
395-
[description = "Resistance at temperature T_ref when fully closed (pos=1.0)",
396-
unit = "Ω"]
397-
T_ref = 300.15, [description = "Reference temperature", unit = "K"]
398-
R_const = 1e-3, [description = "Constant resistance between p and n", unit = "Ω"]
394+
R_ref = 1.0, [description = "Resistance at temperature T_ref when fully closed (pos=1.0) (Ω)"]
395+
T_ref = 300.15, [description = "Reference temperature (K)"]
396+
R_const = 1e-3, [description = "Constant resistance between p and n (Ω)"]
399397
end
400398

401399
@components begin
@@ -404,13 +402,13 @@ R = R_const + pos * R_ref * (1 + alpha * (port.T - T_ref))
404402

405403
@variables begin
406404
pos(t), [description = "Position of the wiper (normally 0-1)"]
407-
R(t), [description = "Resistance", unit = "Ω"]
405+
R(t), [description = "Resistance (Ω)"]
408406
end
409407

410408
if T_dep
411409
@parameters begin
412410
alpha = 1e-3,
413-
[description = "Temperature coefficient of resistance", unit = "K^-1"]
411+
[description = "Temperature coefficient of resistance (K^-1)"]
414412
end
415413
@components begin
416414
port = HeatPort()

0 commit comments

Comments
 (0)