Bernd Hahnebach
d86b0e8f76
FEM: CalculiX writer, rename elset for solid meshes
2015-10-05 18:33:33 +02:00
Bernd Hahnebach
33fed6a630
FEM: add licence information to CalculiX inpwriter
2015-10-05 18:33:16 +02:00
Bernd Hahnebach
f411000a0f
FEM: add calculiX input file comment lines to FemTest input file diff
2015-10-05 18:33:01 +02:00
Bernd Hahnebach
b2262058c8
FEM: visual output for beam and shellelements added
2015-10-05 18:32:38 +02:00
Bernd Hahnebach
b4d99aa570
FEM: fix in ShellThicness and BeamSection
2015-10-05 18:32:18 +02:00
Bernd Hahnebach
2b89aab8f3
Fem: fix in ShellThickness selectionobserver
2015-10-05 18:25:57 +02:00
Bernd Hahnebach
8e8ecdd36f
FEM: icons for FemShellThickness and FemBeamSection
2015-09-23 20:11:11 -03:00
Bernd Hahnebach
705c339f21
FEM: added object FemShellThickness and FemBeamSection to enable shell and beam analysises
2015-09-23 20:11:11 -03:00
Przemo Firszt
f85352d93d
FEM: Fix file names in MechanicalAnalysis.py
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
d29f3fa276
FEM: FemTools - add function documentation
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
8cd0939fff
FEM: Update inp_file_name after base_name or working_directory change
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
cee4fc688f
FEM: Fix icon names
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
9ce1020d84
FEM: Fix white spaces
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Przemo Firszt
ee7beea983
FEM: Fix file paths + tidy up naming
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-22 20:09:53 -03:00
Mateusz Skowroński
43a4a5938c
Fix files encoding. Go from ISO8859-1 to UTF-8.
2015-09-21 19:50:49 -03: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
2991bbf033
+ fixes #0001238 : Preferences: set temp files directory
2015-09-19 16:07:33 +02:00
Bernd Hahnebach
75fbb93180
FEM: CalculiX writer comments regarding load calculation algorithm
2015-09-15 15:30:15 +02:00
Bernd Hahnebach
4f31fc44e6
FEM: ccxInpWriter formating according flake8
2015-09-15 15:13:30 +02:00
Bernd Hahnebach
04b6024e64
FEM: update FemAnalysis class description
2015-09-15 15:13:30 +02:00
Bernd Hahnebach
c618962cd0
FEM: use more obvious method names in ccxInpWriter
2015-09-15 15:13:29 +02:00
Bernd Hahnebach
84e2b9ebbf
FEM: make MechanicalMaterial less noisy
2015-09-15 15:13:29 +02:00
Bernd Hahnebach
40d35f23e4
FEM: fix typo in class type definition in MechanicalMaterial
2015-09-15 15:13:29 +02:00
Bernd Hahnebach
fb9f43667d
FEM: delete Debug prints in ccxInpWriter
2015-09-15 15:13:28 +02:00
Bernd Hahnebach
5a2940fb82
FEM: add to ccxInpWriter: CLOAD for shell meshes and solid meshes without face data
2015-09-15 15:13:28 +02:00
Bernd Hahnebach
b553d9895d
FEM: TestFem, use no space in materialname
2015-09-15 15:13:28 +02:00
Bernd Hahnebach
c7ab1fd98b
FEM: add FEM Mesh Type to the CalculiX elementset up to date only solid is supported
2015-09-15 15:13:27 +02:00
Bernd Hahnebach
bab3ec689a
FEM: CalculiX file writer move getTriangleArea to helpers
2015-09-15 15:13:27 +02:00
Yorik van Havre
163d206513
Updated ts files
2015-09-14 14:31:47 -03:00
wmayer
c05baee29a
+ fix warnings in Fem
2015-09-11 15:11:55 +02:00
Eivind Kvedalen
6d84d419c2
Mod/Fem: Removed -Wunused-variable warnings.
2015-09-11 14:52:32 +02:00
Przemo Firszt
7446930f69
FEM: Fix invalid update_displacement reset call
...
Reset parameter is not an option, empty parameters list call does the resetting.
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-10 14:04:38 +01:00
Przemo Firszt
32c96b4267
Tests, FEM: Add test for frequency analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 12:17:12 -03:00
Przemo Firszt
25b501e215
FEM: Add reset_all funcion to FemTools
...
reset_all groups purge_results, reset_mesh_color and reset_mesh_deformation
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:50 +02:00
Przemo Firszt
0ba28a5ba6
FEM: Add function documentation
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:49 +02:00
Przemo Firszt
89d795ff90
FEM: Add option to limit max value of result being used to color FEM mesh
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:48 +02:00
Przemo Firszt
b516e35b19
FEM: Add frequency analysis to FEM wb
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:47 +02:00
Przemo Firszt
7bf1bcdec3
FEM: Add get_results_object function
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Przemo Firszt
d52ad7e4bf
FEM: Raise exception on use or load of non existing results
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-09-09 13:57:46 +02:00
Alexander Golubev
0603c3fb61
App/DocumentObserver: make slot methods unimplemented rather pure-virtual and clenup derived classes accordingly
2015-09-02 13:54:44 +02:00
wmayer
979d1299cc
+ fix various warnings with gcc
2015-09-01 19:29:39 +02:00
Przemo Firszt
15d7369de8
FEM: Force consistent DENSITY formatting
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00
Przemo Firszt
5e3dc0c2c9
Tests, FEM: Fix inp file writing test
...
It's a compare line-by-line without comment lines now instead of
previously used md5 sum comparison.
inp pre filtering method suggested by Far-Zer
File location fixes by wmayer
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-18 13:44:28 +01:00
wmayer
13bf1a9cf5
+ make FEM unittest more platform independent
2015-08-05 11:31:14 +02:00
Przemo Firszt
f395f38d09
Tests, FEM: Add missing Density and update md5 of standard inp file
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-08-05 11:02:37 +02:00
Przemo Firszt
d380187ef3
FEM, Material: Add DENSITY to inp files and basic material files
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:14 -03:00
Przemo Firszt
b85c4430bd
FEM: Fix invalid stdout/stderr variable names
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-31 14:04:13 -03:00
Przemo Firszt
d371cff4f2
FEM: Rename Fem_Quick_Analysis icon to fem-quick-analysis
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
b5c08388b8
FEM: Rename Fem_Result icon to fem-result
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
Przemo Firszt
35f506d369
FEM: Rename Fem_Purge_Results icon to fem-purge-results
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-07-29 11:00:34 -03:00
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