steve/alloy-power-inductor
Shielded metal-alloy SMD power inductors in the Würth WE-MAPI sizes, 2.0 x 1.6 mm to 4.1 x 4.1 mm, by the maker's datasheets.
Wire-wound shielded SMD power inductors in the Sunlord SWPA sizes, 2.5 x 2.0 mm to 8 x 8 mm, by the maker's dimension table.
| 1 | """Wire-wound shielded SMD power inductor, Sunlord SWPA series sizes. Centred on the origin, sitting on the XY plane, with the two bottom terminals at |
| 2 | the -X and +X sides. Dimensions from Sunlord's SWPA datasheet table for the size named by `series`; see the README.""" |
| 3 | from steve import Model |
| 4 | |
| 5 | series = "SWPA4030S" # Sunlord SWPA size code |
| 6 | |
| 7 | # size: (drawing, A along the terminals' spacing, B, C height max, D terminal length, E terminal width, F gap between the terminals), ranges (min, max), |
| 8 | # mm. Sunlord "Wire Wound SMD Power Inductors - SWPA Series", Revised 2019/04/01, Shape and Dimensions table (page 2). |
| 9 | SIZES = { |
| 10 | "SWPA252010S": ("Fig.1", (2.4, 2.6), (1.9, 2.1), 1.0, (1.8, 2.2), (0.6, 1), (0.6, 1)), |
| 11 | "SWPA252012S": ("Fig.1", (2.4, 2.6), (1.9, 2.1), 1.2, (1.8, 2.2), (0.6, 1), (0.6, 1)), |
| 12 | "SWPA3010S": ("Fig.2", (2.8, 3.2), (2.8, 3.2), 1.0, (2.3, 2.7), (0.55, 0.95), (1.3, 1.7)), |
| 13 | "SWPA3012S": ("Fig.2", (2.8, 3.2), (2.8, 3.2), 1.2, (2.3, 2.7), (0.55, 0.95), (1.3, 1.7)), |
| 14 | "SWPA3015S": ("Fig.2", (2.8, 3.2), (2.8, 3.2), 1.5, (2.3, 2.7), (0.55, 0.95), (1.3, 1.7)), |
| 15 | "SWPA4010S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 1.0, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 16 | "SWPA4012S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 1.2, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 17 | "SWPA4018S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 1.8, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 18 | "SWPA4020S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 2.0, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 19 | "SWPA4026S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 2.6, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 20 | "SWPA4030S": ("Fig.2", (3.8, 4.2), (3.8, 4.2), 3.0, (3.1, 3.5), (0.75, 1.15), (1.9, 2.3)), |
| 21 | "SWPA5012S": ("Fig.3", (4.8, 5.2), (4.8, 5.2), 1.2, (3.8, 4.2), (1.05, 1.45), (2.3, 2.7)), |
| 22 | "SWPA5020S": ("Fig.3", (4.8, 5.2), (4.8, 5.2), 2.0, (3.8, 4.2), (1.05, 1.45), (2.3, 2.7)), |
| 23 | "SWPA5040S": ("Fig.3", (4.8, 5.2), (4.8, 5.2), 4.0, (3.8, 4.2), (1.05, 1.45), (2.3, 2.7)), |
| 24 | "SWPA5045S": ("Fig.3", (4.8, 5.2), (4.8, 5.2), 4.5, (3.8, 4.2), (1.1, 1.5), (2.3, 2.7)), |
| 25 | "SWPA6020S": ("Fig.2", (5.7, 6.3), (5.7, 6.3), 2.0, (4.6, 5.2), (1.25, 1.85), (2.6, 3.2)), |
| 26 | "SWPA6028S": ("Fig.2", (5.7, 6.3), (5.7, 6.3), 2.8, (4.6, 5.2), (1.25, 1.85), (2.6, 3.2)), |
| 27 | "SWPA6040S": ("Fig.2", (5.7, 6.3), (5.7, 6.3), 4.0, (4.6, 5.2), (1.25, 1.85), (2.6, 3.2)), |
| 28 | "SWPA6045S": ("Fig.2", (5.7, 6.3), (5.7, 6.3), 4.5, (4.6, 5.2), (1.25, 1.85), (2.6, 3.2)), |
| 29 | "SWPA8040S": ("Fig.2", (7.7, 8.3), (7.7, 8.3), 4.2, (6, 6.6), (1.7, 2.3), (3.7, 4.3)), |
| 30 | "SWPA8050S": ("Fig.3", (7.7, 8.3), (7.7, 8.3), 5.0, (6, 6.6), (1.7, 2.3), (3.7, 4.3)), |
| 31 | "SWPA8060S": ("Fig.3", (7.7, 8.3), (7.7, 8.3), 6.0, (6, 6.6), (1.7, 2.3), (3.7, 4.3)), |
| 32 | "SWPA8065S": ("Fig.3", (7.7, 8.3), (7.7, 8.3), 6.5, (6, 6.6), (1.7, 2.3), (3.7, 4.3)), |
| 33 | } |
| 34 | PAD_T = 0.1 # terminal thickness under the body: a proportion, for looks |
| 35 | |
| 36 | |
| 37 | def mid(pair): |
| 38 | return (pair[0] + pair[1]) / 2 |
| 39 | |
| 40 | |
| 41 | fig, A, B, top, D, E, F = SIZES[series] |
| 42 | along, across, term_l, term_w, gap = mid(A), mid(B), mid(D), mid(E), mid(F) |
| 43 | model = Model() |
| 44 | model.plane("body_plane", on="XY", offset=PAD_T, name="Body") |
| 45 | with model.sketch("body_sketch", on="body_plane", name="Body") as sk: |
| 46 | sk.rect("body_rect", (-along / 2, -across / 2), (along / 2, across / 2)) |
| 47 | model.extrude("body", "body_sketch", distance=top - PAD_T, name="Body") |
| 48 | outer = min(gap / 2 + term_w, along / 2) # SWPA5045S's nominal E + F + E is 5.1 against A 5.0: the terminals stop at the body's side |
| 49 | with model.sketch("terms_sketch", on="XY", name="Terminals") as sk: |
| 50 | sk.rect("term_left", (-outer, -term_l / 2), (-gap / 2, term_l / 2)) |
| 51 | sk.rect("term_right", (gap / 2, -term_l / 2), (outer, term_l / 2)) |
| 52 | model.extrude("terms", "terms_sketch", distance=PAD_T + 0.05, name="Terminals") |
| 53 | model.material("pla", color="#3a3c40") |
| 54 | result = model.result() |
| 55 |
| 1 | name = "steve/wirewound-power-inductor" |
| 2 | version = "1.0.0" |
| 3 | runtime = "steve" |
| 4 | license = "MIT" |
| 5 | summary = "Wire-wound shielded SMD power inductors in the Sunlord SWPA sizes, 2.5 x 2.0 mm to 8 x 8 mm, by the maker's dimension table." |
| 6 | description = """Wire-wound shielded SMD power inductors for board layouts: body and the two bottom terminals, sized from Sunlord's SWPA datasheet table. See the README.""" |
| 7 | tags = ["inductor", "power-inductor", "wire-wound", "shielded", "smd", "electronics"] |
| 8 | |
| 9 | [parameters.series] |
| 10 | type = "choice" |
| 11 | default = "SWPA4030S" |
| 12 | choices = ["SWPA252010S", "SWPA252012S", "SWPA3010S", "SWPA3012S", "SWPA3015S", "SWPA4010S", "SWPA4012S", "SWPA4018S", "SWPA4020S", "SWPA4026S", "SWPA4030S", "SWPA5012S", "SWPA5020S", "SWPA5040S", "SWPA5045S", "SWPA6020S", "SWPA6028S", "SWPA6040S", "SWPA6045S", "SWPA8040S", "SWPA8050S", "SWPA8060S", "SWPA8065S"] |
| 13 | label = "Size" |
| 14 | |
| 15 | [[presets]] |
| 16 | id = "SWPA252010S" |
| 17 | title = "SWPA252010S wire-wound power inductor, 2.5 x 2 x 1 mm" |
| 18 | params = { series = "SWPA252010S" } |
| 19 | aliases = ["Sunlord SWPA252010S", "SWPA252010S inductor"] |
| 20 | |
| 21 | [[presets]] |
| 22 | id = "SWPA252012S" |
| 23 | title = "SWPA252012S wire-wound power inductor, 2.5 x 2 x 1.2 mm" |
| 24 | params = { series = "SWPA252012S" } |
| 25 | aliases = ["Sunlord SWPA252012S", "SWPA252012S inductor"] |
| 26 | |
| 27 | [[presets]] |
| 28 | id = "SWPA3010S" |
| 29 | title = "SWPA3010S wire-wound power inductor, 3 x 3 x 1 mm" |
| 30 | params = { series = "SWPA3010S" } |
| 31 | aliases = ["Sunlord SWPA3010S", "SWPA3010S inductor"] |
| 32 | |
| 33 | [[presets]] |
| 34 | id = "SWPA3012S" |
| 35 | title = "SWPA3012S wire-wound power inductor, 3 x 3 x 1.2 mm" |
| 36 | params = { series = "SWPA3012S" } |
| 37 | aliases = ["Sunlord SWPA3012S", "SWPA3012S inductor"] |
| 38 | |
| 39 | [[presets]] |
| 40 | id = "SWPA3015S" |
| 41 | title = "SWPA3015S wire-wound power inductor, 3 x 3 x 1.5 mm" |
| 42 | params = { series = "SWPA3015S" } |
| 43 | aliases = ["Sunlord SWPA3015S", "SWPA3015S inductor"] |
| 44 | |
| 45 | [[presets]] |
| 46 | id = "SWPA4010S" |
| 47 | title = "SWPA4010S wire-wound power inductor, 4 x 4 x 1 mm" |
| 48 | params = { series = "SWPA4010S" } |
| 49 | aliases = ["Sunlord SWPA4010S", "SWPA4010S inductor"] |
| 50 | |
| 51 | [[presets]] |
| 52 | id = "SWPA4012S" |
| 53 | title = "SWPA4012S wire-wound power inductor, 4 x 4 x 1.2 mm" |
| 54 | params = { series = "SWPA4012S" } |
| 55 | aliases = ["Sunlord SWPA4012S", "SWPA4012S inductor"] |
| 56 | |
| 57 | [[presets]] |
| 58 | id = "SWPA4018S" |
| 59 | title = "SWPA4018S wire-wound power inductor, 4 x 4 x 1.8 mm" |
| 60 | params = { series = "SWPA4018S" } |
| 61 | aliases = ["Sunlord SWPA4018S", "SWPA4018S inductor"] |
| 62 | |
| 63 | [[presets]] |
| 64 | id = "SWPA4020S" |
| 65 | title = "SWPA4020S wire-wound power inductor, 4 x 4 x 2 mm" |
| 66 | params = { series = "SWPA4020S" } |
| 67 | aliases = ["Sunlord SWPA4020S", "SWPA4020S inductor"] |
| 68 | |
| 69 | [[presets]] |
| 70 | id = "SWPA4026S" |
| 71 | title = "SWPA4026S wire-wound power inductor, 4 x 4 x 2.6 mm" |
| 72 | params = { series = "SWPA4026S" } |
| 73 | aliases = ["Sunlord SWPA4026S", "SWPA4026S inductor"] |
| 74 | |
| 75 | [[presets]] |
| 76 | id = "SWPA4030S" |
| 77 | title = "SWPA4030S wire-wound power inductor, 4 x 4 x 3 mm" |
| 78 | params = { series = "SWPA4030S" } |
| 79 | aliases = ["Sunlord SWPA4030S", "SWPA4030S inductor"] |
| 80 | |
| 81 | [[presets]] |
| 82 | id = "SWPA5012S" |
| 83 | title = "SWPA5012S wire-wound power inductor, 5 x 5 x 1.2 mm" |
| 84 | params = { series = "SWPA5012S" } |
| 85 | aliases = ["Sunlord SWPA5012S", "SWPA5012S inductor"] |
| 86 | |
| 87 | [[presets]] |
| 88 | id = "SWPA5020S" |
| 89 | title = "SWPA5020S wire-wound power inductor, 5 x 5 x 2 mm" |
| 90 | params = { series = "SWPA5020S" } |
| 91 | aliases = ["Sunlord SWPA5020S", "SWPA5020S inductor"] |
| 92 | |
| 93 | [[presets]] |
| 94 | id = "SWPA5040S" |
| 95 | title = "SWPA5040S wire-wound power inductor, 5 x 5 x 4 mm" |
| 96 | params = { series = "SWPA5040S" } |
| 97 | aliases = ["Sunlord SWPA5040S", "SWPA5040S inductor"] |
| 98 | |
| 99 | [[presets]] |
| 100 | id = "SWPA6020S" |
| 101 | title = "SWPA6020S wire-wound power inductor, 6 x 6 x 2 mm" |
| 102 | params = { series = "SWPA6020S" } |
| 103 | aliases = ["Sunlord SWPA6020S", "SWPA6020S inductor"] |
| 104 | |
| 105 | [[presets]] |
| 106 | id = "SWPA6028S" |
| 107 | title = "SWPA6028S wire-wound power inductor, 6 x 6 x 2.8 mm" |
| 108 | params = { series = "SWPA6028S" } |
| 109 | aliases = ["Sunlord SWPA6028S", "SWPA6028S inductor"] |
| 110 | |
| 111 | [[presets]] |
| 112 | id = "SWPA6040S" |
| 113 | title = "SWPA6040S wire-wound power inductor, 6 x 6 x 4 mm" |
| 114 | params = { series = "SWPA6040S" } |
| 115 | aliases = ["Sunlord SWPA6040S", "SWPA6040S inductor"] |
| 116 | |
| 117 | [[presets]] |
| 118 | id = "SWPA6045S" |
| 119 | title = "SWPA6045S wire-wound power inductor, 6 x 6 x 4.5 mm" |
| 120 | params = { series = "SWPA6045S" } |
| 121 | aliases = ["Sunlord SWPA6045S", "SWPA6045S inductor"] |
| 122 | |
| 123 | [[presets]] |
| 124 | id = "SWPA8040S" |
| 125 | title = "SWPA8040S wire-wound power inductor, 8 x 8 x 4.2 mm" |
| 126 | params = { series = "SWPA8040S" } |
| 127 | aliases = ["Sunlord SWPA8040S", "SWPA8040S inductor"] |
| 128 | |
| 129 | [[presets]] |
| 130 | id = "SWPA5045S" |
| 131 | title = "SWPA5045S wire-wound power inductor, 5 x 5 x 4.5 mm" |
| 132 | params = { series = "SWPA5045S" } |
| 133 | aliases = ["Sunlord SWPA5045S", "SWPA5045S inductor"] |
| 134 | |
| 135 | [[presets]] |
| 136 | id = "SWPA8050S" |
| 137 | title = "SWPA8050S wire-wound power inductor, 8 x 8 x 5 mm" |
| 138 | params = { series = "SWPA8050S" } |
| 139 | aliases = ["Sunlord SWPA8050S", "SWPA8050S inductor"] |
| 140 | |
| 141 | [[presets]] |
| 142 | id = "SWPA8060S" |
| 143 | title = "SWPA8060S wire-wound power inductor, 8 x 8 x 6 mm" |
| 144 | params = { series = "SWPA8060S" } |
| 145 | aliases = ["Sunlord SWPA8060S", "SWPA8060S inductor"] |
| 146 | |
| 147 | [[presets]] |
| 148 | id = "SWPA8065S" |
| 149 | title = "SWPA8065S wire-wound power inductor, 8 x 8 x 6.5 mm" |
| 150 | params = { series = "SWPA8065S" } |
| 151 | aliases = ["Sunlord SWPA8065S", "SWPA8065S inductor"] |
| 152 |
Wire-wound shielded SMD power inductors in the Sunlord SWPA sizes: the body and the two terminals underneath. The inductor is centred on the origin, sitting on the XY plane, with the terminals on the -X and +X sides. Inductance doesn't change the outside.
Sunlord, "Wire Wound SMD Power Inductors – SWPA Series", revised 2019/04/01: Shape and Dimensions table (page 2). The copy read is the one LCSC hosts, https://atta.szlcsc.com/upload/public/pdf/source/20260722/2E1AF3DDC73E718387934E6B7AB7AF01.pdf.
The table gives, per size, A (along the terminals' spacing), B, the maximum height C, and the terminals' length D, width E and gap F, each nominal ± tolerance. The model uses the middle of each range, and the height is the maximum, so read it as an envelope. For SWPA5045S the nominal terminal widths and gap add up to 5.1 mm against a 5.0 mm body; the model stops the terminals at the body's side.
Proportions, for looks only: the terminals' 0.1 mm thickness under the body. The datasheet draws three outlines (notched corners for most sizes, rounded for 5012 to 5045 and 8050 to 8065); the model is a plain block for all of them. Recommended land pattern sizes aren't modelled.
Sunlord's MWSA molded inductors are the molded-power-inductor part. Other series aren't here yet; see COVERAGE.md.
| 1 | # Wire-wound power inductor |
| 2 | |
| 3 | Wire-wound shielded SMD power inductors in the Sunlord SWPA sizes: the body and the two terminals underneath. The inductor is centred on the origin, sitting on the XY plane, with the terminals on the -X and +X sides. Inductance doesn't change the outside. |
| 4 | |
| 5 | ## Source |
| 6 | |
| 7 | Sunlord, "Wire Wound SMD Power Inductors – SWPA Series", revised 2019/04/01: Shape and Dimensions table (page 2). The copy read is the one LCSC hosts, `https://atta.szlcsc.com/upload/public/pdf/source/20260722/2E1AF3DDC73E718387934E6B7AB7AF01.pdf`. |
| 8 | |
| 9 | The table gives, per size, A (along the terminals' spacing), B, the maximum height C, and the terminals' length D, width E and gap F, each nominal ± tolerance. The model uses the middle of each range, and the height is the maximum, so read it as an envelope. For SWPA5045S the nominal terminal widths and gap add up to 5.1 mm against a 5.0 mm body; the model stops the terminals at the body's side. |
| 10 | |
| 11 | **Proportions, for looks only:** the terminals' 0.1 mm thickness under the body. The datasheet draws three outlines (notched corners for most sizes, rounded for 5012 to 5045 and 8050 to 8065); the model is a plain block for all of them. Recommended land pattern sizes aren't modelled. |
| 12 | |
| 13 | Sunlord's MWSA molded inductors are the `molded-power-inductor` part. Other series aren't here yet; see `COVERAGE.md`. |
| 14 |
Wire-wound shielded SMD power inductors for board layouts: body and the two bottom terminals, sized from Sunlord's SWPA datasheet table. See the README.
Wire-wound shielded SMD power inductors in the Sunlord SWPA sizes: the body and the two terminals underneath. The inductor is centred on the origin, sitting on the XY plane, with the terminals on the -X and +X sides. Inductance doesn't change the outside.
Sunlord, "Wire Wound SMD Power Inductors – SWPA Series", revised 2019/04/01: Shape and Dimensions table (page 2). The copy read is the one LCSC hosts, https://atta.szlcsc.com/upload/public/pdf/source/20260722/2E1AF3DDC73E718387934E6B7AB7AF01.pdf.
The table gives, per size, A (along the terminals' spacing), B, the maximum height C, and the terminals' length D, width E and gap F, each nominal ± tolerance. The model uses the middle of each range, and the height is the maximum, so read it as an envelope. For SWPA5045S the nominal terminal widths and gap add up to 5.1 mm against a 5.0 mm body; the model stops the terminals at the body's side.
Proportions, for looks only: the terminals' 0.1 mm thickness under the body. The datasheet draws three outlines (notched corners for most sizes, rounded for 5012 to 5045 and 8050 to 8065); the model is a plain block for all of them. Recommended land pattern sizes aren't modelled.
Sunlord's MWSA molded inductors are the molded-power-inductor part. Other series aren't here yet; see COVERAGE.md.
Shielded metal-alloy SMD power inductors in the Würth WE-MAPI sizes, 2.0 x 1.6 mm to 4.1 x 4.1 mm, by the maker's datasheets.
Shielded high-current SMD power inductors in the Würth WE-HCI sizes, 5.3 x 5.6 mm to 22 x 22.5 mm, by the maker's datasheets.
Shielded SMD flat-wire high-current inductors in the Würth WE-HCM sizes, 7 x 7 mm to 13.3 x 13.5 mm, by the maker's datasheets.
Power molded chip inductors in the Würth WE-PMCI sizes, 1.6 x 0.8 mm to 3.2 x 2.5 mm, by the maker's datasheets.