[Design] Drawing a wire (inductor) on shapes

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

[Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

I have a following question: I would like to design a inductive element (electronics) build from two parts: a inductive core and a coil. The first part is no ta problem, but the second one already is.

I need any hints how can draw a inductive coil (wire) and then put it in this drawing on a core.

Anyone have any idea how to solve it?

Thanks for the help ;-)
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by chrisb »

If the inductive core is a cylinder, then you can use a helix and a sweep. If it has a different shape, you first have to cut a helical shape with the core to get the sweep path. Quite some time ago such coil was discussed here.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

chrisb wrote: Wed Jan 19, 2022 9:50 am If the inductive core is a cylinder, then you can use a helix and a sweep. If it has a different shape, you first have to cut a helical shape with the core to get the sweep path. Quite some time ago such coil was discussed here.
The core is a toroid, so it's not as easy as it look for me ;-)
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by chrisb »

The addon macro "3D parametric curve" can create such paths.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53786
Joined: Tue Mar 17, 2015 9:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by chrisb »

Such parameters could do the trick:
Attachments
Bildschirmfoto 2022-01-19 um 11.31.26.png
Bildschirmfoto 2022-01-19 um 11.31.26.png (52.43 KiB) Viewed 1955 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kisolre
Veteran
Posts: 4159
Joined: Wed Nov 21, 2018 1:13 pm

Re: [Design] Drawing a wire (inductor) on shapes

Post by kisolre »

Another idea, not very correct but could be refined:
.
ToroidalSpirall.jpg
ToroidalSpirall.jpg (26.84 KiB) Viewed 1900 times
Attachments
ToroidalSpirall.FCStd
(526.42 KiB) Downloaded 42 times
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by Syres »

There already exists a proper macro alongside a Python file (thanks to @tcsut) please see https://forum.freecadweb.org/viewtopic. ... 26#p441300
So you only need to download the first listed ToroidalWinding2.py and then create a new macro file called something like Make_ToroidalWinding.FCMacro which includes the two lines:

Code: Select all

import ToroidalWinding2
ToroidalWinding2.create('test2')
You can then adjust the parameters in the Data tab of test2 object for N - turns, a - angle etc.
mcgiwer
Posts: 20
Joined: Sat Jul 03, 2021 11:51 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by mcgiwer »

Thanks. I'll try it out whenever I get able to download the macros's and plugins... for now I get an strange error about beeing unable to connect to wiki to download it (reported as an bug)
Syres
Veteran
Posts: 2891
Joined: Thu Aug 09, 2018 11:14 am

Re: [Design] Drawing a wire (inductor) on shapes

Post by Syres »

mcgiwer wrote: Wed Jan 19, 2022 3:22 pm Thanks. I'll try it out whenever I get able to download the macros's and plugins... for now I get an strange error about beeing unable to connect to wiki to download it (reported as an bug)
So you can't download the attachment below???
Attachments
ToroidalWinding2.py
(3.71 KiB) Downloaded 24 times
User avatar
bambuko
Veteran
Posts: 2114
Joined: Thu Oct 24, 2019 12:53 pm
Location: UK, England, North Devon

Re: [Design] Drawing a wire (inductor) on shapes

Post by bambuko »

Syres wrote: Wed Jan 19, 2022 3:33 pm ...So you can't download the attachment below???
downloads perfectly OK for me...?
I am using Link branch and Assembly3
you can also download ... and try it here
excellent Assembly3 tutorials here
Post Reply