Comparison between MOOSE and pyzag runs of NEML2 viscoplastic model #257
-
Hello all, I am trying to use NEML2 as the constitutive model in a project. As part of this, I am trying to compare a single element MOOSE model run using a NEML2 material model. For simplicity I am using the viscoplasticity_isoharden.i MOOSE input (modified to also output strains & stresses) and the corresponding NEML2 model from the MOOSE tests. After MOOSE has solved, I am taking the strains (converted to Mandel notation) and using those to drive the same material model in python using pyzag. I assumed that the MOOSE and pyzag outputs should always agree as they are both derived from the same NEML2 model. Unlike MOOSE, the pyzag run of the model gives stresses in the Y and Z directions, and lowers the stress in the X direction (see attached image). The trace of the stress tensors from MOOSE and pyzag are identical. Assuming these two approaches should agree, is there something I am not understanding? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
No problem, thanks for getting back to me.
|
Beta Was this translation helpful? Give feedback.
-
Ok, I may have misunderstood how both MOOSE and pyzag are working then. I had assumed that given the complete strain tensor history at a node, pyzag would be able to reproduce the same stress tensor history as MOOSE. The BCs are here: [BCs] |
Beta Was this translation helpful? Give feedback.
There's nothing wrong with your understanding. You just need to be careful with the boundary conditions since they need to fully constrain (with Dirichlet-type BC) all nodes of the HEX8 element. That's really the only way of making sure balance of linear momentum is not at play.
See my input file below:
Modified input file