Materials dialogue problem

About the development of the FEM module/workbench.

Moderator: bernd

UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Materials dialogue problem

Post by UR_ »

Jee-Bee wrote: Sat Mar 17, 2018 7:33 pm When i load the material the material dialog is empty...
Are you using this file?
https://github.com/FreeCAD/FreeCAD/blob ... 1-T6.FCMat

There are some issues inside:

; Aluminum-6061-T6
; (c) 2016 Mandeep Singh (CC-BY 3.0)
; Information about the content of such cards you can find here:
; http://www.freecadweb.org/wiki/index.php?title=Material

[FCMat]
Name = Aluminum 6061-T6
Description = Precipitation-hardened, Nonferrous Aluminum alloy
Father = Metal
ProductURL = https://en.wikipedia.org/wiki/6061_aluminium_alloy
YoungsModulus = 69000 MPa
UltimateTensileStrength = 310 MPa
PoissonRatio = 0.33
Density = 2700 kg/m^3
KindOfMaterial = Aluminium
KindOfMaterialDE = Aluminium
ThermalConductivity = 167 W/m/K


After changing red marked units, loading of material works on my side.

tested with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13375 (Git)
Build type: Release
Branch: master
Hash: 2bfea410fce1434fec0f853b032549aa2cd3c47e
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

I assume more than only this material is missing the units. I remember user przemoF had a tool (libre office sheet calc or something else) where you could change all materials at once. It must be somewhere in the forum ... Where are the forum search heros :D
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

bernd wrote: Sun Mar 18, 2018 8:09 am I assume more than only this material is missing the units. I remember user przemoF had a tool (libre office sheet calc or something else) where you could change all materials at once. It must be somewhere in the forum ... Where are the forum search heros :D
https://forum.freecadweb.org/viewtopic.php?f=10&t=17441
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Materials dialogue problem

Post by PrzemoF »

All good now? I was away for a while :D
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Materials dialogue problem

Post by UR_ »

PrzemoF wrote: Tue May 22, 2018 9:28 amAll good now?
Only 99%.
I think "FreeCAD/src/Mod/Material/StandardMaterial/Tools/Materials.ods" is still faulty.
If a user exports ods file without importing before, FCMat files are broken again.

Just a suggestion from a windows user :lol:
Perhaps a linux native can test it :roll:
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Materials dialogue problem

Post by PrzemoF »

Can you provide a broken material file?
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

material cards have been edited the time beein, but ods filer never got an update.

great to see you around in FEM :D
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Materials dialogue problem

Post by PrzemoF »

Thanks! :)
I'm not sure how to enforce it, but after editing FCMat we should run make_ods.sh to propagate the changes (if my memory servers my well).
I think I could make another script to compare both data sets (in ods and FCMat), but maybe we should get rid of the ods file and use it only as a temporary tool to check if the data set is consistent?

Edit: there seem to be some minor discrepancies between the FCMat and Material.ods:

Code: Select all

$ diff . /tmp/FCMats
diff ./CalculiX-Steel.FCMat /tmp/FCMats/CalculiX-Steel.FCMat
12a13,14
> ThermalConductivity = 43 W/m/K
> ThermalExpansionCoefficient = 12 um/m/K
diff ./Steel-Generic.FCMat /tmp/FCMats/Steel-Generic.FCMat
7c7
< Name = Steel
---
> Name = Steel-Generic
14a15,16
> ThermalConductivity = 50 W/m/K
> ThermalExpansionCoefficient = 0.000012 m/m/K
User avatar
PrzemoF
Veteran
Posts: 3520
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: Materials dialogue problem

Post by PrzemoF »

bernd wrote: Sun Mar 18, 2018 8:09 am I assume more than only this material is missing the units. I remember user przemoF had a tool (libre office sheet calc or something else) where you could change all materials at once. It must be somewhere in the forum ... Where are the forum search heros :D
Tho tool is right there in the directory Mod/Material/StandardMaterial/Tools together with a manual :)
Post Reply