Hello Sir
I am using abaqus2matlab toolbox for getting results for a restart step. I have created a new .inp file for the restart step. When i am using that .inp file in matlab, the following error shows. Should i add this in the main .inp file or is there any other method?
Error:
"Abaqus Error: No restart file was specified.
The Abaqus analysis requires a restart file and cannot be executed.
Abaqus/Analysis exited with error(s)."
I have even transfered the .res file in the same folder but the same problem persists.
Hello Sir
Thank you so much for the help. It works now.
Sincerely
Tusar
Hello Tusar,
Please place the input file as well as the various Matlab functions to be used in the Abaqus working directory. Usually it is something like C:\Abaqus Temp or C:\Temp. It depends on what directory you specified as the temporary folder during Abaqus installation. After moving the files, try to run the Basic_Template.m and let me know what happens.
If this does not work, then try to insert in the Basic_Template.m script the following lines:
S = mfilename('fullpath');
f = filesep;
ind=strfind(S,f);
S1=S(1:ind(end)-1);
cd(S1)
I hope these will help.
Best,
George
Hello Sir
I am extremely sorry for the late reply. I worked on the steps you mentioned and I found that the extension is actually in .inp format only. I tried running again but the same error shows that"input should have a value". So I tried again by not making a different folder for the input file as shown in the code below and ran it in the same folder.
However the same error shows. Could you please suggest me what should i do in this case?
Thanks
The extensions of your files are not shown. Please go to Organize, Folder options, View tab, and untick the selection "Hide extensions for known file types". After this, the extensions of all your files in the Matlab_U attempt1 folder will be shown. You will eventually find out that your input file is named AEK3.inp.inp and not AEK3.inp. This is the reason that Abaqus cannot recognize this as an input file and therefore the analysis cannot proceed.
Regards,
George
Hello Sir
I tried doing it in a single .inp file by adding the step-2 command in the original .inp file.
Step-2 is the restart file that i had termed as "Force_increase". The single input file works.
However if i try with restart file the above error persists. Could you please help me identify the error?
Thanks
Hello Sir
I have kept the files in the same folder but the same error persists. If the files are in the same folder, how do i determine that it is the working directory of Abaqus?
Thanks
For some reason Abaqus cannot find the input file of the restart analysis. This is why it asks for the value of the input parameter. Please ensure that the files Force_increase.inp and AEK3.res are in the same folder, and that this folder is the working directory of Abaqus.
George
Hello Sir
Thank you so much for the prompt reply. I followed your instructions and added the matlab command. The following code is used:
"disp('Simulation Started')
Inp_file='Force_increase';
Res_file='AEK3';
%make a folder to run the actual .inp file
[s, mess, messid]=mkdir(Inp_file);
copyfile([Inp_file '.inp'],[pwd '\' Inp_file '\'])
oldFolder = cd(Inp_file);
system(['abaqus job=' Inp_file 'oldjob=' Res_file]);"
Here "Force_increase" is the input file of the restart analysis that i want to do and "AEK3" is the initial analysis. Both "AEK3.res" and "AEK3.inp" are oldjob files. However The following error shows:
"Simulation Started
Abaqus Error: Command line option "input" must have a value.
Abaqus/Analysis exited with error(s).
Simulation Finished"
I have even tried by adding initial job's .stt, .prt, .odb in the same folder as that of the previous files.
Could you please help in this regard?
Hello Tusar,
If you are running a restart analysis then you have to specify the parameter oldjob in Abaqus/Command as follows:
abaqus job=2 oldjob=1
or in Matlab as follows:
abaqus job=2 oldjob=1
where the file 2.inp is the input file of the restart analysis that you want to do, the file 1.res contains the results of the initial analysis and is needed for the restart analysis to run successfully and the file 1.inp is the input file of the initial analysis.
Best regards,
George