Commit Graph

5904 Commits

Author SHA1 Message Date
wmayer
037ec5be78 + fix build failure 2015-09-21 23:42:18 +02:00
Przemo Firszt
b25d2cd54d FEM: FemTest rework
- move test files to a separate directory
- use real life model to generate .inp files (model included)
- change format of csv node/volume files to allow direct copy&paste from .inp files
- use pre prepared real-life .dat & .frd files to test analysis results loading functions
- much more fine grained error reporting
- remove empty lines for output
- add helper function to print to console

Example run of the FEM test:

--------------- Start of FEM tests ---------------
Checking FEM new analysis...
Checking FEM new mesh...
sh: SMDS_MemoryLimit: command not found
Checking FEM new material...
Checking FEM new fixed constraint...
Checking FEM new force constraint...
Checking FEM new pressure constraint...
Checking FEM inp file prerequisites...
Checking FEM inp file write...
Setting up working directory /tmp/FEM_static
Writing /tmp/FEM_static/Mesh.inp for static analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_static.inp to /tmp/FEM_static/Mesh.inp
Setting up working directory to /home/przemo/software/FreeCAD/build/Mod/Fem/test_files in order to read simulated calculations
Setting base name to read test cube_static.frd file...
Checking FEM frd file read from static analysis...
Result object created as "Results"
Reading stats from result object for static analysis...
Setting analysis type to 'frequency"
Setting up working directory /tmp/FEM_frequency
Writing /tmp/FEM_frequency/Mesh.inp for frequency analysis
Comparing /home/przemo/software/FreeCAD/build/Mod/Fem/test_files/cube_frequency.inp to /tmp/FEM_frequency/Mesh.inp
Setting working directory to read simulated calculations...
Setting base name to read test cube_frequency.frd file...
Checking FEM frd file read from frequency analysis...
Last result object created as "Mode_10_results"
Reading stats from result object for frequency analysis...
--------------- End of FEM tests ---------------

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-21 11:16:03 -03:00
wmayer
14b15ac095 + get Label directly 2015-09-21 14:51:13 +02:00
wmayer
b936514937 + fix build problems with MSVC and libpack 2015-09-21 14:51:12 +02:00
Eivind Kvedalen
4a3de89af0 Spreadsheet: Added round, trunc, ceil, and floor functions. 2015-09-21 14:51:12 +02:00
Eivind Kvedalen
310a684251 Spreadsheet: Added auto completer. 2015-09-21 14:51:11 +02:00
Eivind Kvedalen
4d5646fa5d Spreadsheet: Replaced own Expression classed by the ones in App. 2015-09-21 14:51:11 +02:00
Eivind Kvedalen
67800ec8c4 Sketcher: Added support for expressions. 2015-09-21 14:51:10 +02:00
Eivind Kvedalen
cea2e62f57 Added QStyledItemDelegate to Qt4All.h 2015-09-21 14:51:09 +02:00
Eivind Kvedalen
ddfbe349cf PartDesign: Added support for expressions. 2015-09-21 14:51:09 +02:00
Eivind Kvedalen
897f8b78b8 Added expression support to QuantitySpinBox and InputField classes. 2015-09-21 14:51:08 +02:00
Eivind Kvedalen
31a6fece52 Added ExpressionCompleter class. 2015-09-21 14:51:07 +02:00
Eivind Kvedalen
d7cbdf6a31 Updated Document::exportGraphviz() to visualize expression dependencies. 2015-09-21 14:51:07 +02:00
Eivind Kvedalen
a8328ec092 Modified Document::recompute() to take expressions into account. 2015-09-21 14:51:06 +02:00
Eivind Kvedalen
fb2b1a6ec0 Added PropertyExpressionEngine to DocumentObject class. 2015-09-21 14:51:05 +02:00
Eivind Kvedalen
8259ec6764 Added PropertyExpressionEngine class. 2015-09-21 14:51:05 +02:00
Eivind Kvedalen
b052c21b16 DocumentObject: Added getOldLabel() method, preparation for renaming of object identifiers. 2015-09-21 14:51:04 +02:00
Eivind Kvedalen
3f0fc98d72 Part: Added getPaths(...) method to PropertyPartShape. 2015-09-21 14:51:04 +02:00
Eivind Kvedalen
ddc22a4101 Added setValue/getValue/canonicalPath/getPaths/verifyPath methods to various Property classes. 2015-09-21 14:51:03 +02:00
Eivind Kvedalen
722a40dd41 Added Expression classes to App directory. Added Expression interface to Property base class. 2015-09-21 14:51:02 +02:00
Eivind Kvedalen
3474419925 Spreadsheet: Updated documentation. 2015-09-21 14:51:02 +02:00
Eivind Kvedalen
4f589f6d60 Spreadsheet: Use Base::fromStdString/toStdString. 2015-09-21 14:51:01 +02:00
Eivind Kvedalen
bee11897a1 Spreadsheet: Fixed bug with dangling pointer when a document object is deleted. 2015-09-21 14:51:01 +02:00
Eivind Kvedalen
4d1ebeccfa Base: Added toStdString and fromStdString, to convert std::string to/from QString,
assuming std::string is utf-8 encoded.
2015-09-21 14:51:00 +02:00
Eivind Kvedalen
61cbad8a12 Spreadsheet: Removed 'using namespace App'; preparation for moving Expression
classes to App.
2015-09-21 14:51:00 +02:00
Eivind Kvedalen
98700edbca Added Base::freecad_dynamic_cast(...) 2015-09-21 14:50:59 +02:00
Eivind Kvedalen
f7625481a2 Spreadsheet: Made freecad_dynamic_cast calls unambiguous (preparation for next commit). 2015-09-21 14:50:58 +02:00
Eivind Kvedalen
2206e1cd7f Added -Wno-sign-compare -Wno-reorder -Wno-switch -Wno-unused-variable -Wno-unused-but-set-variable -Wno-comment to mask warnings when compiling salomesmesh. 2015-09-21 14:50:58 +02:00
Yorik van Havre
d3d7387da2 Arch: fixed bug in material dialog 2015-09-20 21:17:12 -03:00
wmayer
ee59f1263c + if translation of group is done do not overwrite 2015-09-20 17:00:21 +02:00
wmayer
433efbc115 + fix possible crash in debug mode 2015-09-20 16:59:17 +02:00
wmayer
cda9bf9ed5 + allow to set a default action for an exclusive group 2015-09-20 15:47:11 +02:00
wmayer
ec91085765 + duplicate string array for Python commands 2015-09-20 14:11:53 +02:00
wmayer
1dad42c2f6 + fixes #0002126: Fails to load .FCStd file which contains many MultiByte-Char strings 2015-09-20 12:29:05 +02:00
wmayer
bd105711d4 + delete helper file for copy/paste on application exit 2015-09-19 22:10:49 +02:00
wmayer
b9a512361d + by default create a zip file for auto-save 2015-09-19 21:32:17 +02:00
wmayer
7d09444dd9 + fixes #0001237: the project file is not saved when the /tmp directory is full, but the user is not aware of it 2015-09-19 18:59:22 +02:00
wmayer
bd1fc886fe + fix typo 2015-09-19 17:03:38 +02:00
wmayer
2991bbf033 + fixes #0001238: Preferences: set temp files directory 2015-09-19 16:07:33 +02:00
wmayer
e5c3a09502 + for file-based recovery write the data files in worker threads 2015-09-19 13:12:59 +02:00
wmayer
848f9c4d46 + implement file based auto-save & recovery mechanism 2015-09-19 01:13:33 +02:00
wmayer
8db1280a4d + make RecoveryWriter more robust 2015-09-18 15:32:33 +02:00
wmayer
bb05d17596 + implement FileWriter class based on files and a specialized sub-class for recovery purposes 2015-09-17 21:37:47 +02:00
wmayer
300e176eb3 + fixes #0002268: Segmentation Fault when using sketcher 2015-09-17 13:31:10 +02:00
wmayer
32367b1744 + save Brep in binary format for recovery files 2015-09-16 22:58:47 +02:00
wmayer
739e643f2f + check returned mdi view to be of the requested type 2015-09-16 16:15:19 +02:00
wmayer
b9797ec92a + To avoid possible memory leaks or inconsistencies on Document::resetEdit() call finishEditing() of view provider inside document because the editing view could be closed already 2015-09-16 14:20:13 +02:00
wmayer
6dfc395a06 + fix method ViewProviderDocumentObject::getActiveView()
+ fix SoAutoZoomTranslation and SoZoomTranslation to get correct scaling factor
(do not rely on active view because this can be the wrong one and thus delivers wrong results)
2015-09-16 11:32:35 +02:00
wmayer
470b9ff756 + add convenience method to get editing view of a view provider 2015-09-15 22:09:28 +02:00
wmayer
cbfdfd5c2e + proper Python exception handling in Gui.doCommand(Gui) 2015-09-15 18:36:15 +02:00