NODAL FLUX CAUSED BY HEAT output from Abaqus to Matlab (Record key 10)
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\10.inp'],[S(1:a(end)-1),'\10.inp'],'f')
Run the input file 10.inp with Abaqus
!abaqus job=10
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('10.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('10.fil');
Obtain the desired output data
out = Rec10(Rec)
out = 1.000000000000000 -0.048500001430511 17.000000000000000 -0.029119996353984 3.000000000000000 0.058485034853220 9.000000000000000 -0.127960473299026 10.000000000000000 -0.108089022338390 2.000000000000000 0.255184441804886 3.000000000000000 -0.000000000000000 19.000000000000000 -0.054902918636799 5.000000000000000 0.097150400280952 11.000000000000000 -0.267037570476532 12.000000000000000 -0.081905759871006 4.000000000000000 0.306695848703384 5.000000000000000 0.000000000000000 21.000000000000000 -0.063215240836143 7.000000000000000 0.105126842856407 13.000000000000000 -0.362418949604034 14.000000000000000 -0.050000000745058 6.000000000000000 0.370507359504700 15.000000000000000 0.039445508271456 31.000000000000000 0.005924356169999 17.000000000000000 -0.002872860524803 23.000000000000000 0.208759233355522 24.000000000000000 -0.247853830456734 16.000000000000000 -0.003402418224141 17.000000000000000 0.031992856413126 33.000000000000000 -0.032483801245689 19.000000000000000 0.038614153862000 25.000000000000000 -0.026081252843142 26.000000000000000 -0.148404344916344 18.000000000000000 0.136362388730049 19.000000000000000 0.016288762912154 35.000000000000000 -0.036326427012682 21.000000000000000 0.063215240836143 27.000000000000000 -0.196038544178009 28.000000000000000 -0.050000000745058 20.000000000000000 0.202860966324806 29.000000000000000 -0.047317001968622 45.000000000000000 -0.014062790200114 31.000000000000000 -0.089953348040581 37.000000000000000 -0.039081498980522 38.000000000000000 -0.292690008878708 30.000000000000000 0.483104646205902 31.000000000000000 0.084028989076614 47.000000000000000 -0.017204625532031 33.000000000000000 0.004040092229843 39.000000000000000 0.043716173619032 40.000000000000000 -0.179145336151123 32.000000000000000 0.064564712345600 33.000000000000000 0.028443709015846 49.000000000000000 -0.017395514994860 35.000000000000000 0.036326427012682 41.000000000000000 -0.092680327594280 42.000000000000000 -0.050000000745058 34.000000000000000 0.095305703580379 43.000000000000000 0.097071006894112 59.000000000000000 -0.000000000000000 45.000000000000000 -0.049560658633709 51.000000000000000 0.274339854717255 52.000000000000000 -0.316297590732575 44.000000000000000 -0.005552621092647 45.000000000000000 0.063623450696468 61.000000000000000 0.000000000000000 47.000000000000000 -0.015272597782314 53.000000000000000 0.114266656339169 54.000000000000000 -0.180672451853752 46.000000000000000 0.018054945394397 47.000000000000000 0.032477222383022 63.000000000000000 -0.000000000000000 49.000000000000000 0.017395514994860 55.000000000000000 -0.019454803317785 56.000000000000000 -0.050000000745058 48.000000000000000 0.019582062959671 1.000000000000000 -0.000000000000000 15.000000000000000 0.039445508271456 17.000000000000000 -0.031992856413126 8.000000000000000 0.061184454709291 16.000000000000000 -0.096597582101822 9.000000000000000 0.027960473671556 3.000000000000000 0.074651703238487 17.000000000000000 0.002872860524803 19.000000000000000 -0.016288762912154 10.000000000000000 0.008089023642242 18.000000000000000 -0.236362382769585 11.000000000000000 0.167037561535835 5.000000000000000 0.097150400280952 19.000000000000000 -0.038614153862000 21.000000000000000 -0.000000000000000 12.000000000000000 -0.018094239756465 20.000000000000000 -0.302860975265503 13.000000000000000 0.262418955564499 15.000000000000000 0.000000000000000 29.000000000000000 -0.047317001968622 31.000000000000000 -0.141951009631157 22.000000000000000 0.154379621148109 30.000000000000000 0.343647629022598 23.000000000000000 -0.308759242296219 17.000000000000000 0.029119996353984 31.000000000000000 0.089953348040581 33.000000000000000 -0.028443709015846 24.000000000000000 0.147853821516037 32.000000000000000 -0.164564713835716 25.000000000000000 -0.073918744921684 19.000000000000000 0.054902918636799 33.000000000000000 -0.004040092229843 35.000000000000000 0.000000000000000 26.000000000000000 0.048404339700937 34.000000000000000 -0.195305705070496 27.000000000000000 0.096038542687893 29.000000000000000 0.085959158837795 43.000000000000000 0.183030173182487 45.000000000000000 -0.063623450696468 36.000000000000000 -0.050000000745058 44.000000000000000 -0.094447381794453 37.000000000000000 -0.060918502509594 31.000000000000000 0.051997661590576 45.000000000000000 0.049560658633709 47.000000000000000 -0.032477222383022 38.000000000000000 0.192690014839172 46.000000000000000 -0.118054941296578 39.000000000000000 -0.143716171383858 33.000000000000000 0.032483801245689 47.000000000000000 0.015272597782314 49.000000000000000 -0.000000000000000 40.000000000000000 0.079145334661007 48.000000000000000 -0.119582064449787 41.000000000000000 -0.007319673895836 43.000000000000000 0.000000000000000 57.000000000000000 0.108182854950428 59.000000000000000 -0.066574394702911 50.000000000000000 0.382731407880783 58.000000000000000 -0.050000000745058 51.000000000000000 -0.374339848756790 45.000000000000000 0.014062790200114 59.000000000000000 0.066574394702911 61.000000000000000 -0.032668113708496 52.000000000000000 0.216297581791878 60.000000000000000 -0.050000000745058 53.000000000000000 -0.214266657829285 47.000000000000000 0.017204625532031 61.000000000000000 0.032668113708496 63.000000000000000 -0.000000000000000 54.000000000000000 0.080672457814217 62.000000000000000 -0.050000000745058 55.000000000000000 -0.080545194447041
Verify output
Check number of attributes
nAttr=size(out,2)
nAttr = 2
Check the number of entries
nEntr=size(out,1)
nEntr = 144
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/