@@ -20,7 +20,7 @@ Idle running branch.
20
20
@mtkmodel Idle begin
21
21
@extend (Phi,) = two_port = TwoPort ()
22
22
@equations begin
23
- Phi ~ 0
23
+ Phi ~ 0.0
24
24
end
25
25
end
26
26
@@ -68,7 +68,7 @@ Constant permeance.
68
68
@mtkmodel ConstantPermeance begin
69
69
@extend V_m, Phi = two_port = TwoPort ()
70
70
@parameters begin
71
- G_m = 1.0 , [description = " Magnetic permeance" ]
71
+ G_m = 1.0 , [description = " Magnetic permeance" , unit = u " H " ]
72
72
end
73
73
@equations begin
74
74
Phi ~ G_m * V_m
@@ -87,7 +87,7 @@ Constant reluctance.
87
87
@mtkmodel ConstantReluctance begin
88
88
@extend V_m, Phi = two_port = TwoPort (; Phi = 0.0 )
89
89
@parameters begin
90
- R_m = 1.0 , [description = " Magnetic reluctance" ]
90
+ R_m = 1.0 , [description = " Magnetic reluctance" , unit = u " H^-1 " ]
91
91
end
92
92
@equations begin
93
93
V_m ~ Phi * R_m
@@ -114,8 +114,9 @@ Initial magnetic flux flowing into the port_p can be set with `Phi` ([Wb])
114
114
N, [description = " Number of turns" ]
115
115
end
116
116
@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" ]
119
120
end
120
121
@extend V_m, Phi = two_port = TwoPort (; Phi)
121
122
@components begin
@@ -146,10 +147,11 @@ Initial magnetic flux flowing into the port_p can be set with `Phi` ([`Wb`])
146
147
"""
147
148
@mtkmodel EddyCurrent begin
148
149
@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 " Ω" ]
153
155
end
154
156
@extend (V_m, Phi) = two_port = TwoPort (; Phi)
155
157
@equations begin
0 commit comments