@@ -3,13 +3,13 @@ abstract type AbstractCablePart end
33@inline r_ex (p:: AbstractCablePart ) = r_ex (p. shape)
44
55struct ConductorPart{L, T, S <: AbstractShape{L, T} } <: AbstractCablePart
6- tag :: Symbol
6+ cmp :: Symbol
77 shape:: S
88 material:: Material{T}
99end
1010
1111function ConductorPart (
12- tag :: Symbol ,
12+ cmp :: Symbol ,
1313 shape:: AbstractShape{L, T_shape} ,
1414 mat:: Material{T_mat} ,
1515) where {L, T_shape <: Real , T_mat <: Real }
@@ -20,17 +20,17 @@ function ConductorPart(
2020 s = convert (AbstractShape{L, T}, shape)
2121 m = convert (Material{T}, mat)
2222
23- return ConductorPart {L, T, typeof(s)} (tag , s, m)
23+ return ConductorPart {L, T, typeof(s)} (cmp , s, m)
2424end
2525
2626struct InsulatorPart{L, T, S <: AbstractShape{L, T} } <: AbstractCablePart
27- tag :: Symbol
27+ cmp :: Symbol
2828 shape:: S
2929 material:: Material{T}
3030end
3131
3232function InsulatorPart (
33- tag :: Symbol ,
33+ cmp :: Symbol ,
3434 shape:: AbstractShape{L, T_shape} ,
3535 mat:: Material{T_mat} ,
3636) where {L, T_shape <: Real , T_mat <: Real }
@@ -41,5 +41,5 @@ function InsulatorPart(
4141 s = convert (AbstractShape{L, T}, shape)
4242 m = convert (Material{T}, mat)
4343
44- return InsulatorPart {L, T, typeof(s)} (tag , s, m)
44+ return InsulatorPart {L, T, typeof(s)} (cmp , s, m)
4545end
0 commit comments