MECHANICAL STRAIN RATE output from Abaqus to Matlab (Record key 91)
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\91.inp'],[S(1:a(end)-1),'\91.inp'],'f')
Run the input file 91.inp with Abaqus
!abaqus job=91
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('91.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('91.fil');
Obtain the desired output data
out = Rec91(Rec)
out = Columns 1 through 3 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.059999998484273 -0.059999998484273 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.061875805840828 -0.061875805840828 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.077009623055346 -0.077009623055346 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.089041364844888 -0.089041364844888 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.093245515017770 -0.093245515017770 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094408547738567 -0.094408547738567 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.094715745944995 -0.094715745944995 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.095322466222569 -0.095322466222569 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.098655968031380 -0.098655968031380 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099623277492356 -0.099623277492356 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099895609309897 -0.099895609309897 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099971148301847 -0.099971148301847 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099992037576158 -0.099992037576158 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099997800134588 -0.099997800134588 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999393569306 -0.099999393569306 0.199999994947575 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 -0.099999830126763 -0.099999830126763 0.199999994947577 Columns 4 through 6 0.000000000000000 0.000000000000000 0 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0 0 0 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 0 0.000000000000000 0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 0.000000000000000 0 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0 0.000000000000000 0 0 0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 0 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0 0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 -0.000000000000000 0 -0.000000000000000 0 -0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0 0 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0.000000000000000 0.000000000000000 -0.000000000000000 0 -0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000 0.000000000000000
Verify output
Check number of attributes
nAttr=size(out,2)
nAttr = 6
Check the number of entries
nEntr=size(out,1)
nEntr = 160
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/