Documentation for FEM_MaterialMechanicalNonlinear

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by jnxd »

bernd wrote: Tue Sep 14, 2021 12:40 pm
What else freecad property types do we have? a dictionary. This could work too.

Two lists, one for the stress and one for the strain, but this is easy to make errors too.
Dictionary is probably the best bet for now, if such a property exists. Might need to consider if there always is a function style relationship. Also, what if someone wants, say, anisotropy?

I would say getting this data structure right the first time would avoid confusion. Once that is done, we can see how this data can be translated for different solvers.

For the other nonlinearities, I believe it is best to make a ConstitutiveRelation class, and rename the current MaterialNonLinear to Simple hardening or some such. Other relations can have their own classes and use the different parameters as necessary.
My latest (or last) project: B-spline Construction Project.
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by jnxd »

bernd wrote: Tue Sep 14, 2021 12:39 pm
jnxd wrote: Tue Sep 14, 2021 11:39 am
bernd wrote: Tue Sep 14, 2021 8:03 am https://github.com/FreeCAD/FreeCAD/pull ... a2d16bR152

data structure ...
[ stress yield point 1, strain yield point 12, stress yield point 2, strain yield point 2, stress yield point 3, strain yield point 3, ... ]

I am not 100 % convinced if we should go for such a data structure?

This is even more important since we do not have a task panel to edit the data.
I'm 100% sure we should NOT be going for this.
but it is used in your PR ... https://github.com/FreeCAD/FreeCAD/pull ... a2d16bR152
The structure is different. It is ["sigma_1, eps_1", ...] instead of the [sigma_1, eps_1,...] you mentioned.
My latest (or last) project: B-spline Construction Project.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by bernd »

jnxd wrote: Tue Sep 14, 2021 4:06 pm For the other nonlinearities, I believe it is best to make a ConstitutiveRelation class, and rename the current MaterialNonLinear to Simple hardening or some such. Other relations can have their own classes and use the different parameters as necessary.
It is what I had in mind too. As soon as we have more than one nonlinear model we could rename this object according to the law it is based on, like simple hardening.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by bernd »

jnxd wrote: Tue Sep 14, 2021 4:53 pm
bernd wrote: Tue Sep 14, 2021 12:39 pm
jnxd wrote: Tue Sep 14, 2021 11:39 am
bernd wrote: Tue Sep 14, 2021 8:03 am https://github.com/FreeCAD/FreeCAD/pull ... a2d16bR152

data structure ...
[ stress yield point 1, strain yield point 12, stress yield point 2, strain yield point 2, stress yield point 3, strain yield point 3, ... ]

I am not 100 % convinced if we should go for such a data structure?

This is even more important since we do not have a task panel to edit the data.
I'm 100% sure we should NOT be going for this.
but it is used in your PR ... https://github.com/FreeCAD/FreeCAD/pull ... a2d16bR152
The structure is different. It is ["sigma_1, eps_1", ...] instead of the [sigma_1, eps_1,...] you mentioned.
ahh you use the string approach I introduced an put them all in the list. It is not smart either but this would work. It even is what we had all the time. Than this would be ok for now and we could switch to something smarter later on.
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by jnxd »

bernd wrote: Tue Sep 14, 2021 6:43 pm
ahh you use the string approach I introduced an put them all in the list. It is not smart either but this would work. It even is what we had all the time. Than this would be ok for now and we could switch to something smarter later on.
I suppose. I think I'll leave it at that then...
My latest (or last) project: B-spline Construction Project.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by bernd »

ok
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by bernd »

User avatar
NewJoker
Veteran
Posts: 3069
Joined: Sun Oct 11, 2020 7:49 pm

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by NewJoker »

Great news! This functionality can be really useful.
Nanayaw
Posts: 90
Joined: Thu Feb 14, 2019 3:04 pm

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by Nanayaw »

Hello Bernd

great if its works, at what version is it implemented then I like to try

Thanks and Greeting

Nanayaw
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Documentation for FEM_MaterialMechanicalNonlinear

Post by bernd »

pull latest master and compile yourself or get weekly build on sunday from freecad weekly repo
https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds
Post Reply