Search found 59 matches

Go to advanced search

by josegegas
Sun Oct 06, 2019 3:05 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 195
Views: 22350

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: 195
Views: 22350

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: 195
Views: 22350

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: 195
Views: 22350

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: 195
Views: 22350

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: 195
Views: 22350

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...
by josegegas
Wed Sep 11, 2019 12:45 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 195
Views: 22350

Re: FreeCAD as pre-post procesor for MBDyn

mfasano wrote:
Wed Sep 11, 2019 12:36 pm
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...
by josegegas
Wed Sep 11, 2019 12:40 pm
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 195
Views: 22350

Re: FreeCAD as pre-post procesor for MBDyn

in the regard of a new solver ... Before a new solver runs with FreeCAD FEM the new solver needs to be implemented in FreeCAD FEM. As an example have a look at the implementation of oofem solver in FreeCAD FEM. https://github.com/berndhahnebach/FreeCAD_bhb/commits/femoofem mainly what FreeCAD FEM d...
by josegegas
Wed Sep 11, 2019 11:48 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 195
Views: 22350

Re: FreeCAD as pre-post procesor for MBDyn

Previously only the "revolute pin" joint was included. A bit of progress made today: added the "revolute hinge" joint, which allows linking two solid bodies. Made the classic double pendulum simulation. See the reaction forces on the revolute pin joint :) https://www.youtube.com/watch?v=Nv5qaQjPRME&...
by josegegas
Tue Sep 10, 2019 5:33 am
Forum: FEM
Topic: FreeCAD as pre-post processor for MBDyn
Replies: 195
Views: 22350

Re: FreeCAD as pre-post procesor for MBDyn

I see. So to include the object's mass or density I'll have to use the OCCT classes. The easiest solution I could think about (to avoid this) is to multiply (or whatever operation is needed) the given Ixx Iyy and Izz by the mass. I could do this if I knew what units these values have. Yes moving the...

Go to advanced search