Commit Graph

6081 Commits

Author SHA1 Message Date
triplus
6fe2923d52 OpenSCAD IncreaseTolerance (edges and faces support) 2015-10-26 11:48:20 +01:00
wmayer
8fa41edc04 + fixes #0002306: Allow *.py files in the Customize/Macros/Macro dropdown 2015-10-26 09:42:27 +01:00
wmayer
e3221376e1 + use right namespace for template instantiation to fix linker errors on Windows 2015-10-25 23:06:21 +01:00
wmayer
15a6a463b3 + need dummy class for FeaturePython class to work 2015-10-25 22:42:50 +01:00
wmayer
a3cd03ac03 + fix comment, convert native separators to UNIX separators 2015-10-25 14:16:38 +01:00
Przemo Firszt
d58ccf7fd3 FEM: Use brackets for print
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:30 +01:00
Przemo Firszt
e3c081be54 FEM: Use eigenmode number to decide if we're dealing with frequency analysis
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
098e46f686 FEM: Fix invalid check for frequency analysis
eigenmode = 0 for static and it's greater than 0 for frequency analysis.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:29 +01:00
Przemo Firszt
304e71e371 FEM: Remove imported but not used FreeCADGui
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:28 +01:00
Przemo Firszt
cf979fa040 FEM: Do not activate FEM wb from ccxFrdReader
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:27 +01:00
Przemo Firszt
55bc72b7b4 FEM: Make sure result_object exist before accesing it
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:26 +01:00
Przemo Firszt
bba3543efe FEM: Initialise result_object to None to fix crash on empty results
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
80b82dd955 FEM: Fix invalid check for empty resutls
Even when readResult was not producing any resuts the check was passing
fine as len({'Nodes': {}, 'Tet10Elem': {}, 'Results': []}) is 3

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:25 +01:00
Przemo Firszt
3dcc189e8b FEM: Add new properties to FEM preferences
The new properties are NumberOfEigenmode, EigenmodeHighLimit and
EigenmodeLowLimit. All 3 are linked with analysis object properties.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:24 +01:00
Przemo Firszt
6ab7a434ac FEM, Tests: Make sure eigenmode parameters are always the same.
The parameters were taken from FEM prefs, so the test could fail.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:23 +01:00
Przemo Firszt
068ba4793d FEM: Add EigenmodeHighLimit property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:22 +01:00
Przemo Firszt
042ded01e0 FEM: Add EigenmodeLowLimit property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:22 +01:00
Przemo Firszt
fcf19ff8ec FEM: Add NumberOfEigenmode property to analysis object
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:21 +01:00
Przemo Firszt
26cd01e346 FEM: Add WorkingDir property
that allows to set individual directory to be used for each analysis
object

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:20 +01:00
Przemo Firszt
8055b189be FEM: Use AnalysisType in FemTools by default
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:19 +01:00
Przemo Firszt
89b74a5231 GUI: improve App::PropertyPath directory selector
Editing direcotry in lineEdit was open to escaped character problems
i.e. \t or \n which can be pert of notmal directory path were converted
to tab or new line. Also leaving the lineEdit without hitting Enter was
discarding changes.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:19 +01:00
Przemo Firszt
15dbd1055a App: Fix typo in description of PropertyFloatConstraint
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-25 12:46:18 +01:00
wmayer
977411b4cc + check input of approxSurface for obviously wrong values 2015-10-25 12:46:02 +01:00
wmayer
b1ea3f70da + move module Python stuff into C++ class 2015-10-24 18:16:17 +02:00
wmayer
e82a780774 + move module Python stuff into C++ class 2015-10-24 18:04:53 +02:00
wmayer
c336f0757c + do error checking of input values and use keywords conforming with attributes of BSplineSurface 2015-10-24 15:40:24 +02:00
wmayer
fe7c3cda44 + extend Python interface of approxSurface 2015-10-23 17:56:24 +02:00
wmayer
6fecb87053 + fix documentation 2015-10-23 16:15:23 +02:00
wmayer
abec1c4b1d + improve whitespaces, replace floats with doubles 2015-10-23 15:32:54 +02:00
wmayer
67d8469069 + fix bug in B-Spline approximation 2015-10-23 13:52:58 +02:00
wmayer
1c90c3794d + remove unused line in CMake file 2015-10-23 11:08:22 +02:00
Abdullah Tahiri
e1dd86f0a9 Sketcher: Bug fix: unable to move geometry after addition of a constraint
=========================================================================

This fixes issue:
http://www.freecadweb.org/tracker/view.php?id=2281

Discussed in:
http://forum.freecadweb.org/viewtopic.php?p=101910#p101910

How to reproduce?
With Auto-Update mode unchecked, execute the sequence in the bug tracker. You will reach to a geometry assembly successfully solved that can not be moved.

Why?
The coincident constraint is partially redundant within the meaning of redundancy of the solver.
The solve within "addconstraint" in SketchObjectPy.cpp causes the geometry to move to meet the coincident constraint.
At the end of the solve, the initial solution used in diagnostics is no longer valid (the geometry moved). This causes a subsequente move not to be executed.

The Solution:
Recalculate just the initial solution after the addition.
2015-10-23 00:13:20 +02:00
Abdullah Tahiri
fc128d357d Sketcher: Solver information: Bug fix
=====================================

When the solver converged (but did not succeed) or when the solver succeded but the solution is not OCC-valid, no error message was shown in the solver messages dialog.
2015-10-22 23:48:04 +02:00
Przemo Firszt
4fb15f2a1b FEM: Move module loading to InitGui.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-22 11:20:03 +01:00
wmayer
60c8180079 + fix initialization order in initFemGui 2015-10-22 11:11:47 +02:00
wmayer
abd6e8c438 + proper exception handling of FemGui module 2015-10-22 11:01:21 +02:00
wmayer
62da38339f + allow to set parameters for surface triangulation from outside 2015-10-21 23:18:53 +02:00
wmayer
e7a3dc48e8 + support of Python feature classes without an execute() method
+ if execute() method of Python feature is missing or if it returns false call the execute() method of the C++ feature
+ fix SketchObjectPython
2015-10-21 00:22:40 +02:00
wmayer
169b2e356e + clean-up, fix and new methods added in unit test module 2015-10-19 21:51:43 +02:00
Przemo Firszt
28abf3585b FEM: remove comment lines for _CommandNewMechanicalAnalysis.py
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:08 +02:00
Przemo Firszt
ffdc7a45df FEM: change purge_results to operate on analysis document
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:08 +02:00
Przemo Firszt
499630034b FEM: improve enabling/disabling commands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:07 +02:00
Przemo Firszt
f76933eb87 FEM: Migrate _CommandMechanicalMaterial to FemCommands
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:07 +02:00
Przemo Firszt
ddb20e7329 FEM: Remove Frequency Analysis from GUI
Separate Frequency analysis button is no longer required.

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:06 +02:00
Przemo Firszt
35632147ad FEM: Add new analysis properity AnalysisType
To run frequency analysis user have 2 options:
1. Run normal aalysis, set "frequency" and start ccx
2. Set Analysis Type in Analysis object properties to "frequency" and
use Quick Analysis

With that workflow we no longer need a separate button for frequency
analysis. Also it's much easier to prepare & run a dediacted analysis
for frequency calculiations and separate analysis objects for
different load cases.
2015-10-19 21:28:05 +02:00
Przemo Firszt
2c21325353 FEM: Remove not used OutputDir analysis property
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:05 +02:00
Przemo Firszt
f33f573199 FEM: Change the way set_analysis_type works - use FEM prefs
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:04 +02:00
Przemo Firszt
26d18db2d3 FEM: Make sure ccx working dir is set
Also TestFem and check_prerequisities are corrected

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:04 +02:00
Przemo Firszt
b79cc695a1 FEM: Add AnalysisType to Prefs and use it in analysis control window.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:03 +02:00
Przemo Firszt
d5cf69b646 FEM: Make sure it's clear what failed when ccx is not set and cannot be found
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:02 +02:00