File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -48,17 +48,17 @@ Generic resistor with optional temperature dependency.
4848 end
4949
5050 @parameters begin
51- R = 1.0 , [description = " Reference resistance" , unit = " Ω " ]
52- T_ref = 300.15 , [description = " Reference temperature" , unit = " K " ]
53- alpha = 0.0 , [description = " Temperature coefficient of resistance" , unit = " K⁻¹ " ]
51+ R = 1.0 , [description = " Reference resistance" ]
52+ T_ref = 300.15 , [description = " Reference temperature" ]
53+ alpha = 0.0 , [description = " Temperature coefficient of resistance" ]
5454 end
5555
5656 if T_dep
5757 @components begin
5858 heat_port = HeatPort ()
5959 end
6060 @variables begin
61- R_T (t), [description = " Temperature-dependent resistance" , unit = " Ω " ]
61+ R_T (t), [description = " Temperature-dependent resistance" ]
6262 end
6363 @equations begin
6464 R_T ~ R * (1 + alpha * (heat_port. T - T_ref)) # Temperature-dependent resistance
You can’t perform that action at this time.
0 commit comments