LOGARITHMIC STRAIN output from Abaqus to Matlab (Record key 89)
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\89.inp'],[S(1:a(end)-1),'\89.inp'],'f')
Run the input file 89.inp with Abaqus
!abaqus job=89
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('89.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('89.fil');
Obtain the desired output data
out = Rec89(Rec)
out = Columns 1 through 3 -0.001185294741514 -0.001185294741505 0.004071648433160 -0.001185294741514 -0.001185294741505 0.004071648433160 -0.001185294741514 -0.001185294741505 0.004071648433160 -0.001185294741514 -0.001185294741505 0.004071648433160 -0.000802500467246 -0.000802500467243 0.003306059931624 -0.000802500467246 -0.000802500467243 0.003306059931624 -0.000802500467246 -0.000802500467243 0.003306059931624 -0.000802500467246 -0.000802500467243 0.003306059931624 -0.000183899057416 -0.000183899057416 0.000603315014784 -0.000183899057416 -0.000183899057416 0.000603315014784 -0.000183899057416 -0.000183899057416 0.000603315014784 -0.000183899057416 -0.000183899057416 0.000603315014784 -0.000124535041688 -0.000124535041683 0.000484587002058 -0.000124535041688 -0.000124535041683 0.000484587002058 -0.000124535041688 -0.000124535041683 0.000484587002058 -0.000124535041688 -0.000124535041683 0.000484587002058 -0.000947760412547 -0.000947760412543 0.003301136823184 -0.000947760412547 -0.000947760412543 0.003301136823184 -0.000947760412547 -0.000947760412543 0.003301136823184 -0.000947760412547 -0.000947760412543 0.003301136823184 -0.000641711155338 -0.000641711155333 0.002689038417099 -0.000641711155338 -0.000641711155333 0.002689038417099 -0.000641711155338 -0.000641711155333 0.002689038417099 -0.000641711155338 -0.000641711155333 0.002689038417099 -0.000394717061386 -0.000394717061382 0.001277779911872 -0.000394717061386 -0.000394717061382 0.001277779911872 -0.000394717061386 -0.000394717061382 0.001277779911872 -0.000394717061386 -0.000394717061382 0.001277779911872 -0.000267287312737 -0.000267287312737 0.001022920431796 -0.000267287312737 -0.000267287312737 0.001022920431796 -0.000267287312737 -0.000267287312737 0.001022920431796 -0.000267287312737 -0.000267287312737 0.001022920431796 -0.000731899161927 -0.000731899161918 0.002636490374116 -0.000731899161927 -0.000731899161918 0.002636490374116 -0.000731899161927 -0.000731899161918 0.002636490374116 -0.000731899161927 -0.000731899161918 0.002636490374116 -0.000495578376433 -0.000495578376430 0.002163848964594 -0.000495578376433 -0.000495578376430 0.002163848964594 -0.000495578376433 -0.000495578376430 0.002163848964594 -0.000495578376433 -0.000495578376430 0.002163848964594 Columns 4 through 6 0.000000164458984 -0.000574518727898 -0.000574518727897 -0.000000164458984 0.000574518727898 -0.000574518727897 -0.000000164458984 -0.000574518727898 0.000574518727897 0.000000164458984 0.000574518727898 0.000574518727897 0.000000164207744 -0.000573860374766 -0.000573860374766 -0.000000164207744 0.000573860374766 -0.000573860374766 -0.000000164207744 -0.000573860374766 0.000573860374766 0.000000164207744 0.000573860374766 0.000573860374766 0.000000003963222 -0.000089053946200 -0.000089053946200 -0.000000003963222 0.000089053946200 -0.000089053946200 -0.000000003963222 -0.000089053946200 0.000089053946200 0.000000003963222 0.000089053946200 0.000089053946200 0.000000003962277 -0.000089038093054 -0.000089038093053 -0.000000003962277 0.000089038093054 -0.000089038093053 -0.000000003962277 -0.000089038093054 0.000089038093053 0.000000003962277 0.000089038093054 0.000089038093053 0.000000105172489 -0.000459283399128 -0.000459283399128 -0.000000105172489 0.000459283399128 -0.000459283399128 -0.000000105172489 -0.000459283399128 0.000459283399128 0.000000105172489 0.000459283399128 0.000459283399128 0.000000105043986 -0.000458862423536 -0.000458862423535 -0.000000105043986 0.000458862423536 -0.000458862423535 -0.000000105043986 -0.000458862423536 0.000458862423535 0.000000105043986 0.000458862423536 0.000458862423535 0.000000018254737 -0.000191181067302 -0.000191181067302 -0.000000018254737 0.000191181067302 -0.000191181067302 -0.000000018254737 -0.000191181067302 0.000191181067302 0.000000018254737 0.000191181067302 0.000191181067302 0.000000018245441 -0.000191108028403 -0.000191108028403 -0.000000018245445 0.000191108028403 -0.000191108028403 -0.000000018245441 -0.000191108028403 0.000191108028403 0.000000018245445 0.000191108028403 0.000191108028403 0.000000062731818 -0.000354606222599 -0.000354606222598 -0.000000062731818 0.000354606222599 -0.000354606222598 -0.000000062731818 -0.000354606222599 0.000354606222598 0.000000062731818 0.000354606222599 0.000354606222598 0.000000062672616 -0.000354355162305 -0.000354355162305 -0.000000062672616 0.000354355162305 -0.000354355162305 -0.000000062672616 -0.000354355162305 0.000354355162305 0.000000062672616 0.000354355162305 0.000354355162305
Verify output
Check number of attributes
nAttr=size(out,2)
nAttr = 6
Check the number of entries
nEntr=size(out,1)
nEntr = 40
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/