VISCOUS FORCES DUE TO STATIC STABILIZATION output from Abaqus to Matlab (Record key 145)
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\145.inp'],[S(1:a(end)-1),'\145.inp'],'f')
Run the input file 145.inp with Abaqus
!abaqus job=145
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('145.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('145.fil');
Obtain the desired output data
out = Rec145(Rec)
out = 1.000000000000000 -0.000000000000000 0 2.000000000000000 -0.670724475445644 0 3.000000000000000 -0.670724475445644 -0.000000000000000 4.000000000000000 -0.000000000000000 -0.000000000000000 1.000000000000000 0.000000000000000 0 2.000000000000000 -0.582035497070668 0 3.000000000000000 -0.582035497070668 0.000000000000018 4.000000000000000 0.000000000000000 0.000000000000018 1.000000000000000 0 0 2.000000000000000 -0.521193071769065 0 3.000000000000000 -0.521193071769065 -0.000000000000010 4.000000000000000 0 -0.000000000000010 1.000000000000000 0 0 2.000000000000000 -0.466463933092102 0 3.000000000000000 -0.466463933092102 -0.000000000000020 4.000000000000000 0 -0.000000000000020 1.000000000000000 0 0 2.000000000000000 -0.431507230339198 0 3.000000000000000 -0.431507230339198 -0.000000000000007 4.000000000000000 0 -0.000000000000007 1.000000000000000 0 0 2.000000000000000 -0.399070012003646 0 3.000000000000000 -0.399070012003646 0.000000000000026 4.000000000000000 0 0.000000000000026 1.000000000000000 0 0 2.000000000000000 -0.368981416384095 0 3.000000000000000 -0.368981416384095 0.000000000000037 4.000000000000000 0 0.000000000000037 1.000000000000000 0 0 2.000000000000000 -0.348345377137403 0 3.000000000000000 -0.348345377137403 -0.000000000000045 4.000000000000000 0 -0.000000000000045 1.000000000000000 0 0 2.000000000000000 -0.328821598253689 0 3.000000000000000 -0.328821598253689 -0.000000000000019 4.000000000000000 0 -0.000000000000019 1.000000000000000 0 0 2.000000000000000 -0.320070991613232 0 3.000000000000000 -0.320070991613232 0.000000000000082 4.000000000000000 0 0.000000000000082
Verify output
Check number of attributes
nAttr=size(out,2)
nAttr = 3
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/