material, add new key

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

material, add new key

Postby bernd » Wed Sep 14, 2016 8:27 pm

I would like to add another key to the materials. It is another stress needed to implement plastic material in FEM. What do I need to do for this?

- add it to the template file /src/Mod/Material/StandardMaterial/TEMPLATE.FCMat https://github.com/FreeCAD/FreeCAD/blob ... LATE.FCMat
- add the new key and the value to the materials
- what else ?!?
User avatar
bernd
Posts: 7711
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material, add new key

Postby bernd » Thu Sep 22, 2016 5:16 am

up
User avatar
PrzemoF
Posts: 2516
Joined: Fri Jul 25, 2014 4:52 pm
Contact:

Re: material, add new key

Postby PrzemoF » Thu Sep 22, 2016 9:16 am

Sorry, I missed it!!

Scenario B from README [1]. Let me know if you hit any problems, so we can improve the scripts and manual.

B. Adding a property

1. Add the property to headers file and to the TEMPLATE.FCMat file with a description
2. Run ./make_ods.sh to create Materials.ods
3. Edit Materials.ods and fill the values of the new property (empty properties are not written to FCMat files)
3. Run ./make_FCMats.sh to create directory with new FCMat files
4. Copy FCMat files to StandardMaterials directory

[1] https://github.com/FreeCAD/FreeCAD/blob ... ols/README
User avatar
bernd
Posts: 7711
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: material, add new key

Postby bernd » Fri Sep 23, 2016 6:00 am

I knew there was something I did not know about :D Thanks Przemo!