@@ -20,7 +20,7 @@ Idle running branch.
2020@mtkmodel Idle begin
2121 @extend (Phi,) = two_port = TwoPort ()
2222 @equations begin
23- Phi ~ 0
23+ Phi ~ 0.0
2424 end
2525end
2626
@@ -68,7 +68,7 @@ Constant permeance.
6868@mtkmodel ConstantPermeance begin
6969 @extend V_m, Phi = two_port = TwoPort ()
7070 @parameters begin
71- G_m = 1.0 , [description = " Magnetic permeance" ]
71+ G_m = 1.0 , [description = " Magnetic permeance" , unit = u " H " ]
7272 end
7373 @equations begin
7474 Phi ~ G_m * V_m
@@ -87,7 +87,7 @@ Constant reluctance.
8787@mtkmodel ConstantReluctance begin
8888 @extend V_m, Phi = two_port = TwoPort (; Phi = 0.0 )
8989 @parameters begin
90- R_m = 1.0 , [description = " Magnetic reluctance" ]
90+ R_m = 1.0 , [description = " Magnetic reluctance" , unit = u " H^-1 " ]
9191 end
9292 @equations begin
9393 V_m ~ Phi * R_m
@@ -114,8 +114,9 @@ Initial magnetic flux flowing into the port_p can be set with `Phi` ([Wb])
114114 N, [description = " Number of turns" ]
115115 end
116116 @variables begin
117- v (t)
118- i (t)
117+ v (t),
118+ [description = " Voltage difference from positive to negative pin" , unit = u " V" ]
119+ i (t), [description = " Current" , unit = u " A" ]
119120 end
120121 @extend V_m, Phi = two_port = TwoPort (; Phi)
121122 @components begin
@@ -146,10 +147,11 @@ Initial magnetic flux flowing into the port_p can be set with `Phi` ([`Wb`])
146147"""
147148@mtkmodel EddyCurrent begin
148149 @parameters begin
149- rho = 0.098e-6 , [description = " Resistivity of flux tube material" ]
150- l = 1 , [description = " Average length of eddy current path" ]
151- A = 1 , [description = " Cross sectional area of eddy current path" ]
152- R = rho * l / A # Electrical resistance of eddy current path
150+ rho = 0.098e-6 , [description = " Resistivity of flux tube material" , unit = u " Ω*m" ]
151+ l = 1 , [description = " Average length of eddy current path" , unit = u " m" ]
152+ A = 1 , [description = " Cross sectional area of eddy current path" , unit = u " m^2" ]
153+ R = rho * l / A,
154+ [description = " Electrical resistance of eddy current path" , unit = u " Ω" ]
153155 end
154156 @extend (V_m, Phi) = two_port = TwoPort (; Phi)
155157 @equations begin
0 commit comments