You are on page 1of 1

function [ historical_data] = historical_xy( job_name,initial_load )

%UNTITLED5 Summary of this function goes here


% Detailed explanation goes here
%maybe later to prompt for input
%job_name=input(Insert Job Name)
%initial_load=input(Insert Initial Load for the Case of the load
%factor-Riks arc length method)
status=dos('abaqus python hist.py');
if status==0
disp 'Successfull Opening of the file'
else
disp 'Something went wrong with the opening of the file maybe filename'
end
framecountfile=fopen(strcat(job_name,'_FRAMES.dat'));
framecount=fscanf(framecountfile,'%d');

disp framecount
fileID=fopen(strcat(job_name,'.dat'));
size_Data=[2 framecount];
historical_data=fscanf(fileID,'%f %f\n',size_Data);
historical_data=historical_data';
plot(historical_data(:,2),historical_data(:,1).*initial_load,'x--')

%oi times pou pairnw einai lahtos kai tha prepei na xanadw pws
%orizetai o load proportionality factor.

end

You might also like