Bernd Hahnebach
ea6e65f9f8
FEM: add author to material files
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
81cf730791
FEM: unused imports deleted
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
05a20ecc77
FEM: split MechanicalMaterial into separate modules
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
49c12c5e3d
FEM: use ConsolePrints instead of prints for MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
746bad9f18
FEM: shape typte test in selection of multiple material reference shapes
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
3ef7d3ce3a
FEM: put prints in brackets in MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cb690eca62
FEM: multiple materials, support for solids
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
52ad0bcc9d
FEM: selection of Faces and Edges as References for multiple MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
8cb6ed7d6a
FEM: multiple materials for shell and beam meshes
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cc3fee5f9c
FEM: print in brackets
2015-10-26 13:13:57 +01:00
Przemo Firszt
f76933eb87
FEM: Migrate _CommandMechanicalMaterial to FemCommands
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-19 21:28:07 +02:00
wmayer
eff27994e5
+ Do not rely on active document but active analysis object
2015-10-18 22:36:36 +02:00
Przemo Firszt
aac2b26c11
FEM: Don't call _ViewProviderMechanicalMaterial in headless mode
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-10-11 09:59:07 +02:00
Bernd Hahnebach
a7f96cb838
FEM: only change MechanicalMaterial object if taskd is accepted
2015-10-09 08:19:24 +02:00
Bernd Hahnebach
57b65cf405
FEM: add space to licence according flake8
2015-10-09 08:19:24 +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
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
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
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
6de28c158d
FEM: fix white space
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-06-09 13:07:49 -03: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
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
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
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
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
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
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
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
663771f0a4
FEM: Sort materials within each category
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu>
2015-04-17 10:51:56 +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