Hi everybody,
It's been a while I'm struggling with a for loop involving readcae command on compose.
I've got a .op2 result file and I need to get element stresses for a set of elements and for different loadcases. Specifically, I have 4 elements and 2 loadcase.
Following the scripts I'm using (X is the op2 filename):
Elements = {'E1','E2','E3','E4'};
Subcase_List=getsubcaselist(X)
Subcases=numel(Subcase_List)
for i=1:Subcases
E_=readcae(X,Subcase_List{i},'Stress (2D)',Elements,{'XX (Z1)','YY (Z1)','XY (Z1)','vonMises (Z1)','XX (Z2)','YY (Z2)','XY (Z2)','vonMises (Z2)'},[],1)
end
At the end of each iteration I get a submatrix with all the requested components ('XX (Z1)','YY (Z1)', etcc…) in columns and elements in rows for each subcase.
I need to store this submatrix for each iteration, hence for each subcases.
Is there a way to get it?
Thanks in advance