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

Setting dependent variables #2

Open
imyxc opened this issue Oct 23, 2024 · 1 comment
Open

Setting dependent variables #2

imyxc opened this issue Oct 23, 2024 · 1 comment

Comments

@imyxc
Copy link

imyxc commented Oct 23, 2024

I used this program to train an incremental correlation model and encountered a very headache inducing problem. In general, it should be reasonable for a subroutine to calculate a unit. Therefore, when designing dependent variables, we can consider them as dependent variables of a unit. For example, if a unit has six equivalent plastic strains, DEPVAR can be set to 6. However, in the pyvumat subroutine, it provides strain tensors for multiple units at once, such as [144,6]. How to set DEPVAR has become a headache inducing problem. Is there a way to solve this situation?

@jccrone
Copy link
Collaborator

jccrone commented Oct 25, 2024

I am not clear on what your issue is. You can change DEPVAR in the Abaqus input file to whatever you need. The stateOld/stateNew arrays will then be size [N,DEPVAR] where N is the number of material points up the batch size (which defaults to 144 in Abaqus). This is standard behavior for VUMATs. If you want to work with one material point (is this what you mean by unit?) you can add a loop and access the data for that entry by stateOld[i] which will be a vector of size DEPVAR.

If this doesn't answer your question, please rephrase or provide additional detail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants