Przemo Firszt
4c813656ea
FEM: Rename Fem_NewAnalysis icon to fem-new-analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
2a3409b4a6
FEM: Rename Fem_Material icon to fem-material
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
facb110329
FEM: Rename Fem_Inp_Editor icon to fem-inp-editor
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
6ca8a12525
FEM: Rename Fem_FemMesh_createnodebypoly icon to fem-fem-mesh-create-node-by-poly
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
bb1a41f15e
FEM: Rename Fem_FemMesh icon to fem-fem-mesh-from-shape
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
c9c28a8690
FEM: Rename Fem_ConstraintPulley icon to fem-constraint-pulley
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
dc35235863
FEM: Rename Fem_ConstraintPressure icon to fem-constraint-pressure
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
1d766e9677
FEM: Rename Fem_ConstraintGear icon to fem-constraint-gear
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
5674ca802e
FEM: Rename Fem_ConstraintForce icon to fem-constraint-force
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
93b24a1ab7
FEM: Rename Fem_ConstraintFixed icon to fem-constraint-fixed
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
505b4ba8d3
FEM: Rename Fem_ConstraintBearing icon to fem-constraint-bearing
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
7a71e14a78
FEM: Rename Fem_Analysis icon to fem-analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
337881348c
FEM: Rename Fem_AddPart icon to fem-add-part
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
b88706bcd4
FEM: Rename Fem_AddMaterial icon to fem-add-material
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
f3d82fd9fa
FEM: Rename Fem_AddFemMesh icon to fem-add-fem-mesh
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
1d0d6dfe07
FEM: Tidy up icons ResultDisplacement, ResultStress and Result
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:33 -03:00
Przemo Firszt
5f4f6047e3
Tests, FEM: Add inp file writing test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
b9676cf7ee
FEM: Prepare ccxInpWriter for automated tests
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
461e506c41
FEM: Add command only when GUI is up
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
Przemo Firszt
1de29d0ffa
Test, FEM: Refactor existing tests as preparation for full analysis test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 10:58:19 -03:00
wmayer
b81482d597
+ harmonize Coin3D cmake variables with official check
2015-07-28 14:55:15 +02:00
wmayer
7d98705396
+ harmonize XercesC cmake variables with official check
2015-07-28 14:17:49 +02:00
Przemo Firszt
cc7fa5b28c
Test, FEM: Add pressure constraint test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Przemo Firszt
3ef54f66bb
Test, FEM: Add force constraint test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Przemo Firszt
32ebdf8e6f
Test, FEM: Add fixed constraint test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 16:25:01 -03:00
Przemo Firszt
0bfe92e83e
Test, FEM: Add mesh test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
632a554802
Test, FEM: Add new analysis test
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
472b4943ce
FEM: Remove no longer relevant comment. QuickAnalysis solved the problem
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
a9b28e541b
FEM: No need to have ViewObject in _ViewProviderFemAnalysis init
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
Przemo Firszt
f5ad8ca415
FEM: Don't import FemGui when it's not required
...
This is part of preparation to create automated FEM wb tests
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-27 14:03:44 +01:00
wmayer
d95003e92c
+ replace deprecated PYTHON_INCLUDE_PATH
2015-07-25 18:29:42 +02:00
wmayer
18f0ec61eb
+ fix crash in ViewProviderFemMesh::setHighlightNodes when values out of range
2015-07-12 10:47:57 +02:00
wmayer
b3970f63ba
+ implement missing types in FemMesh.addFace
2015-07-10 11:01:17 +02:00
Przemo Firszt
1470a32533
FEM: suppress some non error console messages
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:52 +02:00
Przemo Firszt
bf1accec06
FEM: get noisy if ccx produces something in stderr
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
f6bf3f3055
FEM: show ccx exit code if the code is not 0
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:51 +02:00
Przemo Firszt
c87c15946c
FEM: raise exception is no analysis is specified or found in __init__
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:50 +02:00
Przemo Firszt
9a7151863c
FEM: reset results_present on purge_results
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
3d94464ba4
FEM: add use_results to allow selecting results by name
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:49 +02:00
Przemo Firszt
e850604cdf
FEM: Rename set_result_type to show_result
...
show_result by default shows Von Mises strass
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:48 +02:00
Przemo Firszt
52c453bdba
FEM: add show_displacement to FemTools
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:47 +02:00
Przemo Firszt
ff742beb97
FEM: Add multi-thread calcs
...
Slightly modified code by kwahoo
2015-07-06 19:21:46 +02:00
Przemo Firszt
b45190fb4d
FEM: Add Quick Analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:46 +02:00
Przemo Firszt
7f9e50a22b
FEM: Allow to run inp writing/ccx in separate thread
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:45 +02:00
Przemo Firszt
4c4e76aa2b
FEM: Use check_prerequisites from FemTools
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
3187141dfe
FEM: move writing inp file to FemTools module
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:44 +02:00
Przemo Firszt
e0956f67f3
FEM: Add basic FemTools module
...
That module will handle in the future all non-gui related features
that are currently in MechanicalAnalysis.py. It will allow easier
python scripting and greater flexibility when creating new FEM wb
features.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:43 +02:00
Przemo Firszt
2abdcf3b57
FEM: Move check_prerequisites to helpers section
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:42 +02:00
Przemo Firszt
5816bf1871
FEM: Move prepare_analysis_objects out of _JobControlTaskPanel class
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:41 +02:00
Przemo Firszt
81ff338236
FEM: Rename object to analysis_object
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:41 +02:00
Przemo Firszt
d250dc0425
FEM: Remove no longer used tempfile import
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:40 +02:00
Przemo Firszt
c8436a94d6
FEM: Fix and activate setting working directory for Calculix
...
Also add FEM preferences option to define working ccx directory
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:39 +02:00
Przemo Firszt
99d07fbd9a
FEM: rename obj to move descriptive analysis_obj
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:39 +02:00
Przemo Firszt
28b0a8bb77
FEM: Split prepare_analysis_objects from check_prerequisites
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:38 +02:00
Przemo Firszt
67714c5025
FEM: Temporary dir is only used by ccxInpWriter, so move it there
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:37 +02:00
Przemo Firszt
f83520b2cc
FEM: Remove out of date comments
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-06 19:21:37 +02:00
wmayer
9687c66a25
+ add missing header
2015-07-02 06:59:13 +02:00
wmayer
834c0a642d
+ include missing header files
2015-07-01 13:02:29 +02:00
wmayer
d826ad5b51
+ Remove dependency to iisTaskPanel when not needed
2015-06-30 16:53:22 +02:00
Przemo Firszt
4caa464ebb
FEM: All FEM results are stored in a single object
...
Functionality previously provided by setNodeColorByResult is now
in setNodeColorByScalars. FemResult* object is no longer required,
the function accepts list of elements and a list of values.
Functionality previously provided by setNodeDisplacementByResult is now
in setNodeDisplacementByVectors. FemResult* object is no longer required,
the function accepts list of elements and a list of vectors.
A side effect: FemResultValues and FemResultVector are no longer used
and have bee removed.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-24 17:44:02 +02:00
Przemo Firszt
3a7772d0f7
FEM: Save/restore result dialog settings
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
793a5b79f1
FEM: Rename dialog element callbacks
...
Also setDisplacement function has been removed
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
5853eabc62
FEM: Always import FemGui
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
6de28c158d
FEM: fix white space
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
9766893be1
FEM: Change FEM results selection to radio buttons
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
f29b003810
FEM: Add reset_mesh_color and reset_mesh_deformation functions
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
ca47eeaeff
FEM: Remove unused property
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
6df5809c33
FEM: Optimise check_prerequisities
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
da83e47241
FEM: Remove old results before loading new set
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
157399e395
FEM: Fix problem with using old displacement value after recalculation
...
Reported-by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03:00
Przemo Firszt
4e94c02dda
FEM: Rename animateNodes to applyDisplacementToNodes
...
Also animateNodes is now applyDisplacementToNodes.
The funcions are not doing animation, but are responsible
for deforming mesh.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
8195ce579b
FEM: Remove not used setColorStress function
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
aed303f4ff
FEM: Add curly brackets to one line for/if or if/if commands
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
70318d7820
FEM: Disable Show result button if there are no results in analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
749e772d85
FEM: Add Purge FEM results button
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
97a6333f87
FEM: Simplify setting FEM results when user selected None
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
302dbbf0be
FEM: Fix problem with Show button not reverting mesh deformation
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:34 +01:00
Przemo Firszt
dc7da86261
FEM: Don't use bool as variable name
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:21 +01:00
Przemo Firszt
6a13a51b90
FEM: Don't check is Show is checked after slider has been moved.
...
Slider is disbled is Show is not ticked, so that check is redundant.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:35:10 +01:00
Przemo Firszt
74234e7000
FEM: Switch to reading analysis stats from AnalysisStats object
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
597c9b856b
FEM: Add AnalysisStats object
...
This commit add a new object to Analysis: AnalysisStats. AnalysisStats
contains list with 15 values (an example):
-0.000776373 <-- minimum X displacement
-7.74494e-06 <-- average X displacement
0.000774115 <-- maximum X displacement
-0.00416267 <-- minimum Y displacement
-0.00204191 <-- average Y displacement
0 <-- maximum Y displacement
-0.000775108 <-- minimum Z displacement
1.09288e-05 <-- average Z displacement
0.000775122 <-- maximum Z displacement
0 <-- minimum Abs displacement
0.00214509 <-- average Abs displacement
0.00430481 <-- maximum Abs displacement
0.390598 <-- minimum Von Mises Stress
0.93509 <-- average Von Mises Stress
1.47765 <-- maximum Von Mises Stress
Those values will be used to set field values in FEM results dialog
instead of currently used values returned by setNodeColorByResult
function.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
9c6ee0ac63
FEM: simplify reading lines from frd file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
f5863b6d9b
FEM: replace input with frd_file in ccxFrdReader.py
...
input is a built-in function name and should not be used as variable name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
05cb44bfb0
FEM: use is instead of == for None in ccxFrdReader.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
39b407fdba
FEM: replace deprecated has_key in ccxFrdReader.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
Przemo Firszt
cd5cc689dc
FEM: white space fixes in ccxFrdReader.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-02 11:28:44 +01:00
wmayer
24b71377e1
+ fix whitespaces
2015-05-26 17:55:38 +02:00
Przemo Firszt
cd4952dee4
FEM: fix white spaces in ccxInpWriter.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-26 14:33:43 +01:00
Przemo Firszt
e13a8cf304
FEM: Add ConstraintPressure
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-26 14:17:45 +01:00
Bernd Hahnebach
3c629f095d
FEM: CLOAD, mesh face area is used for surface loads on volume faces
2015-05-26 13:50:38 +02:00
wmayer
1099b23587
+ raise error message when trying to mesh without netgen support
2015-05-22 16:15:18 +02:00
wmayer
ef610c8c96
+ remove SoFCSelection from ViewProviderGeometryObject
2015-05-20 21:44:27 +02:00
wmayer
27863408c9
+ remove references to SoFCSelection where not needed
2015-05-20 19:24:12 +02:00
jriegel
aa142250e0
add shell and beam support to FEM mesh ViewProvider
2015-05-19 21:42:36 +02:00
Przemo Firszt
b507505a47
FEM: Fix crash on missing unit when editing material second time
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-18 17:09:30 +01:00
wmayer
96e77ab5bf
+ FEM: replace set with list to preserve order
2015-05-15 13:48:29 +02:00
Przemo Firszt
29044021cd
FEM: Fix Von Mises equation
...
Reported-by: sgrogan and confirmed by drei
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-12 15:58:49 +01:00
wmayer
45604b3874
+ use list of pairs instead of map for getVolumesByFace
2015-05-09 12:02:25 +02:00
wmayer
814c144ecb
+ FEM: add a couple of methods to Python interface
2015-05-09 00:15:05 +02:00
wmayer
9e89f2ff9a
+ implement FemMesh::getVolumesByFace, replace inner list by tuple
2015-05-08 21:45:13 +02:00
Przemo Firszt
cd6088332f
FEM: Fix invalid CLOAD formatting
...
Existing code was producing invalid results:
a = 9876543212346789864323456.9543234578986432345678
>>> print "{:.13}".format(repr(a))
9.87654321234
>>> a
9.87654321234679e+24
The new converision should work fine:
>>> print "{:.13E}".format(a)
9.8765432123468E+24
Reported & fixed by ulrich1a
2015-05-08 20:59:32 +02:00
Przemo Firszt
6ab70bece6
FEM: inp file formatting/typos
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:59:14 +02:00
Przemo Firszt
48efcc449b
FEM: Add getccxVolumesByFace and write_face_load functions
...
getccxVolumesByFace returns std::map<int, int> with ID of volume
and a number of face as per CalculiX definition. The same function is
accessible for python and returns list with the same information, like
this: [[229, 3], [230, 3], [233, 2], [238, 2]]
write_face_load produces something like this in the .inp file:
***********************************************************
** element + CalculiX face + load in [MPa]
** written by write_face_load function
*DLOAD
** Load on face Face2
229,P3,10.0
230,P3,10.0
233,P2,10.0
238,P2,10.0
Optimised by wmayer
Signed-off-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:59 +02:00
Przemo Firszt
be43c7f5c0
FEM: getNodesByVertex should return int not long
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:43 +02:00
Przemo Firszt
3395d4ea02
FEM: getNodesByEdge should return int not long
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:26 +02:00
Przemo Firszt
0e670396fa
FEM: getNodesByFace should return int not long
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-08 20:58:07 +02:00
Przemo Firszt
605e8cd72c
FEM: Add comments to .inp file about functions
...
Adding detailed information which function is responsible for
creating a proticular section of the .inp file should save
some guesswork. An example from the .inp file:
[..]
***********************************************************
** node sets for loads
** written by write_load_node_sets function
*NSET,NSET=FemConstraintForce
1,
3,
[..]
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:30:53 +02:00
Przemo Firszt
beb6cecf59
FEM: Use local variable to avoid long strings in write_constraints_force
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:30:35 +02:00
Przemo Firszt
dec69a8769
FEM: Use local variable to avoid long strings in write_constraints_fixed
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:30:20 +02:00
Przemo Firszt
0b7c02850e
FEM: Use local variable to avoid long strings in write_materials
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:30:05 +02:00
Przemo Firszt
5bf115ddba
FEM: Use local variable to avoid long strings in write_load_node_sets
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:29:48 +02:00
Przemo Firszt
39fd6d9217
FEM: Material name has to be limited to 80 characters for ccx
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:29:30 +02:00
Przemo Firszt
27e43f6939
FEM: Use local variable to avoid long strings in write_fixed_node_sets
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:29:14 +02:00
Przemo Firszt
d7ae64fb45
FEM: Use local variable to avoid long strings in write_material_element_sets
...
print material_object['Object'].Name, ': ', material_object['Object'].Material['Name']
becomes this:
print mat_obj_name, ': ', mat_name
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:28:57 +02:00
Przemo Firszt
a99a897ae8
FEM: Rename variables f->elem, inpfile->f
...
The reason behind that change is that auxiliary variables,
like a file handle, should not be too visible. inpfile was
a good description, but we're handling only one file and there
is no need to use a descriptive variable name for it in every function.
It's enough that is used in write_calculix_input_file
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-05-01 17:28:39 +02:00
wmayer
dd2b39ddd6
+ fixes #0002075 : Analysis of FreeCAD by PVS-Studio static analyzer
2015-05-01 16:56:31 +02:00
Przemo Firszt
f5874a74e4
FEM: Split inp write_calculix_input_file into functions
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:19 +02:00
Przemo Firszt
30a69a5797
FEM: Make sure Young's modulus is written in MPa
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:18 +02:00
Przemo Firszt
ab26d7fd50
FEM: Replace invalid General_description with Description
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:17 +02:00
Przemo Firszt
7036d46bf2
FEM: ccxInpWriter shouldn't do any validation or guessing
...
Also, there is no need to print material parameters to the console.
User can see that info in dialog box, in .inp file and it's also printed
to console after material has been set.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:17 +02:00
Przemo Firszt
5e48d624e4
FEM: Make sure Edit/Run buttons stay disabled if ccxInpWriter didn't generate .inp file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:16 +02:00
Przemo Firszt
ed8267643b
FEM: Cleaning ccxInpWriter
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:15 +02:00
Przemo Firszt
b61bb54b78
FEM: General_name is invalid since f96f319986
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:14 +02:00
Przemo Firszt
c9a54019aa
FEM: Reduce femConsole noise
...
Showing ccx output during short colculations doesn't make any sense.
During long calculations user is flooded with messages, that ccx
produced empty output.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:14 +02:00
Przemo Firszt
9f7728573d
FEM: Remove multiple empty lines produced by ccx before sending to FEM console
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:13 +02:00
Przemo Firszt
bdfe2bafda
FEM: Always scroll FEM console to the bottom after adding new message
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:12 +02:00
Przemo Firszt
cd4e71eadd
FEM: Typo/white space fix
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:12 +02:00
Przemo Firszt
294939f471
FEM: Rename CalculixLib to ccxFrdReader
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:11 +02:00
Przemo Firszt
d6b2ae8096
FEM: Move .inp writer to InpWriter.py file
...
Suggested by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:10 +02:00
Przemo Firszt
42bc0b57f8
FEM: Remove never used saveMat function
...
That function won't be used as there is a plan to merge material
handling with Arch wb and Arch wb already has material editor.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:09 +02:00
Przemo Firszt
af4ad9059a
FEM: Remove never used colorValue function and FemLib.py file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:08 +02:00
Przemo Firszt
c6d1052f1f
FEM: Force showing Youngs modulus in MPa
...
That commit fixes inconsistent behaviour of Young's modulus input field
units in FEM material dialog window.
Reported-by: sgrogan
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:08 +02:00
Przemo Firszt
efcfd10a56
FEM: Remove empty python file added with commit 2818bc4ddf
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:07 +02:00
Przemo Firszt
79caef00cb
FEM: Fix typo
...
Reported-by: dubstar-04
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-27 21:33:06 +02:00
wmayer
2a3edfcd84
+ FEM: Add icon to command
2015-04-24 21:45:34 +02:00
wmayer
4db69850fb
+ FEM: reimplement function to create FEM mesh from shape
2015-04-23 23:36:05 +02:00
wmayer
ec96217335
+ FEM: cleanup of unused dialog
2015-04-23 23:11:47 +02:00
Przemo Firszt
7ec585ec18
FEM: Change Start Calculations shortcut to S, C
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:44 +02:00
Przemo Firszt
a4429c9ea8
FEM: Change Show Results shortcut to S, R
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:27 +02:00
Przemo Firszt
6ba642a3cc
FEM: Change New Analysis shortcut to N, A
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:05:06 +02:00
Przemo Firszt
e6d7b7e586
FEM: Change Mechanical Material shortcut to M, M
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:50 +02:00
Przemo Firszt
249c2641e0
FEM: Change order of FEM toolbar items
...
Suggested by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:31 +02:00
Przemo Firszt
f3b33f52e6
FEM: Reset min/max/avg to the initial state after user selected None
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:04:09 +02:00
Przemo Firszt
31a263ed89
FEM: Show displacement/stress nicely formatted and with proper units
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:44 +02:00
Przemo Firszt
bf1ffb612f
FEM: Rename min/max to avoid unintentional built-in function overload
...
min/max are python build-in functions, so we shouldn't use them as variable names
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:26 +02:00
Przemo Firszt
dd3c7f1bfb
FEM: Fix white spaces
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:03:04 +02:00
Przemo Firszt
129cc88b0b
FEM: Ignore unicode conversion errors
...
Solution suggested by shoogen
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:02:42 +02:00
Przemo Firszt
c5850e510a
FEM: Cut material name to 80 characters
...
CalculiX documentation tells that maximum alowed material name length
is 80 characters, so we have to respect that. Also ccx quietly fails if
that limit is not honoured.
Reported-by: bernd
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:02:22 +02:00
Przemo Firszt
f96f319986
FEM: Change default behaviour of ConfigParser used for materials
...
ConfigParser changes option capital letters in keys to small letters.
That commit changes it to generate verbatim keys as read from FCMat
files. Also Section names are no longer used to generate material
dictionary.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:01:18 +02:00
Przemo Firszt
9b2f2b15bc
FEM: Change way of handling combobox with FEM results
...
Identification of selected result item is no longer based
on the item string, but on a separate userData. This method
is language agnostic.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 17:00:56 +02:00
Przemo Firszt
d548490a2b
FEM: Clean white spaces in MechanicalAnalysis.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:59:52 +02:00
Przemo Firszt
f482dc2383
FEM: Clean imports in MechanicalAnalysis.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:59:30 +02:00
Przemo Firszt
957f723782
FEM: Make sure .inp doesn't contain force values that crash ccx
...
ccx crashes when a force has too many digits like this:
FemConstraintForce,2,1.5966711853290134e-18
but it's OK with that format:
FemConstraintForce,2,1.5966711853e-18
An example of ccx error:
*ERROR reading *CLOAD. Card image:
FEMCONSTRAINTFORCE,3,1.5966711853290134E-18
This commits adds formatting to make sure the numbers are within ccx
limits.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-23 16:58:57 +02:00
wmayer
13b8d323b2
+ FEM: Improve drag and drop for FEM analysis object
2015-04-23 13:31:14 +02:00
wmayer
f460cec308
+ FEM: Support drag and drop for analysis object
2015-04-22 23:24:43 +02:00
wmayer
bf2266aee3
+ hide input shape after creating fem object, give feedback on wrong selection for nodes set
2015-04-22 22:45:07 +02:00
Bernd Hahnebach
f4f7759bba
FEM: CalculiX input file, possibility to write more than one material object
2015-04-22 15:28:37 -03:00
wmayer
01768b70e7
+ FEM: remove useless error message
2015-04-20 11:35:40 +02:00
wmayer
9dfb87d227
+ do not translate units
2015-04-20 10:48:06 +02:00
wmayer
225fce9604
+ do not translate units
2015-04-19 23:41:27 +02:00
wmayer
f12a26b5fb
+ remove broken command from FEM workbench
2015-04-18 22:06:55 +02:00
Przemo Firszt
943ded5774
FEM: Fix typo in fem_console_message name
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
987dddfc78
FEM: Fix rare crash related to the date of compilation of ccx
...
Printing FEM console message could fail if ccx was compiled in March
and standard output contained double dotted a.
"You are using an executable made on Mi 4. Mär 19:49:02 CET 2015"
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
4b56d3d406
FEM: Fix typo. Rename MathObject to MaterialObject
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
35c5de0782
FEM: No need to check length, empty list evaluates to False
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
25c18729e1
FEM: Disable "open editor" and "run ccx" buttons.
...
This commit moves checking prerequisites to function. The function
is called before writing .inp file to make sure all required objects
are included in the analysis. "open editor" and "run ccx" buttons are
if check_prerequisites runs successfully.
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
2d90d39cc3
FEM: Make sure cursor gets restored if write_calculix_input_file fails
...
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
d3c7270031
FEM: Fix typos
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
ac5fe442dc
FEM: Group all helper functions together
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
b6ea746fa2
FEM: Rename chooseMat to choose_material
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
3066e6b3d0
FEM: Use built-in None material if there was no previous material
...
Adding material was using by default transient None material that
has no properties assigned. If use accepted that type of material
an attempt to write CalculiX input file was ending up with a crash.
Using built-in None material prevents that situation.
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
6437beaec1
FEM: Use default True value for material dirs
...
Defaulting to False was causing problems during migration. The default
checkbox of linked FEM preferences is True, but for the first time users
there was nothing stored in UseBuiltInMaterials, UseMaterialsFromConfigDir
and UseMaterialsFromCustomDir, so the materials were not showing up in
the material ComboBox.
Reported-by: wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
76aa89b536
FEM: Catch ccx errors and print to FEM console in red
...
Code by wmayer
http://forum.freecadweb.org/viewtopic.php?f=18&t=10514&p=84921#p84901
2015-04-17 10:51:56 +02:00
Przemo Firszt
2acfadfeef
FEM: Change way of converting ccx output to unicode
...
Previous method was prone to UnicodeDecodeError. The try-catch for
UnicodeDecodeError stays in as additional safety net.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
Przemo Firszt
663771f0a4
FEM: Sort materials within each category
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +02:00
wmayer
0c1fb8e4d8
+ delay checking for ccx path, handle exceptions
2015-04-14 16:33:44 +02:00
Przemo Firszt
84467808a4
FEM: Use get_material_data in print_mat_data function
...
get_material_name provides material name in a safe way, so there is
no need to check in General_name exists in material definition
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:46 +02:00
Przemo Firszt
9eb6cf7480
FEM: Clean code to remove space-after-comma flake8 warning
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:45 +02:00
Przemo Firszt
abefd40bb7
FEM: Add Preferences option to hide materials from user defined directory
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:45 +02:00
Przemo Firszt
1d5b4709fe
FEM: Add Preferences option to hide materials from .FreeCAD/Materials directory
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:44 +02:00
Przemo Firszt
32a51db481
FEM: Add Preferences option to hide built in materials
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:43 +02:00
Przemo Firszt
956e5f0da0
FEM: Remove self.params
...
It doesn't make sense to pull preferences in __init__ for later use as
they change dependin on user action.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:43 +02:00
Przemo Firszt
5040266320
FEM: Add message about reverting material after user clicked Cancel button
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:42 +02:00
Przemo Firszt
9205db4b77
FEM: Fix problem with lost values after editing material properties
...
Now a valid value is stored immediately into object material.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:41 +02:00
Przemo Firszt
75fcae04b9
FEM: Compare material using all properies and handle non-local materials
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:41 +02:00
Przemo Firszt
c091b87459
FEM: Rename comboBox_MaterialsInDir to cb_materials
...
The combo box no longer stores materials from just one dir, so name
needs to be changed
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:40 +02:00
Przemo Firszt
8113463e1e
FEM: Import all materials in init instead of on-demand import
...
On-demand import is no longer good enough as we have 3 different
material directories and materials may have non-unique names.
A material is now identified by a full file path.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:39 +02:00
Przemo Firszt
343225dcc2
FEM: Show material description below combo box
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:39 +02:00
Przemo Firszt
97f5f76433
FEM: Add function for adding materiales from a directory
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:38 +02:00
Przemo Firszt
7cb4df59f7
FEM: Use chooseMat directly set set initial value for material
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:37 +02:00
Przemo Firszt
9a9f7e64a5
FEM: Add icons to materials
...
Add icons to distinguish where the material is from. FreeCAD icon for
build-in materials, notmal material icon for materials from user
preferences directory which is "~/.FreeCAD/Materials" on linux or
from an user defined location defined in FEM preferences.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:36 +02:00
Przemo Firszt
f7fd04aa2b
FEM: Add option to define custom material directory
...
That commit also tidies up FEM preferences, so all file
choosers have the same width
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:36 +02:00
Przemo Firszt
0039ea9e72
FEM: Rename dirname to sytem_mat_dir
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:35 +02:00
Przemo Firszt
54ae984650
FEM: Read materials from user settings directory
...
That commit also adds python function getUserAppDataDir that calls
Application::getUserAppDataDir()
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:34 +02:00
Przemo Firszt
b7bb4346da
FEM: Fill default ccx binary location in Preferences
...
ccx path is filled for linux and windows if it was empty.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:33 +02:00
Przemo Firszt
bf179d9f78
FEM: Add option to define ccx path in Preferences
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-14 15:25:32 +02:00
wmayer
f6638d49ce
+ improve abaqus export
2015-04-14 13:33:20 +02:00
wmayer
2dc1890fd2
+ fix rendering problems for FEM elements
2015-04-13 22:11:27 +02:00
wmayer
1c79de55ed
+ workaround for limit of length of file names
2015-04-13 18:23:30 +02:00
wmayer
618192fca5
+ fix critical memory leak
2015-04-13 17:24:54 +02:00
wmayer
9ea9980b2c
+ fix bad choose of limit
2015-04-11 01:06:03 +02:00
Bernd Hahnebach
56b15fb690
FEM: CalculiX file, boundaries one line for each axis
2015-04-11 00:17:08 +02:00
Bernd Hahnebach
08be917054
FEM: cheange some Comments in CalculiX input file
2015-04-11 00:16:51 +02:00
wmayer
64b83139c7
+ fix highlighting of words with numbers
2015-04-10 23:38:29 +02:00
wmayer
e18796efc5
+ fix crash of ccx, use darker green for ccx output, fix typos
2015-04-09 23:26:06 +02:00
Przemo Firszt
c774316642
FEM: Unify access rights for FEM svg images
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:11 +02:00
Przemo Firszt
9731fc4e4d
FEM: Replace hardcoded icon with a normal image file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:11 +02:00
Przemo Firszt
be1240a977
FEM: Change Young's modulus limit
...
2000 was way too low and it was causing some unxepected behaviour for
Young's modulud over 2000 kPa
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:09 +02:00
Przemo Firszt
3a7f48c632
FEM: Fix typo
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:08 +02:00
Przemo Firszt
ab2f1c5d1d
FEM: Enable displacement related elements on "Show" only
...
Displacement related elements (factor, slider max and the slider itself)
are now only active when "Show" is selected. Previously they were active
even when "Show" wasn't checked and it was potentially confusing for the
user as nothing was changing when chacnging slider settings.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:08 +02:00
Przemo Firszt
8489a014d1
FEM: replace vertical factor scroll bar with a horizonal one
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:07 +02:00
Przemo Firszt
54bb4e297e
FEM: Add "None" and simplify material setting
...
The "-->choose Material" has been replaced with a not defined material.
That makes setting/retrieving material to/from the object much easier
and allows user to have a "not defined" material. Previously it wasn't
possible to change i.e. form Steel to "not defined".
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:06 +02:00
Przemo Firszt
aec082639f
FEM: Clean unused import in MechanicalMaterial.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:06 +02:00
Przemo Firszt
65396bc95b
FEM: Comment out not yet used saveMat function
2015-04-09 19:45:05 +02:00
Przemo Firszt
18aad09d0d
FEM: Replace spinBox_young_modulus with input_fd_young_modulus
...
spinBox_young_modulus variable is not Gui::SpinBox, but Gui::InputField
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:05 +02:00
Przemo Firszt
56bf10afef
FEM: Replace duplicated code with print_mat_data function
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:04 +02:00
Przemo Firszt
8de8b991a5
FEM: Replace deprecated has_key with in
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:04 +02:00
Przemo Firszt
135cfbd80f
FEM: Remove unused local variable
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:03 +02:00
Przemo Firszt
157a1d8e77
FEM: Fix spaces around =/+/: and brackets
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:03 +02:00
Przemo Firszt
5a1249dc3b
FEM: Fix white space errors
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:02 +02:00
Przemo Firszt
6bfd683dcf
FEM: Clean unused imports in MechanicalMaterial.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:02 +02:00
Przemo Firszt
1ff82e48c6
FEM: Fix copyright date
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:01 +02:00
Przemo Firszt
0f9bcc2f84
FEM: Replace deprecated backticks with repr
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:01 +02:00
Przemo Firszt
7b01cd6832
FEM: Replace "!=" with "is not" when comparing to None
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:00 +02:00
Przemo Firszt
7030aa7482
FEM: Fix white space errors
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:45:00 +02:00
Przemo Firszt
835228ef34
FEM: Fix spaces around =/+/: and brackets
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:59 +02:00
Przemo Firszt
40e8f5b020
FEM: Clean unused imports
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:58 +02:00
Przemo Firszt
3b46c4e94a
FEM: Fix copyright date
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:57 +02:00
Przemo Firszt
1af11d9db7
FEM: Rename OutStr to more descriptive fem_console_message
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:57 +02:00
Przemo Firszt
b149ba0288
FEM: Make CalculiX execute error message red
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-09 19:44:56 +02:00
wmayer
176f3e6057
+ use correct function to get resource directory
2015-04-05 18:30:35 +02:00
wmayer
453eb18abb
+ start external editor without blocking GUI
2015-04-03 17:55:51 +02:00
Przemo Firszt
d13c279d5a
FEM: Add preferences dialog
...
This patch add FEM preferrences dialog. There is currently only
one option to define if internal or external editor should be used to
open CalculiX input .inp files. Disabling internal editor allows to
define path to external editor.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-03 08:07:28 +02:00
wmayer
bc9b8bcf19
+ support .inp file format
2015-04-01 11:09:46 +02:00
wmayer
90b5d64831
+ remove platform check
2015-03-30 16:36:40 +02:00
wmayer
30098b62e3
FEM: improve Abaqus syntax highlighter
2015-03-30 15:28:08 +02:00
wmayer
ff774748cd
+ FEM: get nodes by vertex
2015-03-30 11:45:35 +02:00
wmayer
f84a150bfd
+ choose consistent C++ and Python method names
...
+ fix typos
+fix whitespaces
2015-03-30 10:42:14 +02:00
Bernd Hahnebach
a15ea4ca18
Fem: add Support for loads and supports on edges to CalculiX file
2015-03-30 10:24:38 +02:00
Bernd Hahnebach
e4c2421350
Fem: added Support for more than one Force- and FixedObject in CalculiX file
2015-03-30 10:23:42 +02:00
wmayer
88ef0b58d9
+ syntax highlighter for Abaqus, show short filename on tabs
2015-03-28 21:50:01 +01:00
Przemo Firszt
18e4fdf5c2
+ FEM: Use existing internal editor for inp files
2015-03-28 19:33:11 +01:00
Bernd Hahnebach
b4b0ed5c44
Fem: fix: system() is evaluated instead of calling it
2015-03-26 19:38:10 +01:00
Przemo Firszt
a53f6818b4
FEM: Add description to massage about CalculiX binary
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:04:11 +01:00
Przemo Firszt
ec27cbc1c6
FEM: Add printCalculiXstdout function
...
That non-critical part was quite often silently crashing with
UnicodeDecodeError and as a side effect FreeCAD wasn't loading perfectly
valid CalculiX result file. In long run that function should be replaced
with a write-to-log counterpart and the CalculiX stdout should be shown
to the user only upon request.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:56 +01:00
Przemo Firszt
d693051f14
FEM: Add function to show CalculiX state changes
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:43 +01:00
Przemo Firszt
e0ed154996
FEM: Warn user about not implemented Loads/Supports
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:27 +01:00
Przemo Firszt
0ed9b18367
FEM: Link exisitng calculixError procedure with error signal
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:03:05 +01:00
Przemo Firszt
47b88e47fb
FEM: Add message to indicate end of writing CalculiX input file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:52 +01:00
Przemo Firszt
ea640ea104
FEM: fix typos
...
machanical -> mechanical
Van Mises -> Von Mises
http://en.wikipedia.org/wiki/Von_Mises_yield_criterion
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:36 +01:00
Przemo Firszt
41539d672b
FEM: Fix cursor error
...
FEM wb was throwing errors:
X Error: BadCursor (invalid Cursor parameter) 6
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x3
X Error: BadCursor (invalid Cursor parameter) 6
Major opcode: 2 (X_ChangeWindowAttributes)
Resource id: 0x3
X Error: BadCursor (invalid Cursor parameter) 6
Major opcode: 95 (X_FreeCursor)
Resource id: 0x3
according to this [1] that patch should not make any change for windows
and fixes the problem on linux.
[1] https://bugreports.qt.io/browse/PYSIDE-243
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-21 12:02:20 +01:00
Przemo Firszt
91e3d30e5b
FEM: Replace fem console prints with a function
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-16 18:42:02 +00:00
Przemo Firszt
5ed9e816a0
FEM: Show error if results file is missing
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-03-16 18:42:02 +00:00
Bernd Hahnebach
5b6360684d
Fem: units in CalculiX file: mm and N
2015-03-16 07:29:34 +01:00
wmayer
b007bd19e4
+ improve abaqus exporter
2015-03-15 14:53:22 +01:00
wmayer
5d159f5cf3
+ fix crash in export to abaqus
2015-03-15 02:08:55 +01:00
Bernd Hahnebach
9a6b729694
Fem: typo in thickness property of FemAnalysis class
2015-03-13 10:09:43 -03:00
wmayer
bafe8d4b14
+ set Const attribute to some methods of FemMesh
2015-03-12 10:42:23 +01:00
wmayer
cc7c1d1f44
+ fix assert failure in FemMesh
2015-03-10 12:44:22 +01:00
Yorik van Havre
0009e58291
Merged crowdin translations
2015-03-07 15:17:58 -03:00
Bernd Hahnebach
89a6e67e35
Fem: ContraintForce: units are no longer printed on widget
2015-03-06 17:03:35 +01:00
Bernd Hahnebach
4a8e1a58b0
Fem: Fix in CalculiX file if not supported shapes are used for constraints
2015-03-06 17:03:22 +01:00
Bernd Hahnebach
baba11610a
FEM: add comments to CalculiX input file
2015-03-05 22:31:04 +01:00
wmayer
bebca4e54c
Merge branch 'master' of ssh://git.code.sf.net/p/free-cad/code
2015-02-27 23:28:04 +01:00
wmayer
b24f25d874
+ in Fem constraint force dialog handle empty Direction
2015-02-27 23:27:08 +01:00
Yorik van Havre
8d8eba6dac
Updated ts files from source
2015-02-27 18:56:51 -03:00
Yorik van Havre
8d98921dd7
Updated translations from crowdin
2015-02-27 18:46:03 -03:00
wmayer
2a4d29d0ac
+ use undo/redo for Fem constraint force dialog
2015-02-27 11:21:05 +01:00
Bernd Hahnebach
d44d0fbda3
Fem Workaround for choosing material data
2015-02-26 23:26:11 +01:00
Bernd Hahnebach
b42ea802b5
Fem make CalculiX Inputfile editable befor run CalculiX
2015-02-26 09:56:58 -03:00
Bernd Hahnebach
a6dd8870ab
Fix Fem Find Calculix binary (if installed) on Linux
2015-02-24 17:12:50 +01:00
Bernd Hahnebach
38eaf76dea
Fix Fem DirectionVector of the ForceObject
2015-02-24 17:12:34 +01:00
Bernd Hahnebach
08a5a89847
Fix Fem we do not have initial stresses
2015-02-24 17:12:14 +01:00
wmayer
18f1cf7821
+ fix issue with bad default value of natural direction
2015-02-20 14:40:03 +01:00
Yorik van Havre
ae3fafea6c
Updated base translation files for crowdin
2015-01-13 20:00:09 -02:00
wmayer
477099bbfe
+ remove useless stuff from Init files
2015-01-13 16:19:19 +01:00
Richard Crozier
65092be5f3
Correct spelling of FEM Netgen Mesh 'Fineness' parameter
2015-01-12 11:12:30 +01:00
Richard M. Shaw
a8d24be3b3
Update CMake config to work with smesh 6.5.3.1.
...
New fork of standalone smesh is available here:
https://github.com/tpaviot/smesh
2014-12-19 11:23:38 +01:00
jriegel
9a07c3ad9e
fix in reading results from Calculix
2014-12-06 13:10:09 +01:00
wmayer
dd3412b159
+ improve whitespaces
2014-12-01 11:36:33 +01:00
jriegel
38fc7ba604
Merge branch 'refs/heads/master' into review-CL-Bundler
2014-11-29 15:43:19 +01:00
Sebastian Hoogen
debca91e98
remove support for automake
2014-11-26 10:26:30 +01:00
jriegel
81ef381b66
fix for VC9
2014-11-22 14:34:05 +01:00
jriegel
10ff1e579d
fix bug on highlighting invisibel nodes
2014-11-22 13:51:31 +01:00
Sebastian Hoogen
a53a239f2f
issue #1027 use unicode filepaths
2014-10-11 13:32:06 +02:00
wmayer
980d1eb0eb
+ fix expressions
2014-10-10 19:01:34 +02:00
wmayer
71154f5f25
+ fix issues with force constraint
2014-10-10 17:42:33 +02:00
wmayer
f02da38566
+ fix Qt help problems
2014-10-01 17:16:43 +02:00
Sebastian Hoogen
e820a32653
issue #1701
2014-09-27 13:07:30 -03:00
wmayer
23a58fedf7
+ fix warnings with clang
2014-09-24 18:00:46 +02:00
wmayer
032c893183
+ fix warnings with clang
2014-09-24 17:46:04 +02:00
wmayer
003c2bf77d
+ fix warnings with clang
2014-09-24 15:55:36 +02:00
Stefan Tröger
72cab0c002
Adaption of FreeCAD to QuarterWidget
...
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer interface
2014-09-23 10:11:11 +02:00
Sebastian Hoogen
5e51a6cdf7
fixes #0001422 : Subclass Exception
...
inherit Base.FreeCADError form RuntimeError
inherit Part.OCCError from Base.FreeCADError
inherit OCCDomainError from Part.OCCError
inherit OCCRangeError from Part.OCCError
inherit OCCConstructionError from OCCDomainError
inherit OCCDimensionError from OCCDomainError
Added PY_CATCH_OCC macro
replace PyExc_Exception
use FreeCADError in makeWireString
catch exception in BSplineCurve.increasedegree
2014-09-17 11:15:56 +02:00
jriegel
c1f0f70b88
Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
...
Conflicts:
src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00
wmayer
cc775f9254
+ fix -Wnull-conversion, -Woverloaded-virtual, -Wlogical-not-parentheses, -Wsometimes-uninitialized
2014-08-26 19:14:13 +02:00
jriegel
ec2198107b
move build specifier in own cMake group
2014-08-03 20:53:19 +02:00
Yorik van Havre
940f7e69ba
Updated translations
2014-05-24 17:35:20 -03:00
wmayer
17b7003ea7
+ fixes #0001549 : crash with Draft move tool while sketch is in edit mode
2014-05-20 15:25:03 +02:00
Yorik van Havre
ec442507e1
Updated ts files
2014-05-11 14:49:24 -03:00
wmayer
6b89c03181
Add initial support for different libdir (jobermayr)
2014-05-10 12:57:38 +02:00
wmayer
2d4110b0f3
+ Better support of clang, fix issues discovered by clang
2014-05-05 18:25:59 +02:00
wmayer
3b6d07833d
+ compile with clang
2014-05-05 16:24:01 +02:00
mdinger
337f05d56e
Move python module prefix
and suffix
properties into macro to be set together
2014-05-03 16:00:30 +02:00
wmayer
1a7cea9b59
+ Fix prefix of Python extensions built with MinGW
2014-04-30 18:22:52 +02:00
mdinger
a17cce3559
Remove unnecessary quotes.
2014-04-30 13:41:16 +02:00
mdinger
1942bb7906
Apply SET_BIN_DIR macro to Mod
2014-04-30 13:41:13 +02:00
jriegel
2bf7083db4
fix FEM result dialog
2014-04-14 03:17:37 +02:00
jriegel
a988ead620
Fix in color calculation
2014-04-13 18:03:04 +02:00
jriegel
eadc02d65d
some fixes in Fem
2014-04-13 16:42:41 +02:00
jriegel
dc6eeb10a6
fix load of BDF with element number bigger 1000000
2014-03-24 21:12:21 +01:00
Yorik van Havre
3a8d83bed9
Updated ts files from source
2014-03-10 20:36:59 -03:00
wmayer
a84abfda39
+ fixes #0001449 : CalculixLib.py not included in ~/src/Mod/Fem/CMakeLists.txt
2014-02-27 23:50:23 +01:00
wmayer
75e5d5f3ac
+ Fix broken unit tests
2014-02-25 15:24:10 +01:00
jriegel
bb98b5afb0
Improve runing the Calculix process
2014-02-18 22:07:46 +01:00
jriegel
89ea7ad268
using QProcess for starting Calculix
2014-02-16 14:33:55 +01:00
jriegel
aa6bafa222
fix for reset the color information on changing the base mesh
2014-02-16 14:33:47 +01:00
jriegel
9c8df98c9f
Implementing Calculix binding
2014-02-12 19:39:49 +01:00
wmayer
e9b275c7e6
+ support loading projects with old pad features, fix critical bug where the unit gets replaced
2014-02-12 15:14:02 +01:00
jriegel
29e6610ab8
Writing Calculix file
2014-02-12 00:15:57 +01:00
jriegel
24b06ad3db
Calculix Analysis output
2014-02-11 19:49:47 +01:00
jriegel
ad0db9f4c5
Further implementing MechanicalAnalysis
2014-02-09 21:40:46 +01:00
jriegel
d17fb3aa5d
First tests of using InputField via Python
2014-02-09 20:50:07 +01:00
jriegel
cd69467ede
Finish get nodes by surface
2014-02-09 17:55:35 +01:00
jriegel
1341c43e5f
Get node of face implementation
2014-02-09 17:55:34 +01:00
jriegel
5a4b4da59f
Fix for Python binding in FEM result objects
2014-01-15 19:33:44 +01:00
jriegel
6078846fa2
Increase Performance Postprocessing
2014-01-11 14:50:22 +01:00
jriegel
c71c1b8679
Improving Post-Processeing performance
2014-01-11 14:50:08 +01:00
wmayer
54334ca69d
+ Migrate Fem to PySide
2014-01-09 13:36:29 +01:00
wmayer
847b6b79e0
+ Replace math.h with cmath
2014-01-05 11:25:40 +01:00
jriegel
cb63cba061
Further implementation of Post-Processing
2014-01-03 17:30:49 +01:00
jriegel
80fe8bc000
Build fixes
2014-01-02 15:09:10 +01:00
wmayer
18c62a52af
+ comment out non-existing Python module in FEM workbench
2014-01-02 13:59:53 +01:00
jriegel
f92d310ac3
Start Gui for Displacement Post-Processing
2013-12-31 17:16:51 +01:00
jriegel
efc311f908
Postprocessing: Color per Element at FemMesh
2013-12-31 13:52:13 +01:00
jriegel
226c25f9d9
Finish loading Calculix result files
2013-12-31 12:41:22 +01:00
jriegel
c1a3b1434a
Read Calculix Result files (*.frd) mesh
2013-12-30 22:33:05 +01:00
jriegel
2061c21115
Allow seting of transformation without copy the mesh
2013-12-10 23:05:07 +01:00
jriegel
132b75e5ab
Volum for Tet10 FemMesh
2013-12-09 23:52:44 +01:00
jriegel
f53579f671
Starting Calculix integration
2013-12-06 23:26:56 +01:00
jriegel
894529a223
fix error of gcc and remove old parser code.
2013-12-05 08:42:33 +01:00
jriegel
9a239261bb
fix in get visible faces
2013-12-02 20:35:12 +01:00
jriegel
09fe84abbf
Finish Displacement and animation of it.
2013-11-28 23:30:21 +01:00
jriegel
61e289036e
Starting Displacement post-processing to the FemMesh ViewProvider
2013-11-28 19:52:58 +01:00
jriegel
7a1a8051aa
Adding python capabilities to the Result objects
2013-11-28 19:52:41 +01:00
jriegel
feeb053e18
Objects for Results of FEM analysis
2013-11-27 20:14:58 +01:00
wmayer
680f4c82f7
+ Fix FEM install target
2013-11-27 16:26:43 +01:00
wmayer
a98c967be4
+ Remove duplicate icon
2013-11-25 10:26:09 +01:00
jriegel
7336a31e44
Add Attribute to FemMeshViewProvider python class to get all visible FemMesh faces.
2013-11-17 13:08:45 +01:00
wmayer
909f7d6c13
+ Fix inconsistency in context-menu of FEM view provider
2013-11-09 11:05:08 +01:00