CREEP STRAIN (INCLUDING SWELLING) output from Abaqus to Matlab (Record key 23)

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

Run the input file 23.inp with Abaqus

!abaqus job=23

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

Obtain the desired output data

out = Rec23(Rec)
out =

  Columns 1 through 3

  -0.001678517716520  -0.001678517716520  -0.001465798211819
  -0.006555438504111  -0.006555438504111  -0.004982935942236
  -0.014885418707394  -0.014885418707394  -0.009802141809084
  -0.027361096328980  -0.027361096328980  -0.015537649983191
  -0.045302897953427  -0.045302897953427  -0.022156155914642

  Columns 4 through 6

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

  Columns 7 through 9

   0.000141813003134                   0   0.002277924178884
   0.001048335041250                   0   0.008593687550243
   0.003388851265540                   0   0.018960192759819
   0.007882297563859                   0   0.034045829422976
   0.015431161359191                   0   0.055351003428852

Verify output

Check number of attributes

nAttr=size(out,2)
nAttr =

     9

Check the number of entries

nEntr=size(out,1)
nEntr =

     5

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/