NOMINAL STRAIN output from Abaqus to Matlab (Record key 90)

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

Run the input file 90.inp with Abaqus

!abaqus job=90

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

Obtain the desired output data

out = Rec90(Rec)
out =

  Columns 1 through 3

  -0.001184551274751  -0.001184551274742   0.004080031564903
  -0.001184551274751  -0.001184551274742   0.004080031564903
  -0.001184551274751  -0.001184551274742   0.004080031564903
  -0.001184551274751  -0.001184551274742   0.004080031564903
  -0.000802137362025  -0.000802137362022   0.003311613463860
  -0.000802137362025  -0.000802137362022   0.003311613463860
  -0.000802137362025  -0.000802137362022   0.003311613463860
  -0.000802137362025  -0.000802137362022   0.003311613463860
  -0.000183881157617  -0.000183881157617   0.000603499029220
  -0.000183881157617  -0.000183881157617   0.000603499029220
  -0.000183881157617  -0.000183881157617   0.000603499029220
  -0.000183881157617  -0.000183881157617   0.000603499029220
  -0.000124526296471  -0.000124526296466   0.000484706415811
  -0.000124526296471  -0.000124526296466   0.000484706415811
  -0.000124526296471  -0.000124526296466   0.000484706415811
  -0.000124526296471  -0.000124526296466   0.000484706415811
  -0.000947285049473  -0.000947285049469   0.003306644410820
  -0.000947285049473  -0.000947285049469   0.003306644410820
  -0.000947285049473  -0.000947285049469   0.003306644410820
  -0.000947285049473  -0.000947285049469   0.003306644410820
  -0.000641478971084  -0.000641478971079   0.002692709845660
  -0.000641478971084  -0.000641478971079   0.002692709845660
  -0.000641478971084  -0.000641478971079   0.002692709845660
  -0.000641478971084  -0.000641478971079   0.002692709845660
  -0.000394634601336  -0.000394634601332   0.001278605764580
  -0.000394634601336  -0.000394634601332   0.001278605764580
  -0.000394634601336  -0.000394634601332   0.001278605764580
  -0.000394634601336  -0.000394634601332   0.001278605764580
  -0.000267247028637  -0.000267247028637   0.001023452929323
  -0.000267247028637  -0.000267247028637   0.001023452929323
  -0.000267247028637  -0.000267247028637   0.001023452929323
  -0.000267247028637  -0.000267247028637   0.001023452929323
  -0.000731615664719  -0.000731615664710   0.002640000455311
  -0.000731615664719  -0.000731615664710   0.002640000455311
  -0.000731615664719  -0.000731615664710   0.002640000455311
  -0.000731615664719  -0.000731615664710   0.002640000455311
  -0.000495439895664  -0.000495439895662   0.002166223207316
  -0.000495439895664  -0.000495439895662   0.002166223207316
  -0.000495439895664  -0.000495439895662   0.002166223207316
  -0.000495439895664  -0.000495439895662   0.002166223207316

  Columns 4 through 6

   0.000000246828981  -0.000575349160565  -0.000575349160564
  -0.000000246828981   0.000575349160565  -0.000575349160564
  -0.000000246828981  -0.000575349160565   0.000575349160564
   0.000000246828981   0.000575349160565   0.000575349160564
   0.000000246451692  -0.000574579614813  -0.000574579614813
  -0.000000246451692   0.000574579614813  -0.000574579614813
  -0.000000246451692  -0.000574579614813   0.000574579614813
   0.000000246451692   0.000574579614813   0.000574579614813
   0.000000005945301  -0.000089072625929  -0.000089072625929
  -0.000000005945301   0.000089072625929  -0.000089072625929
  -0.000000005945301  -0.000089072625929   0.000089072625929
   0.000000005945301   0.000089072625929   0.000089072625929
   0.000000005943885  -0.000089054125191  -0.000089054125190
  -0.000000005943885   0.000089054125191  -0.000089054125190
  -0.000000005943885  -0.000089054125191   0.000089054125190
   0.000000005943885   0.000089054125191   0.000089054125190
   0.000000157832912  -0.000459824516623  -0.000459824516623
  -0.000000157832912   0.000459824516623  -0.000459824516623
  -0.000000157832912  -0.000459824516623   0.000459824516623
   0.000000157832912   0.000459824516623   0.000459824516623
   0.000000157639968  -0.000459332617250  -0.000459332617249
  -0.000000157639968   0.000459332617250  -0.000459332617249
  -0.000000157639968  -0.000459332617250   0.000459332617249
   0.000000157639968   0.000459332617250   0.000459332617249
   0.000000027386571  -0.000191265522137  -0.000191265522137
  -0.000000027386571   0.000191265522137  -0.000191265522137
  -0.000000027386571  -0.000191265522137   0.000191265522137
   0.000000027386571   0.000191265522137   0.000191265522137
   0.000000027372622  -0.000191180260537  -0.000191180260537
  -0.000000027372625   0.000191180260537  -0.000191180260537
  -0.000000027372622  -0.000191180260537   0.000191180260537
   0.000000027372625   0.000191180260537   0.000191180260537
   0.000000094134616  -0.000354944250472  -0.000354944250471
  -0.000000094134616   0.000354944250472  -0.000354944250471
  -0.000000094134616  -0.000354944250472   0.000354944250471
   0.000000094134616   0.000354944250472   0.000354944250471
   0.000000094045740  -0.000354650979541  -0.000354650979541
  -0.000000094045740   0.000354650979541  -0.000354650979541
  -0.000000094045740  -0.000354650979541   0.000354650979541
   0.000000094045740   0.000354650979541   0.000354650979541

Verify output

Check number of attributes

nAttr=size(out,2)
nAttr =

     6

Check the number of entries

nEntr=size(out,1)
nEntr =

    40

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/