THERMAL STRAIN output from Abaqus to Matlab (Record key 88)

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\88.inp'],[S(1:a(end)-1),'\88.inp'],'f')

Run the input file 88.inp with Abaqus

!abaqus job=88

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('88.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('88.fil');

Obtain the desired output data

out = Rec88(Rec)
out =

  Columns 1 through 3

   4.119994060286766   4.119994060286766   4.119994060286766
   4.119994060286766   4.119994060286766   4.119994060286766
   4.119994060286766   4.119994060286766   4.119994060286766
   4.119994060286766   4.119994060286766   4.119994060286766
  -0.000000000000002  -0.000000000000002  -0.000000000000002
  -0.000000000000002  -0.000000000000002  -0.000000000000002
  -0.000000000000002  -0.000000000000002  -0.000000000000002
  -0.000000000000002  -0.000000000000002  -0.000000000000002
   0.001584853620938   0.001584853620938   0.001584853620938
   0.001584853620938   0.001584853620938   0.001584853620938
   0.001584853620939   0.001584853620939   0.001584853620939
   0.001584853620939   0.001584853620939   0.001584853620939
   0.005914754235903   0.005914754235903   0.005914754235903
   0.005914754235903   0.005914754235903   0.005914754235903
   0.005914754235904   0.005914754235904   0.005914754235904
   0.005914754235904   0.005914754235904   0.005914754235904
   0.004999738571228   0.004999738571228   0.004999738571228
   0.004999738571228   0.004999738571228   0.004999738571228
   0.002499869285614   0.002499869285614   0.002499869285614
   0.002499869285614   0.002499869285614   0.002499869285614
   0.004999738571228   0.004999738571228   0.004999738571228
   0.004999738571228   0.004999738571228   0.004999738571228
   0.002499869285614   0.002499869285614   0.002499869285614
   0.002499869285614   0.002499869285614   0.002499869285614
   0.002499869285614   0.002499869285614   0.002499869285614
   0.002499869285614   0.002499869285614   0.002499869285614
   0.004999738571228   0.004999738571228   0.004999738571228
   0.004999738571228   0.004999738571228   0.004999738571228
   0.002499869285614   0.002499869285614   0.002499869285614
   0.002499869285614   0.002499869285614   0.002499869285614
   0.004999738571228   0.004999738571228   0.004999738571228
   0.004999738571228   0.004999738571228   0.004999738571228
   0.001341306417545   0.001341306417545   0.001341306417545
   0.001341306417545   0.001341306417545   0.001341306417545
   0.001341305734988   0.001341305734988   0.001341305734988
   0.001341305734988   0.001341305734988   0.001341305734988
   0.005005832259677   0.005005832259677   0.005005832259677
   0.005005832259677   0.005005832259677   0.005005832259677
   0.005005832259677   0.005005832259677   0.005005832259677
   0.005005832259677   0.005005832259677   0.005005832259677
   0.004231415591213   0.004231415591213   0.004231415591213
   0.004231415591213   0.004231415591213   0.004231415591213
   0.002115707791890   0.002115707791890   0.002115707791890
   0.002115707791890   0.002115707791890   0.002115707791890
   0.004231415907615   0.004231415907615   0.004231415907615
   0.004231415907615   0.004231415907615   0.004231415907615
   0.002115709015223   0.002115709015223   0.002115709015223
   0.002115709015223   0.002115709015223   0.002115709015223
   0.002115706892392   0.002115706892392   0.002115706892392
   0.002115706892392   0.002115706892392   0.002115706892392
   0.004231415907615   0.004231415907615   0.004231415907615
   0.004231415907615   0.004231415907615   0.004231415907615
   0.002115709015223   0.002115709015223   0.002115709015223
   0.002115709015223   0.002115709015223   0.002115709015223
   0.004231415907615   0.004231415907615   0.004231415907615
   0.004231415907615   0.004231415907615   0.004231415907615
   4.393150617106397   4.393150617106397   4.393150617106397
   4.393150617106397   4.393150617106397   4.393150617106397
   4.393150617106397   4.393150617106397   4.393150617106397
   4.393150617106397   4.393150617106397   4.393150617106397
   1.177141160081932   1.177141160081932   1.177141160081932
   1.177141160081932   1.177141160081932   1.177141160081932
   1.177141160081933   1.177141160081933   1.177141160081933
   1.177141160081933   1.177141160081933   1.177141160081933
   3.713527851458884   3.713527851458884   3.713527851458884
   3.713527851458884   3.713527851458884   3.713527851458884
   1.856763925729442   1.856763925729442   1.856763925729442
   1.856763925729442   1.856763925729442   1.856763925729442
   3.713527851458867   3.713527851458867   3.713527851458867
   3.713527851458867   3.713527851458867   3.713527851458867
   1.856763925729463   1.856763925729463   1.856763925729463
   1.856763925729463   1.856763925729463   1.856763925729463
   1.856763925729442   1.856763925729442   1.856763925729442
   1.856763925729442   1.856763925729442   1.856763925729442
   3.713527851458886   3.713527851458886   3.713527851458886
   3.713527851458886   3.713527851458886   3.713527851458886
   1.856763925729461   1.856763925729461   1.856763925729461
   1.856763925729461   1.856763925729461   1.856763925729461
   3.713527851458867   3.713527851458867   3.713527851458867
   3.713527851458867   3.713527851458867   3.713527851458867

  Columns 4 through 6

                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0
                   0                   0                   0

Verify output

Check number of attributes

nAttr=size(out,2)
nAttr =

     6

Check the number of entries

nEntr=size(out,1)
nEntr =

    80

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/