I'am able to get global stiffness matrix (by commands: file and hbmat). I've read about the way of getting it by superelement. But this is global stiffness matrix. What I need is element stiffness matrix.
for the global stiffness matrix I uses 'jobname.full' file, which contains global stiffness matrix and is written after every solution. Command hbmat extract global stiffness matrix from 'jobname.full' and save custom named file with this matrix in HB format.
Maybe there is similar way to get element stiffness matrix since ANSYS writes 'jobname.emat' file, which contains element stiffness matrices. Problem is that files *.full and *.emat are binary and I don't know command simmilar to hbmat but for elements (if there is any).
The reason I need element stiffness matrix is for calculating potential energy by myself. Ansys uses formula
E(e) = 1/2 * u(e)^T * K(e) * u(e)
(e) represents element