Search found 43 matches

Go to advanced search

by josegegas
Fri Oct 25, 2019 5:45 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

Hi. Couple of questions: When the user changes a property of a scripted object, the "onChanged" method gets executed. Is there a way to change the values of other properties of the same object, from within the "onChanged" method? I want the "onChanged" to do some calculations using the value of the ...
by josegegas
Thu Oct 10, 2019 2:02 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

Made some progress with my animation algorithm.... https://www.youtube.com/watch?v=hCpwAwY_Xkk In a similar way as the reaction forces, I'd lice to animate the reaction torque over the joints. MBDyn gives the torque too, but i don't have many ideas on how to animate a torque. Forces are simple. Leng...
by josegegas
Mon Oct 07, 2019 9:18 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

Here's another video, with the reaction force vector and the data plotted for both, the nodes (bodies) and the joints:

https://www.youtube.com/watch?v=75jERiv ... e=youtu.be
by josegegas
Mon Oct 07, 2019 8:48 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

Hi all. Solved the problem of calculating moments of inertia for complex bodies!! Now simulations can be done with any body/assembly. Have a look at my first try: https://www.youtube.com/watch?v=BN07ZRmLbvw&feature=youtu.be I know you've told me to have a loon at other workbenches, but I don't get t...
by josegegas
Sun Oct 06, 2019 3:05 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

From the video it looks like you open shell and run a command. Maybe that was a prototype. I presume jose is planning on setting this up from a single button press, just like the FEM Workbench does. In any case, yes, Python can run arbitrary programs. The very old way of doing it, is using os.syste...
by josegegas
Sat Oct 05, 2019 1:35 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

[/quote]
What's the error ?
[/quote]

ImportError: No module named pandas. I'm sure pandas is installed aand works fine cause I don't have any issue using it from elsewhere than FreeCAD
by josegegas
Sat Oct 05, 2019 9:13 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

Hi.

Continuing with this project, found a problem. Can't import Pandas (import pandas as pd) from the FreeCAD python console... What could the solution be?

Cheers!
by josegegas
Sat Sep 21, 2019 10:38 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

No, no collision detection yet... It can be done tough. Yes, will share the code as soon as I have it nicely commented :)
by josegegas
Fri Sep 20, 2019 6:04 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

My code has been a big mess since I was just testing ideas. I have started adding comments and making all the classes more readable... By now all the workbench starts to take shape... Here's a triple pendulum simulation: https://www.youtube.com/watch?v=aoeJjocSfx4&feature=youtu.be I'm not sure what'...
by josegegas
Wed Sep 11, 2019 8:53 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 126
Views: 11942

Re: FreeCAD as pre-post procesor for MBDyn

MBDyn needs to be run from a terminal. Is there a way to run a shell script from python? Yep. I've don this. So that MBDyn can be executed from FreeCAD with a click... From the video it looks like you open shell and run a command. Yes, old video... Just programed this. What I still don't know how t...

Go to advanced search