Skip to content

Could not get correct stress-strain respnse using powerlaw constituve in damask3.0.0 #46

Answered by MarDiehl
ruanqc asked this question in Q&A
Discussion options

You must be logged in to vote

it's just an issue of getting the data. You use the full stress and strain tensor and average over all points and all components. The datasets with the equivalent quantities are suffixed by _vM, so

import damask
import numpy as np
import matplotlib.pyplot as plt
res = damask.Result('geom_N1_8x8x8_compressionZ_n1_material.hdf5')
res.add_stress_Cauchy()
res.add_strain()
res.add_equivalent_Mises('sigma')
res.add_equivalent_Mises('epsilon_V^0.0(F)')
sigma = [np.average(s)/1.e6 for s in res.get('sigma_vM').values()]
epsilon=[np.average(e)*100 for e in res.get('epsilon_V^0.0(F)_vM').values()]
plt.plot(epsilon,sigma)
plt.show()

works

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ruanqc
Comment options

@MarDiehl
Comment options

@ruanqc
Comment options

Answer selected by ruanqc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants