TOTAL FORCE output from Abaqus to Matlab (Record key 146)

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

Run the input file 146.inp with Abaqus

!abaqus job=146

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

Obtain the desired output data

out = Rec146(Rec)
out =

   1.0e+10 *

   0.000000000100000   0.000000018955575  -0.655745052083149
   0.000000000200000                   0  -0.655745052083149
   0.000000000300000   0.000000037911150                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000000018955575   0.655745052083149
   0.000000000800000                   0   0.655745052083149
   0.000000100100000   1.311490104166297                   0
   0.000000000100000   0.000000026034862  -0.758357475100255
   0.000000000200000                   0  -0.758357475100254
   0.000000000300000   0.000000052069724                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000000026034862   0.758357475100255
   0.000000000800000                   0   0.758357475100254
   0.000000100100000   1.516714950200509                   0
   0.000000000100000   0.000000091469252  -0.908955701181421
   0.000000000200000                   0  -0.908955701181421
   0.000000000300000   0.000000182938504                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000000091469252   0.908955701181421
   0.000000000800000                   0   0.908955701181421
   0.000000100100000   1.817911402362841                   0
   0.000000000100000   0.000000448294527  -1.127676953993781
   0.000000000200000                   0  -1.127676953993781
   0.000000000300000   0.000000896589055                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000000448294528   1.127676953993781
   0.000000000800000                   0   1.127676953993782
   0.000000100100000   2.255353907987562                   0
   0.000000000100000   0.000002163264176  -1.440542031672606
   0.000000000200000                   0  -1.440542031672606
   0.000000000300000   0.000004326528353                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000002163264176   1.440542031672607
   0.000000000800000                   0   1.440542031672607
   0.000000100100000   2.881084063345213                   0
   0.000000000100000   0.000000068938106  -1.518839627864259
   0.000000000200000                   0  -1.518839627864259
   0.000000000300000   0.000000137876212                   0
   0.000000000400000                   0                   0
   0.000000000700000   0.000000068938106   1.518839627864259
   0.000000000800000                   0   1.518839627864259
   0.000000100100000   3.037679255728518                   0

Verify output

Check number of attributes

nAttr=size(out,2)
nAttr =

     3

Check the number of entries

nEntr=size(out,1)
nEntr =

    42

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/