After processing, I obtained the kam data of the node in incremental step 20 and saved it in a txt file. In damask3.0, how to map this data to vtk for visualization?
import damask
import numpy as np
import pandas as pd
geom = '125_tensionX_inc20.vti'
v = damask.VTK.load(geom)
data = pd.read_csv('kam.txt',sep="\t",header=None)
v = v.set(f'kam',data)
v.save('125_tensionX_inc20neww.vti')
I have tried to use this command, but I always report an error. What should I do?