Add Derived Field Data#
Contributor: Martin Diehl (https://martin-diehl.net)
DAMASK version: 3.0.1
Prerequisites (data): DADF5 file with first Piola-Kirchhoff stress (‘P’) and deformation gradient (‘F’)
[1]:
import damask
[2]:
# adjust to your situation, file needs to exist
result_file = 'add_field_data/20grains16x16x16_tensionX.hdf5'
[3]:
result = damask.Result(result_file)
result.view(increments=0)
[3]:
Created by DAMASK_grid v3.0.0-alpha5
on 2021-10-10 21:22:15+0200
executing "DAMASK_grid -l tensionX.yaml -g 20grains16x16x16.vti"
increment_0 (0.0 s)
phase
Aluminum
mechanical
F / 1: deformation gradient
F_e / 1: elastic deformation gradient
F_p / 1: plastic deformation gradient
L_p / 1/s: plastic velocity gradient
O / q_0 (q_1 q_2 q_3): crystal orientation as quaternion
P / Pa: first Piola-Kirchhoff stress
xi_sl / Pa: resistance against plastic slip
homogenization
SX
mechanical
First Round#
[4]:
result.add_stress_Cauchy()
result.add_strain()
# list data (undeformed configuration)
result.view(increments=0)
[4]:
Created by DAMASK_grid v3.0.0-alpha5
on 2021-10-10 21:22:15+0200
executing "DAMASK_grid -l tensionX.yaml -g 20grains16x16x16.vti"
increment_0 (0.0 s)
phase
Aluminum
mechanical
F / 1: deformation gradient
F_e / 1: elastic deformation gradient
F_p / 1: plastic deformation gradient
L_p / 1/s: plastic velocity gradient
O / q_0 (q_1 q_2 q_3): crystal orientation as quaternion
P / Pa: first Piola-Kirchhoff stress
epsilon_V^0.0(F) / 1: Seth-Hill strain tensor of order 0.0 based on left stretch tensor of F (deformation gradient)
sigma / Pa: Cauchy stress calculated from P (first Piola-Kirchhoff stress) and F (deformation gradient)
xi_sl / Pa: resistance against plastic slip
homogenization
SX
mechanical
Second Round#
[5]:
result.add_equivalent_Mises('sigma')
result.add_equivalent_Mises('epsilon_V^0.0(F)')
# list data (undeformed configuration)
result.view(increments=0)
[5]:
Created by DAMASK_grid v3.0.0-alpha5
on 2021-10-10 21:22:15+0200
executing "DAMASK_grid -l tensionX.yaml -g 20grains16x16x16.vti"
increment_0 (0.0 s)
phase
Aluminum
mechanical
F / 1: deformation gradient
F_e / 1: elastic deformation gradient
F_p / 1: plastic deformation gradient
L_p / 1/s: plastic velocity gradient
O / q_0 (q_1 q_2 q_3): crystal orientation as quaternion
P / Pa: first Piola-Kirchhoff stress
epsilon_V^0.0(F) / 1: Seth-Hill strain tensor of order 0.0 based on left stretch tensor of F (deformation gradient)
epsilon_V^0.0(F)_vM / 1: Mises equivalent strain of epsilon_V^0.0(F) (Seth-Hill strain tensor of order 0.0 based on left stretch tensor of F (deformation gradient))
sigma / Pa: Cauchy stress calculated from P (first Piola-Kirchhoff stress) and F (deformation gradient)
sigma_vM / Pa: Mises equivalent stress of sigma (Cauchy stress calculated from P (first Piola-Kirchhoff stress) and F (deformation gradient))
xi_sl / Pa: resistance against plastic slip
homogenization
SX
mechanical