Commit Graph

5960 Commits

Author SHA1 Message Date
Yorik van Havre
ea2549d1a6 Added automatic Ctrl+Number shortcuts for the 10 first woekbenches 2015-11-26 09:11:39 -02:00
Yorik van Havre
199f16f4c8 Split workbench selector and placed it left 2015-11-26 09:11:39 -02:00
wmayer
dca6841c33 Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-25 21:02:17 +01:00
wmayer
8516092c6e + fix whitespaces 2015-11-25 21:02:00 +01:00
Abdullah Tahiri
40f4940068 Sketcher: Solver Debug functionality: Ability to export a subsystem
===================================================================

It allows to export the c++ code to create a subsystem with the same information as the one solved using LM/DL/BGFS.

In this commit the functionality is disabled (for production).

To enable the functionality uncomment this line in planegcs/Constraints.h:
//#define _GCS_EXTRACT_SOLVER_SUBSYSTEM_

When enabled, upon solving with LM/DL/BGFS, the c++ code to generate the subsystem is added to a subsystem.txt that is created in the FreeCAD
execution directory.

Note that the file is created in append mode, so it will append all normal/redundant solvings until the file is deleted.

The resulting code can be directly pasted into a project similar to:
https://github.com/abdullahtahiriyo/Eigen_LUPiv_Convergence

Such a project only has libeigen as external dependency.
2015-11-25 20:39:04 +01:00
Yorik van Havre
10afa3e56c Arch: small fix in Arch git dialog 2015-11-25 13:17:54 -02:00
Yorik van Havre
faf062dc5a Material: Fixed the material editor dialog, thanks to rockn 2015-11-24 22:57:50 -02:00
wmayer
330fb12588 FEM: Rename Display Modes 2015-11-23 18:17:10 +01:00
Abdullah Tahiri
72fc07ae83 Sketcher: Advanced solver dialog bug fix LM-tau
================================================

Due to a typo the code was setting LM-tau to 1E-80 by default instead of the intended 1E-3.
2015-11-21 22:48:02 +01:00
wmayer
61ceaf3316 + Add export macro to Enumeration class 2015-11-21 22:46:42 +01:00
wmayer
5427fad693 + Add Python example of embedding FreeCAD 2015-11-20 22:35:26 +01:00
Bernd Hahnebach
0b39f9a9e6 FEM: add nodes of quad8, hexa20, penta6, penta15, pyra5, pyra13 to ViewProvider nodes are displayed 2015-11-19 19:01:23 +01:00
Bernd Hahnebach
f91389d07d FEM: FemMesh VP throw exception instead of assert(0) 2015-11-19 19:01:07 +01:00
Bernd Hahnebach
329cf56adf FEM: add SMESH supported volumes to Python API of FemMesh 2015-11-19 19:00:52 +01:00
wmayer
6f8adef286 + PLate surface approximation 2015-11-19 18:52:19 +01:00
wmayer
027a560fbc + add Python binding to Plate surface 2015-11-19 15:27:35 +01:00
Przemo Firszt
f0689be4d7 FEM, Tests: Fix line end problem in compare_inp_files
Add new function to force unix line ends and use it in compare_inp_files
and compare_stats.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-19 10:26:24 +01:00
DeepSOIC
1de6e977df API: Update docu strings of methods of BSplineCurve
Mainly exposing argument types and meanings, but also updating a few
descriptions by copy-paste-editing documentation of corresponding
OpenCASCADE.
2015-11-19 02:53:48 +03:00
Przemo Firszt
d40cbdec01 FEM: Use exisitng mesh property as link to mesh in result objects
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:22:02 +00:00
Przemo Firszt
985f476a73 FEM: Tidy up long lines and spacing
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-18 11:21:27 +00:00
wmayer
e6cafe2206 + set object name to tool buttons with popup menu 2015-11-17 18:39:23 +01:00
wmayer
8011cbfa2c Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-17 12:22:30 +01:00
wmayer
dec2a2f6cd + fix inconsistencies in using DynamicProperty class 2015-11-17 12:22:07 +01:00
wmayer
6ea05d01b9 + fix build failure with gcc 2015-11-16 23:21:47 +01:00
wmayer
b7a80c910c Merge branch 'master' of https://github.com/FreeCAD/FreeCAD 2015-11-16 22:48:00 +01:00
wmayer
ba053abec9 + support of adding/removing dynamic properties in property editor 2015-11-16 22:47:29 +01:00
Bernd Hahnebach
2943188610 FEM: fix mixed line endings in VP FemMesh 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
72a0060cfb FEM: Mesh VP fix FreeCAD crash if not supported face is added to VP 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
63189bd854 FEM: add some documentation to FemTools 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
90a9c387c4 FEM: substitute some camel style variable names in frdReader 2015-11-16 19:19:01 -02:00
Bernd Hahnebach
5df389f57a FEM: use proper command to create a Mechanical Anaylsis with all properties 2015-11-16 19:19:01 -02:00
fandaL
5b10de8d05 FEM: frd import mesh 2015-11-16 19:18:11 -02:00
Przemo Firszt
3fdd98d4c1 FEM, Tests: Force unix line ends for comparing calculation stats
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-16 19:15:44 -02:00
Yorik van Havre
6ba8b864d5 Arch: Fixed flipped Space names 2015-11-16 16:11:32 -02:00
wmayer
0ec8dd48b1 + property editor handles case when dynamic property is removed 2015-11-16 15:24:36 +01:00
wmayer
2d09b48662 + fix undefined behaviour in determining grid length for planar meshes 2015-11-16 11:59:41 +01:00
Przemo Firszt
bdb45f1e9f FEM: Fix Von Mises calculation formula and update FEM test results
Reported-by: fandaL
Fixed-by: fandaL
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:37 +01:00
Przemo Firszt
f5c03c222d FEM: Use format to avoid error is the message is not pure string
Traceback (most recent call last):
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
229, in test_new_analysis
    ret = self.compare_stats(fea, static_expected_values)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
