Assembly Challenge: hypnotic geometric thing

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Assembly Challenge: hypnotic geometric thing

Post by Kunda1 »

phpBB [video]
Anyone interested in testing the different assembly workbenches to model this hypnotic thing?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Assembly Challenge: hypnotic geometric thing

Post by DeepSOIC »

Sketcher counts?
Attachments
kunda1-thingy-sketcher.FCStd
(4.6 KiB) Downloaded 115 times
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Assembly Challenge: hypnotic geometric thing

Post by chrisb »

I would have bet that it works only of the diameters of both circles have a certain ratio, my guess was 1:2. Your sketch proves that it is arbitrary within certain limits.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
cox
Posts: 971
Joined: Wed Nov 26, 2014 11:37 pm

Re: Assembly Challenge: hypnotic geometric thing

Post by cox »

I wonder if it is possible to drive more than one small wheels without them crashing in center?
Attachments
kunda1-thingy-sketcher2.FCStd
(5.16 KiB) Downloaded 79 times
Need help? Feel free to ask, but please read the guidelines first
chrisb
Veteran
Posts: 54201
Joined: Tue Mar 17, 2015 9:14 am

Re: Assembly Challenge: hypnotic geometric thing

Post by chrisb »

Open Sketcher and run the code in python console. Outside sketcher additional recompute is needed.

Code: Select all

import time
from PySide import QtCore

# call from console: execfile('/Users/cb/panhard/coupe/sanssoupapes/hypno.py')

step = 1.0
timeout = 0.001
angle = 720

def update():
  global angle
  angle -= step
  App.ActiveDocument.Sketch.setDatum(37,App.Units.Quantity(str(angle)+' deg'))

while angle > 0:
  update()
  App.ActiveDocument.recompute()
  time.sleep(timeout)
Attachments
hypno_cb.FCStd
(4.22 KiB) Downloaded 85 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Assembly Challenge: hypnotic geometric thing

Post by kbwbe »

Hi Guy's,

and now without sketcher but with A2plus...

Here is a video:
https://youtu.be/nUQezfutJYs

.
hypnoticon.png
hypnoticon.png (109.65 KiB) Viewed 3613 times
.

A2plus has to be installed
1) Copy the attached script to your macro folder
2) Open the attached fcstd file
3) Start the macro

To speed it up i used modified solver accuracy...
With standard options the simulation will be slower.

Code: Select all

SOLVER_CONTROLDATA = {
    #Index:(posAccuracy,spinAccuracy,completeSolvingRequired)
    1:(0.1,0.1,True)
    }
Edit:
There was an error in the attached simulation script. It was only able to run on my local installation, but not on a standard installation. I replaced the attached script by a correct one. Sorry ! :oops:
Also i simplified the script.
Attachments
simulation.py
(800 Bytes) Downloaded 104 times
hypnotic-asm.FCStd
(18.23 KiB) Downloaded 99 times
Last edited by kbwbe on Fri Mar 01, 2019 11:43 pm, edited 1 time in total.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
roerich_64
Veteran
Posts: 1465
Joined: Thu May 21, 2015 7:00 pm
Location: Ostfriesland

Re: Assembly Challenge: hypnotic geometric thing

Post by roerich_64 »

@ Klaus: 1+ :)
Die Liebe wird siegen, denn sie ist unzerstörbar :) ;)
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: Assembly Challenge: hypnotic geometric thing

Post by kbwbe »

The simulation script of my previous post needed to be fixed.
Please find attached the correct files.
Attachments
simulation.py
(800 Bytes) Downloaded 185 times
hypnotic-asm.FCStd
(18.23 KiB) Downloaded 83 times
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly Challenge: hypnotic geometric thing

Post by Kunda1 »

Wow, what a great response + learning more about FreeCAD in the process!
Thanks to all that participated.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: Assembly Challenge: hypnotic geometric thing

Post by Zolko »

DeepSOIC wrote: Thu Feb 28, 2019 5:05 pm Sketcher counts?

Code: Select all

kunda1-thingy-sketcher.FCStd
And here is the assembly using your sketch as base (with Asm4):

hypnotic_0.98Mb.gif
hypnotic_0.98Mb.gif (1006.36 KiB) Viewed 3406 times
try the Assembly4 workbench for FreCAD — tutorials here and here
Post Reply