Skip to content

Material.yaml and Post-Processing of Dislotwin model #6

Answered by sharanroongta
section10010 asked this question in Q&A
Discussion options

You must be logged in to vote

Dear Yuxin,

You probably want to do:

import damask
import numpy as np
import matplotlib.pyplot as plt

path = 'Polycystal_300_20x20x20_tensionX_mater_numerics.hdf5' 
res = damask.Result(path)
res.add_stress_Cauchy()
res.add_strain()
res.add_equivalent_Mises('sigma')
res.add_equivalent_Mises('epsilon_V^0.0(F)')
f_tw = res.get('f_tw')
strain = res.get("epsilon_V^0.0(F)_vM")

strain_vM = [np.average(strain[i]) for i in res.increments]
f_tw_new = [np.average(np.sum(f_tw[i], axis=1)) for i in res.increments]

plt.plot(strain_vM,f_tw_new)

There are two things that could be problematic in the material.yaml file - value of p_s, however within the range of 0 < p_s <= 1, should be chosen carefully …

Replies: 1 comment 3 replies

Comment options

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

@sharanroongta
Comment options

@section10010
Comment options

Answer selected by section10010
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