Importing Equivalent Plastic Strain

About the development of the FEM module/workbench.

Moderator: bernd

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

Importing Equivalent Plastic Strain

Post by sodelo »

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 55 times
Extrude_Mesh.txt
Another Calculix input file - To be renamed to .inp
(209.77 KiB) Downloaded 82 times
_FemMechanicalResult.py
(4.64 KiB) Downloaded 77 times
importCcxFrdResults.py
(26.41 KiB) Downloaded 89 times
Last edited by sodelo on Sun Feb 19, 2017 12:08 pm, edited 1 time in total.
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Importing Equivalent Plastic Strain

Post by bernd »

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

Re: Importing Equivalent Plastic Strain

Post by sodelo »

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

Re: Importing Equivalent Plastic Strain

Post by bernd »

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

Re: Importing Equivalent Plastic Strain

Post by bernd »

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

Re: Importing Equivalent Plastic Strain

Post by bernd »

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: 73
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Post by sodelo »

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: 73
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Post by sodelo »

@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: 73
Joined: Tue Jan 24, 2017 9:20 am

Re: Importing Equivalent Plastic Strain

Post by sodelo »

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

Re: Importing Equivalent Plastic Strain

Post by sodelo »

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?
Post Reply