material and fem: main material cards work with fem

Merged, abandoned or rejected pull requests are moved here to clear the main Pull Requests forum.
User avatar
bernd
Posts: 9310
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

material and fem: main material cards work with fem

Postby bernd » Thu Feb 26, 2015 8:39 pm

As Jürgen proposed here: viewtopic.php?f=18&t=7172&start=30#p70061
jriegel wrote:... That means also the Material DB. There we need to add a Unit to all constances...
Started to do that. Added units to the youngs modulus of main material cards and added generic wood material card.

branch
https://github.com/berndhahnebach/FreeC ... terialsfem

commit
https://github.com/berndhahnebach/FreeC ... bf06c47fc0


@Yorik
You added dozens of material cards 3 month ago. Where do they came from? They all have youngs modulus unit N/mm2 = MPa. FemWB will them track as kPa since the unit is not written behind the number at the card.
https://github.com/FreeCAD/FreeCAD_sf_m ... 85dc32194e
wmayer
Site Admin
Posts: 15496
Joined: Thu Feb 19, 2009 10:32 am

Re: material and fem: main material cards work with fem

Postby wmayer » Fri Feb 27, 2015 9:42 am

Merged.
User avatar
yorik
Site Admin
Posts: 11701
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: material and fem: main material cards work with fem

Postby yorik » Fri Feb 27, 2015 1:58 pm

bernd wrote:@Yorik
You added dozens of material cards 3 month ago. Where do they came from? They all have youngs modulus unit N/mm2 = MPa. FemWB will them track as kPa since the unit is not written behind the number at the card.
A user made all these cards... Indeed we should add units to them. Maybe there is a way to do that automatically...
ulrich1a
Posts: 1920
Joined: Sun Jul 07, 2013 12:08 pm

Re: material and fem: main material cards work with fem

Postby ulrich1a » Fri Feb 27, 2015 2:53 pm

bernd wrote:You added dozens of material cards 3 month ago. Where do they came from?
They where posted here: viewtopic.php?f=8&t=8800#p72522
The user posted first a list with units.

Ulrich
User avatar
yorik
Site Admin
Posts: 11701
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: material and fem: main material cards work with fem

Postby yorik » Fri Feb 27, 2015 4:33 pm

Doh... I guess the units were not supported at that time. Anyway, I just found a way to add the missing unit automatically.
mk2
Posts: 77
Joined: Wed Dec 10, 2014 4:27 pm

Re: material and fem: main material cards work with fem

Postby mk2 » Fri Feb 27, 2015 4:50 pm

Hello,

is the Problem with the units solved? I have created all these cards, and i thought that FreeCAD works with mm, so i write these constances in N and mm.



Kind regards

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

Re: material and fem: main material cards work with fem

Postby bernd » Fri Feb 27, 2015 5:13 pm

mk2 wrote:... is the Problem with the units solved? ...
Yes see Yoriks commit. https://github.com/FreeCAD/FreeCAD_sf_m ... ed5664f012

Thanks Yorik for fixing it that fast. Fem is making a little progress ...

mk2 wrote: i thought that FreeCAD works with mm, so i write these constances in N and mm.
Thanks for all the cards. Yes internally FreeCAD works with mm but since a unit system was implemented FreeCAD accepts lots of different units. units and all supported units: https://raw.githubusercontent.com/FreeC ... tyParser.l