MFrontGenericInterfaceSupport icon indicating copy to clipboard operation
MFrontGenericInterfaceSupport copied to clipboard

Commands for Obtaining Calculation Results

Open tiantian0347 opened this issue 2 years ago • 5 comments

Hello,what command should I use to update the calculated values of external variables in a Python program? And what command should I use to call the results calculated in tangenerator, such as @ Integrator and @ DissipatedEnergy?

tiantian0347 avatar Jun 05 '23 08:06 tiantian0347

Hi, The setExternalStateVariable method is here for that. You have various examples in the tests. See IntegrationTest5.py for instance. The tangent operator is available through the MaterialDataManager in the K member, the other through the MaterialStateManager in stored_energies and dissipated_energies members.

thelfer avatar Jun 05 '23 08:06 thelfer

Thanks for your answer. May I ask what is the difference between m.s1. gradients [0:] and m.s1. gradients [1:]? Why are there two? What would happen if I only assigned one value? And why does updating (m) after integrate result in the value of m.K becoming 0? What is the difference between update and not update?

tiantian0347 avatar Jun 08 '23 08:06 tiantian0347

@tiantian0347 Sorry for not responding, I did not see your question. Did you find the anwsers ?

thelfer avatar Nov 28 '23 14:11 thelfer

Hi, Thanks for your reply, it was very helpful to me. I will learn this test and contact you if I have any questions.

Best wishes. ---- Replied Message ---- | From | Thomas @.> | | Date | 06/05/2023 16:44 | | To | thelfer/MFrontGenericInterfaceSupport @.> | | Cc | 田甜 @.>, Author @.> | | Subject | Re: [thelfer/MFrontGenericInterfaceSupport] Commands for Obtaining Calculation Results (Issue #114) |

Hi, The setExternalStateVariable method is here for that. You have various examples in the tests. See IntegrationTest5.py for instance. The tangent operator is available through the MaterialDataManager in the K member, the other through the MaterialStateManager in stored_energies and dissipated_energies members.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

tiantian0347 avatar Nov 28 '23 14:11 tiantian0347

Ok, let me know if you have any trouble

thelfer avatar Nov 28 '23 14:11 thelfer