Should any material have any known material property?

A forum to discuss the implementation of a good Materials system in FreeCAD
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Should any material have any known material property?

Post by bernd »

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
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Should any material have any known material property?

Post by bernd »

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
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Should any material have any known material property?

Post by bernd »

Post Reply