Bernd Hahnebach
b0b48bb92e
FEM: code formating, make all python module start the same way
...
- module info
- doxygen documentation
- imports
- code
2016-11-22 19:50:50 +01:00
Yorik van Havre
bf0d37bf28
Doc: Fixes in doxygen docs for Draft,Arch, FEM
2016-11-17 17:04:09 -02:00
Bernd Hahnebach
08eca9dad4
FEM: add author to material files
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
21995724b0
FEM: unused imports deleted
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
91afe97ad5
FEM: split MechanicalMaterial into separate modules
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cd3d26e7e5
FEM: use ConsolePrints instead of prints for MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
dba05b14f5
FEM: shape typte test in selection of multiple material reference shapes
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
95a1f6836e
FEM: put prints in brackets in MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
cadb7ba130
FEM: multiple materials, support for solids
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
3724748d06
FEM: selection of Faces and Edges as References for multiple MechanicalMaterial
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
162a0421d9
FEM: multiple materials for shell and beam meshes
2015-11-07 13:24:45 -02:00
Bernd Hahnebach
777cc2521b
FEM: print in brackets
2015-10-26 13:13:57 +01:00
Przemo Firszt
e4fac7fe34
FEM: Migrate _CommandMechanicalMaterial to FemCommands
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu >
2015-10-19 21:28:07 +02:00
wmayer
b6a1e15aee
+ Do not rely on active document but active analysis object
2015-10-18 22:36:36 +02:00
Przemo Firszt
2b3bc01063
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
3056cf7ff4
FEM: only change MechanicalMaterial object if taskd is accepted
2015-10-09 08:19:24 +02:00
Bernd Hahnebach
9b3e6ab84f
FEM: add space to licence according flake8
2015-10-09 08:19:24 +02:00
Bernd Hahnebach
9e695519b1
FEM: make MechanicalMaterial less noisy
2015-09-15 15:13:29 +02:00
Bernd Hahnebach
a4c07b51f6
FEM: fix typo in class type definition in MechanicalMaterial
2015-09-15 15:13:29 +02:00
Przemo Firszt
ffa1065898
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
d733e6c487
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
c9a1324c26
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
e3ec5b5f90
FEM: fix white space
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu >
2015-06-09 13:07:49 -03:00
Przemo Firszt
09652a0f46
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
9b5301a004
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
9e43233bfc
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
e57535985b
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
2bb7e0fea8
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
f00a353268
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
a46e8c3129
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
111fc74987
FEM: Group all helper functions together
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu >
2015-04-17 10:51:56 +02:00
Przemo Firszt
3526d05ba4
FEM: Rename chooseMat to choose_material
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu >
2015-04-17 10:51:56 +02:00
Przemo Firszt
b6360a860c
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
74caa6e6fd
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
6fe0da61a3
FEM: Sort materials within each category
...
Signed-off-by: Przemo Firszt <przemo@firszt.eu >
2015-04-17 10:51:56 +02:00
Przemo Firszt
26c9ead871
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
acc23c208f
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
841f8150cf
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
995e917da0
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
2e95c8d7b9
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
b46fb12fe7
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
8185ec159b
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
dfb7212ec2
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
bf50cf9aec
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
4bc1cd6d44
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
06e27d051d
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
3356c10d44
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
c777bdef76
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
d33650596a
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
6848c9a9ca
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