Should any material have any known material property?

A forum to discuss the implementation of a good Materials system in FreeCAD
User avatar
bernd
Posts: 7535
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Should any material have any known material property?

Postby bernd » Thu May 31, 2018 6:52 am

https://github.com/FreeCAD/FreeCAD/blob ... at.py#L106 and https://github.com/FreeCAD/FreeCAD/blob ... Mat.py#L31

If a material card is exported any known material parameter is written to file, even if the parameter is empty or even if the parameter makes no sense at all for this material. For example a fluid material has no young's modulus or not tensile strength.

IMHO we should define some mandatory parameter as name and only write the mandatory parameter and the parameter which really have a value.

Bernd
User avatar
bernd
Posts: 7535
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Should any material have any known material property?

Postby bernd » Fri Jun 01, 2018 6:31 am

bernd wrote:
Thu May 31, 2018 6:52 am
https://github.com/FreeCAD/FreeCAD/blob ... at.py#L106 and https://github.com/FreeCAD/FreeCAD/blob ... Mat.py#L31

If a material card is exported any known material parameter is written to file, even if the parameter is empty or even if the parameter makes no sense at all for this material. For example a fluid material has no young's modulus or not tensile strength.

IMHO we should define some mandatory parameter as name and only write the mandatory parameter and the parameter which really have a value.

Bernd
https://github.com/FreeCAD/FreeCAD/pull ... c2070c89db
User avatar
bernd
Posts: 7535
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Should any material have any known material property?

Postby bernd » Fri Jun 01, 2018 10:17 am