SECTION STRAIN AND CURVATURE output from Abaqus to Matlab (Record key 29)
In this example a simple Abaqus model is analysed and results are retrieved by postprocessing the results *.fil file generated by Abaqus using Matlab. For more information please see the Documentation of Abaqus2Matlab toolbox.
Contents
Run Abaqus model
Change current directory to Abaqus working directory
a = strfind(S,'\');
cd(S(1:a(end)-1))
Copy the input file to be run by Abaqus into the Abaqus working directory
copyfile([S,'\AbaqusInputFiles\29.inp'],[S(1:a(end)-1),'\29.inp'],'f')
Run the input file 29.inp with Abaqus
!abaqus job=29
Pause Matlab execution to give Abaqus enough time to create the lck file
pause(10)
If the lck file exists then halt Matlab execution
while exist('29.lck','file')==2 pause(0.1) end
Postprocess Abaqus results file with Matlab
Assign all lines of the fil file in an one-row string (after Abaqus analysis terminates)
Rec = Fil2str('29.fil');
Obtain the desired output data
out = Rec29(Rec)
out = 1.0e-03 * 0.000012694722063 0.000086074493311 -0.000000114895408 -0.000025384151975 -0.000040570554916 -0.000000552807102 -0.000000008328333 -0.131885171867907 -0.000000324733953 -0.000021650775544 -0.092998838226777 0.000000242440629 0.132190703837461 0.000177288669079 0.000000504673313 0.225473796190126 0.000125156077502 0.000001299921044 0.066112226358448 -0.065901564084925 0.000000275614599 -0.000010531242853 0.000225217874572 -0.000000586479502 0.112739829083668 -0.112540554255247 0.000000528289335 0.066068903466366 0.066172069637105 -0.000000747751572
Verify output
Check number of attributes
nAttr=size(out,2)
nAttr = 3
Check the number of entries
nEntr=size(out,1)
nEntr = 10
Check class of output
cOut=class(out)
cOut = double
____________________________________________________ Copyright (c) 2016 by George Papazafeiropoulos Captain, Infrastructure Engineer, Hellenic Air Force Civil Engineer, M.Sc., Ph.D. candidate, NTUA Email: gpapazafeiropoulos@yahoo.gr Website: http://users.ntua.gr/gpapazaf/