physics stimulation

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
adnanmakda95
Posts: 9
Joined: Wed Jan 02, 2019 10:08 am

physics stimulation

Post by adnanmakda95 »

Does Freecad support physics stimulation? I am used to Grasshopper (kangaroo) and Rhino. I want to create a tensile structure and want a minimum surface from a mesh.

Thank you.
https://www.youtube.com/watch?v=zeRe57uoEJQ
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: physics stimulation

Post by Joel_graff »

adnanmakda95 wrote: Tue Mar 12, 2019 2:49 pm Does Freecad support physics stimulation? I am used to Grasshopper (kangaroo) and Rhino. I want to create a tensile structure and want a minimum surface from a mesh.
There has been an attempt to provide physics support in FreeCAD with bullet phyiscs:

https://forum.freecadweb.org/viewtopic.php?t=22164

The author created it a couple of years ago and has done nothing since, so far as I can tell.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
fosselius
Posts: 381
Joined: Sat Apr 23, 2016 10:03 am
Contact:

Re: physics stimulation

Post by fosselius »

Joel_graff wrote: Wed Mar 13, 2019 1:41 am There has been an attempt to provide physics support in FreeCAD with bullet phyiscs:
hmm. i do not know if bullet is suiteable for this, OP wants to generate geometries with physics "stimulation?" in contrast to "simulate" interaction between geometries.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: physics stimulation

Post by Joel_graff »

fosselius wrote: Wed Mar 13, 2019 7:31 am hmm. i do not know if bullet is suiteable for this, OP wants to generate geometries with physics "stimulation?" in contrast to "simulate" interaction between geometries.
I assumed it was a typo on the part of the OP as I looked to see if there's a such thing and found nothing (I'm not a physics guy, but I enjoy pretending to be one from time-to-time ;) ).

In any case, now that I look closer, Kangaroo is a .NET physics library... It's probably not possible to integrate it without dragging mono or .NET Core into the mix. :?
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
fosselius
Posts: 381
Joined: Sat Apr 23, 2016 10:03 am
Contact:

Re: physics stimulation

Post by fosselius »

Joel_graff wrote: Wed Mar 13, 2019 12:16 pm I'm not a physics guy, but I enjoy pretending to be one from time-to-time ;)
we are on the same level ;)
its probably possible to achive the same results with pybullet:
https://github.com/bulletphysics/bullet3/issues/1926

I had a discussion about physics simulation with realthunder in one of the assembly threads. He had plans to add support for simulation in asm3/link3, but suspect nothing is implemented yet.

gazebo have implemented an abstraction layer to support multiple physics engines, my proposal is to reuse that.

http://gazebosim.org/blog/feature_physics
https://bitbucket.org/ignitionrobotics/ign-physics/
Last edited by fosselius on Wed Mar 13, 2019 4:49 pm, edited 1 time in total.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: physics stimulation

Post by Joel_graff »

fosselius wrote: Wed Mar 13, 2019 1:38 pm gazeboo have implemented an abstraction layer to support multiple physics engines, my proposal is to reuse that.

http://gazebosim.org/blog/feature_physics
https://bitbucket.org/ignitionrobotics/ign-physics/
I've used gazebo before - had to build a drone simulator for a contract a couple of years ago. I had it mostly done, tehn realized gazebo didn't work on Windows. Tried to help them package for Win, but it turned out it was easier just to use Unity3D instead. :)

All the same, a physics engine abstraction layer would be a really valuable addition.
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
Post Reply