Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands for Obtaining Calculation Results #114

Open
tiantian0347 opened this issue Jun 5, 2023 · 5 comments
Open

Commands for Obtaining Calculation Results #114

tiantian0347 opened this issue Jun 5, 2023 · 5 comments
Assignees
Labels
python bindings Anything related to the python-bindings

Comments

@tiantian0347
Copy link

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?

@thelfer thelfer self-assigned this Jun 5, 2023
@thelfer thelfer added the python bindings Anything related to the python-bindings label Jun 5, 2023
@thelfer
Copy link
Owner

thelfer commented Jun 5, 2023

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.

@tiantian0347
Copy link
Author

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?

@thelfer
Copy link
Owner

thelfer commented Nov 28, 2023

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

@tiantian0347
Copy link
Author

tiantian0347 commented Nov 28, 2023 via email

@thelfer
Copy link
Owner

thelfer commented Nov 28, 2023

Ok, let me know if you have any trouble

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
python bindings Anything related to the python-bindings
Projects
None yet
Development

No branches or pull requests

2 participants