Search found 3182 matches

Go to advanced search

by looo
Tue Jul 07, 2015 10:24 pm
Forum: FEM
Topic: torsional moment
Replies: 3
Views: 1049

Re: torsional moment

Thanks for this information. I will have a look soon. In the meantime I had a try with BEM (boundary element method). The cool thing is that if gauss is used the resulting moment can be expressed as a boundary integral of the unknowns (and not of the derivative like in the fem approach). And so only...
by looo
Thu Jul 02, 2015 8:21 pm
Forum: FEM
Topic: torsional moment
Replies: 3
Views: 1049

torsional moment

As allready discussed here http://forum.freecadweb.org/viewtopic.php?f=23&t=4973&start=30 I would like to make a small script which calculate the torsional moment for any section. I found a paper http://ocw.mit.edu/courses/civil-and-environmental-engineering/1-571-structural-analysis-and-control-spr...
by looo
Mon Jun 29, 2015 2:27 pm
Forum: Draft, Arch & BIM
Topic: pyBar
Replies: 43
Views: 13364

Re: pyBar

I see, this task is a bit more difficult ;)
Maybe the FEM module could be used to numerically evaluate it.
You are right, maybe the calculix heat-equation could be (ab)used for this task.
by looo
Mon Jun 29, 2015 9:19 am
Forum: Python scripting and macros
Topic: subclassing a sketch
Replies: 20
Views: 2021

Re: subclassing a sketch

thanks, I have never understood this approach. Why does freecad not use the standart inheritance methodes?
by looo
Mon Jun 29, 2015 9:05 am
Forum: Draft, Arch & BIM
Topic: pyBar
Replies: 43
Views: 13364

Re: pyBar

box.MatrixOfInertia haha it would have been so easy. Hi, I'm a bit rusty at this, but the real difficulty is to determine the torsional moment of inertia for non simple sections. this should be the z value in the 3. row in MatrixOfInertia. Also the polar Moment could be calculated with the same met...
by looo
Sat Jun 27, 2015 3:30 pm
Forum: Draft, Arch & BIM
Topic: pyBar
Replies: 43
Views: 13364

Re: pyBar

A little question that annoys me, the pybar files needs the quadratic moments from the sections of the structural members. I had a try on this. The code use simplest integration, so not very accurate. Also it would be better to go through every edge and discretize it instead of discretize the wire....
by looo
Sat Jun 27, 2015 8:46 am
Forum: Python scripting and macros
Topic: subclassing a sketch
Replies: 20
Views: 2021

subclassing a sketch

why isn't it possible to subclass the sketch-class from python? from Sketcher import Sketch class not_working_subclass(Sketch): def test(self): print("why is this not working") a = not_working_subclass() a.test() <type 'exceptions.AttributeError'>: 'Sketcher.Sketch' object has no attribute 'test'
by looo
Tue Jun 23, 2015 3:22 pm
Forum: Archived Pull Requests
Topic: set name of QTimer
Replies: 1
Views: 338

set name of QTimer

set QTimer-object names in mainWindow to have access from python.
https://github.com/looooo/FreeCAD_sf_ma ... a1f5ca63ab
by looo
Sat Jun 20, 2015 7:50 pm
Forum: Python scripting and macros
Topic: add a menu
Replies: 7
Views: 995

Re: add a menu

thanks again. the self term was a bit confusing at first, but I have understood now.
by looo
Fri Jun 19, 2015 4:31 am
Forum: Python scripting and macros
Topic: add a menu
Replies: 7
Views: 995

Re: add a menu

ok i have changed the plan and want to add the action to any existing menu from the icon toolbar. So I tried this: mw = Gui.getMainWindow() view_menu = mw.findChild(QtGui.QMenu, "&View") dummy_action = QtGui.QAction("dummy_widget", view_menu) view_menu.addAction(dummy_action) I would also be happy i...

Go to advanced search