TEMPERATURE output from Abaqus to Matlab (Record key 201)

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

Run the input file 201.inp with Abaqus

!abaqus job=201

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

Obtain the desired output data

out = Rec201(Rec)
out =

   1.0e+08 *

   9.000000010000001   0.000008311111111
   9.000000020000000   0.000008220850480
   9.000000030000001   0.000007950068587
   9.000000040000000   0.000007498765432
   9.000000050000001   0.000006866941015
   9.000000060000000   0.000006054595336
   9.000000070000001   0.000005061728395
   9.000000080000000   0.000003888340192
   9.000000090000000   0.000002534430727
   9.000000099999999   0.000001000000000
   9.000000010000001                   0
   9.000000020000000                   0
   9.000000030000001   0.000000000000000
   9.000000040000000                   0
   9.000000050000001                   0
   9.000000060000000                   0
   9.000000070000001                   0
   9.000000080000000   0.000000000000000
   9.000000090000000   0.000000000000000
   9.000000099999999   0.000000000000000
   9.000000010000001   0.000008311111111
   9.000000020000000   0.000008220850480
   9.000000030000001   0.000007950068587
   9.000000040000000   0.000007498765432
   9.000000050000001   0.000006866941015
   9.000000060000000   0.000006054595336
   9.000000070000001   0.000005061728395
   9.000000080000000   0.000003888340192
   9.000000090000000   0.000002534430727
   9.000000099999999   0.000001000000000

Verify output

Check number of attributes

nAttr=size(out,2)
nAttr =

     2

Check the number of entries

nEntr=size(out,1)
nEntr =

    30

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/