Commit Graph

66 Commits

Author SHA1 Message Date
Uwe
b104dba959 [Material] editor: improve float input
- it is very annoying to get a dozen decimals on editing floats. 6 do the job for all cases and a spinBox is preferred.
2023-02-11 04:14:30 +01:00
Uwe
a2ffadcb59 [FEM] use magnetization constraint for 2D
- uses the constraint for 2D magnetodynamics to perform e.g. Elmer's tutorial non. 15

- modify the Material manager to get rid of magnetization but keep the vectorial functionality because in future there will be support for e.g. birefringence materials etc.
2023-02-09 15:43:42 +01:00
Uwe
7c4a3c160c [Material] allow to use vectorial properties
- for electromagnetics we have vector fields and thus need to specify components
- as first step use the new material "Magnetization"

- also get rid of annoying debug messages output on normal use in the material dialog
2023-02-09 07:26:22 +01:00
Uwe
4a030cd949 [FEM] remove unneeded checks for Python 3
since we only support Python >=3, these checks can go
2022-07-31 15:36:54 +02:00
Uwe
d81fe59c2e [FEM] remove checks for Python 2 2022-07-27 14:09:23 +02:00
luz paz
4d21ffa904 Fix various typos 2021-07-31 09:46:50 +02:00
Bernd Hahnebach
01c5c1a63c Material editor: add some comments 2021-07-15 09:20:31 +02:00
Bernd Hahnebach
70c8ff15ba Material Editor, code formating 2021-07-15 08:34:51 +02:00
Bernd Hahnebach
29ec98df8d Material, workaround for precision problem 2021-07-15 08:34:49 +02:00
Bernd Hahnebach
323f323864 Material: comments 2021-07-15 00:09:58 +02:00
Bernd Hahnebach
f6978f419e Material: pep8 code formating 2020-11-18 08:15:50 +01:00
Bernd Hahnebach
94905acf05 Material: fix open material editor with empty material, regression was added with commit 66d2688 2020-11-09 19:29:55 +01:00
Yorik van Havre
cb245845c5 Material: Mateiral editor UI fixes
- Fixed color buttons
- Introduced "Section Color" property
- Fixed named properties
- Added preview icons
- Remember UI dimensions and expanded states
2020-10-27 19:16:58 +01:00
Dietmar Czekay
21f75b6ed4 change "User defined" to "UserDefined"
changed "User defined" in src/Mod/Material/Templatematerial.yml and
src/Mod/Material/MaterialEditor.py
2019-09-04 11:29:09 -03:00
luz.paz
c2827611be [Crowdin] string fix + misc. typo and whitespace fixes
* Crowdin link: https://crowdin.com/translate/freecad/6766/en-hu#6576162  
* Tacked on a few typo+whitespace fixes
2019-06-20 18:42:09 +02:00
Bernd Hahnebach
d30c3fb1a0 Materials: editor, improve comments 2019-06-05 21:49:16 +02:00
Bernd Hahnebach
8827187935 Material: editor, allow duplicate card names and other improvements 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
f69537ed30 Material: mat card template for material editor, move to a much more pythonic one 2019-04-25 20:43:07 +02:00
Bernd Hahnebach
eb21144c4b Material: card utils, move card methods from material editor to card utils module
- isolate card tools for further use in other modules
- possible use of card tools in cmd mode
- add some methods for better card handling
- add some output methods for better card debuging
- editor, better names for methods
- add preference to sort cards and add duplicate cards too
- use icon in mat editor card combo box
2019-04-25 20:43:06 +02:00
Bernd Hahnebach
d0bee305e9 Material: editor, add author 2019-04-25 20:43:06 +02:00
Bernd Hahnebach
d6582737a7 Material, editor and main module, code formating 2019-04-23 09:13:16 +02:00
Bernd Hahnebach
ac71d82dd4 Material: editor, code formating, line length, prints, add some comments 2019-04-23 09:13:04 +02:00
Bernd Hahnebach
4cb913d12c Material and FEM: card reader and writer, make sure to import the same in all modules 2019-04-23 09:13:02 +02:00
Bernd Hahnebach
7f5094231e Material: editor, sort cards in combo box 2019-04-23 09:13:00 +02:00
Bernd Hahnebach
c2e45cd4a9 Material: editor code formating, white space and remove new lines 2019-03-05 13:43:20 +01:00
Bernd Hahnebach
212458a8ea Material: editor, sort cards in combo box 2019-02-21 13:51:43 +01:00
Bernd Hahnebach
a53ffb729c Material: editor, some comments 2019-02-21 13:51:43 +01:00
wmayer
5873d9651e fixes 0003825: file location not stored when opening/saving materials 2019-02-16 22:53:54 +01:00
Bernd Hahnebach
04fbd8f6e6 Material: editor, white spaces 2019-02-15 19:02:43 +01:00
Bernd Hahnebach
f3d652fbea Material: editor, get rid of duplicate unit definition
- in mat editor xml file and in FreeCAD unit system
- remove it from material editor xml file and get it from FreeCAD unit system
2019-02-14 21:11:23 +01:00
Yorik van Havre
671addb4cd Material: Provisorily hide preview fields while mat preview is not implemented 2019-02-14 10:49:24 -02:00
Bernd Hahnebach
0bfcc2872a Material: code formating, flake8 2019-01-05 12:17:52 +01:00
Bernd Hahnebach
8166145d0c Material: code formating, file beginnings Python block comment with space, flake8 E265 2019-01-05 12:17:52 +01:00
Yorik van Havre
0970989adf Material: Fixed py3/import issues 2018-12-29 14:40:25 -02:00
caceres
7be816033a Material: MaterialEditor migrate to model/view 2018-12-29 12:47:30 -02:00
Yorik van Havre
3910a6b97f Material: Fixed encoding bug 2018-11-22 11:45:06 -02:00
luz.paz
892c64823f FEM: Typos 2018-10-17 11:23:04 +02:00
Bernd Hahnebach
d546e41923 py3: define more unicode for python3, see commit 421afe84 2018-08-07 16:57:00 +02:00
Yorik van Havre
f138a5eb8d Arch: Enable compression when exporting IFC files (reuse similar vectors, colors, etc) 2018-07-17 14:19:38 -03:00
Bernd Hahnebach
d081459837 Material: editor, add cards output and some comment 2018-07-03 17:54:57 -03:00
luz.paz
92e9659fba Misc. comment typos
+ Found via `codespell -q 3 --skip="*.po,*.ts,./.git,./src/3rdParty,./src/CXX,./src/zipios++,./src/Mod/Assembly/App/opendcm" -I ~/Projects/fc-word-whitelist.txt`

