Please, how can I output global displacement (U) in Comsol? I want to calculate the compliance of my model. (Please, see the attached Comsol code).
compliance = U transpose x Global stiffness matrix x U
I have used these lines of code to obtain the global stiffness matrix (Kf).
MA = mphmatrix(model, 'sol1', 'out', {'K','E'})
K = MA.K; % stiffness vector
Kf = full(K); % global stiffness matrix
Thank you.