147, in compare_stats
    fcc_print(sf_content)
  File "/home/przemo/software/FreeCAD/build/Mod/Fem/TestFem.py", line
55, in fcc_print
    FreeCAD.Console.PrintMessage(message + '\n')
TypeError: can only concatenate list (not "str") to list

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-14 14:53:36 +01:00
wmayer
3797c51eea + properly handle case of degenerated bounding box when creating mesh grid 2015-11-14 14:08:01 +01:00
wmayer
e876520bdd + do not set edit mode for spreadsheet 2015-11-14 02:18:29 +01:00
wmayer
0cddf520d0 + make isReadOnly & isHidden of PropertyContainer non-virtual 2015-11-14 02:07:57 +01:00
Eivind Kvedalen
68fc3b5917 QuantitySpinBox: Make sure Python code is emitted also when expressions are not used.
In that case, the property should be set directly.
2015-11-13 20:26:13 +01:00
DeepSOIC
f0b3c2ba35 API: update distToShape built-in docu
It was way too short, and incorrect
2015-11-13 18:13:20 +03:00
wmayer
2a2b40e50e + fix memory leaks 2015-11-13 16:06:43 +01:00
wmayer
1e1fc10748 + Code cleanup:
+ do not include header of itself
+ do not include unneeded header files
+ removed unneeded forward declarations
+ do not translate C string to get a QString
+ break too long lines
+ replace tabs with spaces
+ use virtual keyword on destructors
2015-11-13 15:47:03 +01:00
wmayer
e0b61273e8 + Add selected sketches to one Face, implement specialized view provider for Face 2015-11-13 13:38:24 +01:00
wmayer
c082cc47a1 + Add parametric feature to create face from sketches 2015-11-12 19:44:24 +01:00
Bernd Hahnebach
8226b3a529 FEM: allow to make a mesh from shape without an analysis 2015-11-12 13:39:51 +01:00
Bernd Hahnebach
c12676bde9 FEM: fromShape not needed modul loading deleted 2015-11-12 13:37:11 +01:00
Przemo Firszt
a83b6243bd FEM: Update except catch to python3
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-11-11 22:41:12 +00:00