+ crowdin translation refinements:  
- https://crowdin.com/translate/freecad/6766/en-en#6499546
- https://crowdin.com/translate/freecad/6766/en-en#6504496
2018-06-13 20:37:17 -04:00
Bernd Hahnebach
d02b1fee43 Material: move materal property list into material module and use this for material editor ui and writing of mat files 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
eeb5c5e09d Material, code formating, flake8 compatible code 2018-06-10 20:54:23 +02:00
Bernd Hahnebach
74ee4a8bd9 Material: editor, move poisson ration into mechanical properties 2018-06-09 10:53:00 +02:00
Bernd Hahnebach
44fd9342e9 Material: editor, move in ui hardcoded properties into the editor module in a tuple 2018-06-09 10:52:59 +02:00
Bernd Hahnebach
18f8986c85 Materials: use material directory pref from FEM 2018-06-05 14:28:25 -03:00
Bernd Hahnebach
5ea0e9aee0 Material: editor, some comments 2018-06-01 08:26:58 +02:00
Bernd Hahnebach
367c763c8c Material: Editor, fix open the editor without mat 2018-06-01 08:21:36 +02:00
Bernd Hahnebach
69c7c0ac90 Material: Editor, fix folders to look for mat cards 2018-06-01 08:21:33 +02:00
Bernd Hahnebach
d114685107 Material: Editor and import, only use mat keys if they have a value 2018-06-01 08:21:31 +02:00