Search found 3367 matches

by PrzemoF
Wed May 06, 2015 10:00 pm
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

Thanks! :oops: A next iteration of DLOAD + fix by ulrich1a FEM: getNodesByFace should return int not long FEM: getNodesByEdge should return int not long FEM: getNodesByVertex should return int not long FEM: Add getccxVolumesByFace and write_face_load functions FEM: inp file formatting/typos FEM: Fix...
by PrzemoF
Wed May 06, 2015 9:38 pm
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

Thanks, very good catch! I missed that repr produces a string, so {:.15} is not a proper formatting, but just a plain string cut! However I have some problems with your code: >>> a = 9876543212346789864323456.9543234578986432345678 >>> print "{:.13E}".format(repr(a)) Traceback (most recent...
by PrzemoF
Wed May 06, 2015 3:40 pm
Forum: Developers corner
Topic: Workbench drop down list is long, too long.
Replies: 52
Views: 9720

Workbench drop down list is long, too long.

There are 23 workbenches including None, Complete, Start and Web. For 90% of the time I use Part, Part Design, Draft and FEM. I'm thinking about including a 23 positions long checkbox list in a separate tab in the General preferences, called Workbenches. It would allow to switch on/off not used work...
by PrzemoF
Wed May 06, 2015 2:28 pm
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

I'll rename the CalculiX version of getVolumesByFace to getccxVolumesByFace, soe the code above can go into master unchanged. I'll also add a comment explaining what the function getccxVolumesByFace does.
by PrzemoF
Wed May 06, 2015 10:58 am
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

I get a strange result pulling a cube disp.PNG I hope I'm testing the right code The Fix constraint was on the bottom of the cube. [..] I did some more tests and the mesh seems to be turned inside-out! :shock: It looks OK for factor 1 to 4 (4 - flat like a pancake), but for 5 and more it goes insid...
by PrzemoF
Wed May 06, 2015 10:12 am
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

OK, thanks for the explanation!
by PrzemoF
Wed May 06, 2015 9:47 am
Forum: Help on using FreeCAD
Topic: Help with Modeling Tape
Replies: 5
Views: 1591

Re: Help with Modeling Tape

Use crossection from Part wb to generate battery crossection. Go to Draft wb, cut, clean, outline by 0.1 mm (thickness of the wrap), convert to sketch (converting seems to work only on XY plane for me). Merge the crossection and the ouline sketches into one sketch that can be revolved to create the ...
by PrzemoF
Wed May 06, 2015 9:17 am
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

I was looking at that piece of code, but I coudn't figure out what the purpose of that conversion. So it was just for the long->int change?
I'll make the changes, but I think we should not include it in the master unless that direction problem is solved.
by PrzemoF
Wed May 06, 2015 8:21 am
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

There is something wrong with direction and that's why I added "-1" when I though it's just a matter od reversing the direction. You're pushing the cube and I have the same problem here.
by PrzemoF
Tue May 05, 2015 8:43 pm
Forum: FEM
Topic: DLOAD - working code, but review and C++ help needed
Replies: 25
Views: 6472

Re: DLOAD - working code, but review and C++ help needed

That -1 [1] is probably wrong or there is something funny happening in FreeCAD with direction when no direction is selected, but "Reverse direction" option is checked [1] https://github.com/PrzemoF/FreeCAD_sf_master/blob/fem_dload_v1/src/Mod/Fem/ccxInpWriter.py#L191 Edit: Fix pushed. If th...