FastFieldSolvers Forum
FastFieldSolvers Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 FastFieldSolvers
 E.M. Workbench
 VoxHenry Input file in FreeCAD
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

Ruslan

USA
1 Posts

Posted - Aug 24 2020 :  18:49:48  Show Profile  Reply with Quote
Hi Enrico,

It looks like generation of an input file for VoxHenry in FreeCAD had been incorporated by you, thank you for doing that!

I have successfully used it couple of times but sometimes the voxelization process take very long time or crashes.

1. Are there any rules/tricks to avoid this?
2. How should I connect end of the wires, like for FastHenry we can connect nodes, but in VoxHenry, do we just make single part, like physically connect two parts?

Thanks,

Ruslan.




Enrico

530 Posts

Posted - Aug 25 2020 :  12:40:16  Show Profile  Reply with Quote
Hi Ruslan,

the VoxHenry workbench is still beta - this is also why you don't get documentation. Generation of the voxelization requires testing each voxel for inside / outside status within a 3D shell, so it can take a significative amount of time, coupled with the fact that the script is Python so not always you can get top speed also for the other operations (but the inside/outside test should dominate).

There are other strategies possible to voxelize a body, we planned to look into them for the evolution of the WB. You are welcome to contribute, if you wish and can. Note instead that voxelization of a parallelepiped (i.e. a box in FreeCAD) is quite fast as it does NOT use any in/out testing - just a different simple algorithm to break the box into cubes.

For the connections, this is intrinsic in how VoxHenry works. No nodes to connect. Adjacent voxels (in contact on a side, not on an edge) are automatically considered connected. Watch out because this also means that you may have unwanted shorts if the discretization is coarse and the gap between bodies is small.

Best Regards,
Enrico
Go to Top of Page

arie.westland

1 Posts

Posted - Apr 08 2024 :  07:35:36  Show Profile  Reply with Quote
I've had a crack at improving the voxelisation speed somewhat for the EM workbench here ht ps://github.com/hellsync/EM-Workbench-for-FreeCAD/tree/improve-voxelization-speed.

If anyone finds any bugs please comment on the pull request here ht ps://github.com/ediloren/EM-Workbench-for-FreeCAD/pull/11.

Arie.
Go to Top of Page

Enrico

530 Posts

Posted - Apr 11 2024 :  12:27:19  Show Profile  Reply with Quote
Hi Arie,

your improvement is now merged in the official EM Workbench. Definitely the voxelization speed has greatly improved.

Thank you for the support,
Enrico
Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
FastFieldSolvers Forum © 2020 FastFieldSolvers S.R.L. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06