Importing Equivalent Plastic Strain

About the development of the FEM module/workbench.
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Importing Equivalent Plastic Strain

Postby sodelo » Sat Feb 18, 2017 7:41 pm

Hi,
Here are some proposals to import Equivalent plastic strains (PE or PEEQ) from a Frd file.
Sorry I am not familiar with GitHub.
Now I am able to import the Peeq values but I do not know how to display them.

Thanks,
Attachments
beam01.FCStd
Freecad file. You need to add PEEQ as an EL FILE output
(899.23 KiB) Downloaded 6 times
Extrude_Mesh.txt
Another Calculix input file - To be renamed to .inp
(209.77 KiB) Downloaded 7 times
_FemMechanicalResult.py
(4.64 KiB) Downloaded 5 times
importCcxFrdResults.py
(26.41 KiB) Downloaded 6 times
Last edited by sodelo on Sun Feb 19, 2017 12:08 pm, edited 1 time in total.
User avatar
bernd
Posts: 3871
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Importing Equivalent Plastic Strain

Postby bernd » Sun Feb 19, 2017 11:17 am

great, would you post a freecad file to test with too?
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Postby sodelo » Sun Feb 19, 2017 12:08 pm

Freecad file added
User avatar
bernd
Posts: 3871
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Importing Equivalent Plastic Strain

Postby bernd » Sun Feb 19, 2017 12:40 pm

if some others would like to try:
https://github.com/berndhahnebach/FreeC ... empestrain

@sodelo
Have you got a github account ? If you send the username and the e-mail to me I would make you the author of the peeq strain commits.

Thanks for the FreeCAD file I will give it a try ...
User avatar
bernd
Posts: 3871
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Importing Equivalent Plastic Strain

Postby bernd » Sun Feb 19, 2017 12:50 pm

If I use your code the result object has a new attribute peeq but the result object in the file you posted misses the new peeq strain if I open it with your new modules in FreeCAD. If I use your code to recalculate the example the peeq strain is empty.
User avatar
bernd
Posts: 3871
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Importing Equivalent Plastic Strain

Postby bernd » Sun Feb 19, 2017 12:55 pm

sodelo wrote:Now I am able to import the Peeq values but I do not know how to display them.
It is possible by python. See

To view thePrinzipalMax for your Example use the following code. This could be adapted to your peeq ..

Code: Select all

res_obj = App.ActiveDocument.CalculiX_static_results
mesh_obj = App.ActiveDocument.getObjectsByLabel('beam01')[0]

mesh_obj.ViewObject.setNodeColorByScalars(res_obj.NodeNumbers, res_obj.PrincipalMax)
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Postby sodelo » Sun Feb 19, 2017 1:55 pm

If I use your code the result object has a new attribute peeq but the result object in the file you posted misses the new peeq strain if I open it with your new modules in FreeCAD. If I use your code to recalculate the example the peeq strain is empty.


This is normal, you need to edit the input file to add PEEQ at the EL FILE output line:

Code: Select all

*EL FILE
S, E, PEEQ
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Postby sodelo » Sun Feb 19, 2017 1:58 pm

@sodelo
Have you got a github account ? If you send the username and the e-mail to me I would make you the author of the peeq strain commits.


I do not have any github account and I am not familiar with it. So please make the commits if you do not mind.

What I had in mind anyway was to go a bith further:

- to write PEEQ in case a non linear material is used
- to be able to post-process the results.
If you could orient me to where these changes have to be done, I would be grateful.

Besides, I suspect the standard mechanical output has to be changed since there is currently no possibility to pot-process the stress and strain tensor components, the principal strains and the of course PEEQ. Stress and strain vectors do not mean anything to me (see my other post).

Thanks,
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Postby sodelo » Sun Feb 19, 2017 2:18 pm

Writing of the PEEQ output in case the material is non linear
Attachments
FemInputWriterCcx.py
(57.4 KiB) Downloaded 6 times
sodelo
Posts: 71
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Postby sodelo » Sun Feb 19, 2017 2:31 pm

For the post-processing, I understand the standard way is defined in _TaskPanelShowResult.py and the VTK way is defined in FemVTKTools.cpp.

These two options are somewhat redundant. Will both 2 options continue to exist in the future?