Commit Graph

298 Commits

Author SHA1 Message Date
Roy-043
85c2c973d8 Material: Avoid dictionary.keys() where possible 2023-08-10 00:59:02 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
wmayer
351a25681a Material: fix icon path 2023-03-27 11:27:32 +02:00
Yorik van Havre
2cd27ce328 updated ts files 2023-02-27 15:35:51 +01:00
Uwe
7eb560bdab [Material] add new card to CMake 2023-02-26 04:21:32 +01:00
Vladimir
d9950a5e4e [Material] Add Titanium alloy to materials (#8636)
* Add Titanium alloy
2023-02-26 03:53:39 +01:00
luzpaz
9df1f9f8f5 [Material] fix grammar 2023-02-25 09:59:24 +01:00
Uwe
aa1725ff2c [Material] add heat parameters to aluminum alloys 2023-02-24 16:46:40 +01:00
Uwe
688e42df89 [Material] remove unused Help button in editor dialog 2023-02-24 03:47:19 +01:00
Uwe
04695d9c4c [Material] fix major bug of wrong decimals
This PR fixes the long-standing major bug that for languages using ',' as decimal separator the material editor was useless. (bug no. 10 in https://forum.freecad.org/viewtopic.php?t=56912)
  the issue was that the value was handled as text. This PR:
- using a spinbox instead if a text edit to modify numbers (has also the advantage to be able to change values by spinning)
- sets min/max properly for all number data types

- also avoid rounding artifacts when changing Float values
2023-02-23 03:06:44 +01:00
luzpaz
72166fed46 Fix misc. typos and whitespace 2023-02-22 23:46:18 +01:00
Uwe
69645d0220 [Material] [skip ci] fix card for Graphite
- decimal sign was mixed ',' and '.' causing problems
2023-02-22 21:16:05 +01:00
Uwe
6a689e3e97 [Material] fix bugs for external material files
- handle case that material cards are chosen from folders outside of the standard material folders

- also reduce singleStep size for spin edits for more convenience
2023-02-22 05:25:06 +01:00
Uwe
e1e65e5b3a [Material] fix card selection bug
- fixes bug number 7 of this list: https://forum.freecad.org/viewtopic.php?style=5&p=489666#p489666

- also fix warning about too short variable name
2023-02-19 07:46:52 +01:00
Uwe
51a3428276 [FEM] fix material handling of fluids
- the material editor failed for Fluid materials because this info was not passed to it. Instead always solid materials were loaded.

- also fix warning about too long variable name and remove unnecessary debug code
2023-02-19 02:57:12 +01:00
Uwe
c19efe0842 [Material] fix bugs with missing icons
- at the moment you get several warnings about missing icons when starting the Material editor
  The reason is that they are not registered in CMake

- also remove icon from Material icon editor. As it is a child of FreeCAD it should have the same FreeCAD icon as all other FreeCAD widgets.

- also fix warning about too short variable name
2023-02-19 00:47:44 +01:00
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
f942353ef3 [Material] new card for Iron 2023-02-09 06:25:43 +01:00
luzpaz
1f7ab06160 Fix whitespace issues 2023-02-05 16:39:58 +01:00
Uwe
2620bcca35 [Material] fix conductivity of Copper
- the conductivity was by a factor 10 too low, use a common value as fix
2023-02-05 05:21:14 +01:00
Uwe
3310a80164 [Material] add support for magnetic permeability
- also rename property group to "electromagnetic" (this change has no influence on any existing simulation, is only the name in the material editor)
2023-02-03 14:17:17 -06:00
Uwe
a7e02a48fa [Material] add new card for carbon dioxide 2023-02-03 02:37:27 +01:00
luzpaz
79e150a81b Fix trailing whitespace, typos, headers
Fix trailing whitespace, typos, and header uniformity.
2023-01-23 00:34:37 +01:00
Yorik van Havre
89147ef8de Regenerated ts files using lupdate6.6 2022-12-22 15:39:42 +01:00
luz paz
452008f65d Fix header uniformity for various workbenches/directories
Also includes some trailing whitespace fixes
2022-11-29 04:48:57 +01:00
Yorik van Havre
3d75b4fb74 Updated ts files 2022-10-06 12:16:32 +02:00
Uwe
388dab1cf2 [Material] add materials used by our examples
- add generic copper and invar
- also extend the generic aluminum card
2022-08-10 02:08:35 +02: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
Uwe
bb5c445848 [FEM] add generic Aluminum material
- with full thermal info
2022-07-26 03:20:27 +02:00
Uwe
68659771f5 [FEM] fix material task dialog for fluids
- this fixes a mistake from commit 821dc915
- it also consistently use the thermal expansion coefficient
- add code comments

now the material task dialog works with all fluid materials without errors or warnings
2022-07-23 04:59:10 +02:00
Uwe
e899c221cc [FEM] fix wrong console outputs for fluid materials
- since a while ThermalExpansionCoefficient is used, VolumetricThermalExpansionCoefficient is only used for the material task panel
- as already stated in a code comment, the unit of VolumetricThermalExpansionCoefficient is ThermalExpansionCoefficient, therefore we must check for ThermalExpansionCoefficient
- we must also check if ThermalExpansionCoefficient exists

- Adapt the existing fluid material cards to use the ThermalExpansionCoefficient
2022-07-02 05:36:43 +02:00
Kuzemko Alexsandr
bd7d4273f3 Crowdin Add Material to updatets.py script and create new Material.ts 2022-06-21 17:45:25 +03:00
Daniel Wood
8317f896fd [Material] evaluate the number of columns correctly when rebuilding the FCMats (#5910)
* evaluate the number of columns correctly.
* simplify awk command
2022-03-20 19:20:29 +01:00
luz paz
28ab1bb68f Fix various superfluous whitespace in *.dox files 2022-01-09 21:01:42 -06:00
Preslav
5030d8bb6d Added stiffness units to FreeCAD [mN/m, N/m, kN/m, MN/m] 2021-08-16 12:27:41 +01: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
56ee4ca2a8 Material: nitrogen card, fix wrong minus which leads to syntax error in unit system 2021-07-14 20:45:33 +02:00
Bernd Hahnebach
dc7e0cb0ce Material: matcard reader, fix some problems 2021-07-14 16:07:36 +02:00
luz paz
b463eca738 Fix FEM and Material typos
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,bottome,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,inout,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,ontop,orgin,orginx,orginy,ot,pard,parms,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml,./build/doc/SourceDocu`
2021-07-14 10:48:20 +02:00
Bernd Hahnebach
ef9d9c7e57 Material: card reader, do not break if error on card reading. 2021-07-13 20:41:38 +02:00
Bernd Hahnebach
3f552500bc Maaterial: card writer, force to use utf-8 2021-07-13 17:55:21 +02:00
Bernd Hahnebach
e9d1af3acc Material: better warning message if card name is not file name 2021-07-13 17:42:25 +02:00
Bernd Hahnebach
df3ba55bf1 Material: matcard writer, print error if no card name is provided on save 2021-07-13 17:42:19 +02:00