필터 지우기
필터 지우기

Running Abaqus from Matlab

조회 수: 52 (최근 30일)
Olu adroit
Olu adroit 2015년 2월 19일
댓글: Federico De Bianchi 2020년 3월 23일
Hi All, I have a MATLAB script that generates an .inp file that is sent to the Abaqus solver through the command window by using the line of code below:
dos(abaqus job=job.inp) %or
!abaqus job=job
The high level script is a while-loop and because it involves several iterations, Abaqus inputs files with different names are generated at pre-specified intervals (e.g. job1.inp, job2.inp, job3.inp, etc all created in the working folder). The challenge I am having is how to send these input files with different names to the command window. I have observed that the ‘dos’ statement above can only take ONE input value after the ‘=’ . Please your advice on how to solve this problem will be appreciated. Thanks in advance.
  댓글 수: 2
jahanzaib ahmad
jahanzaib ahmad 2019년 4월 6일
please can u share the script .i want to export matlab 3d figure to abaqus .
Federico De Bianchi
Federico De Bianchi 2020년 3월 23일
Hod did you generate an .inp file? I generated this plot and I want to export this structure into Abaqus.
Best regards
Federico

댓글을 달려면 로그인하십시오.

채택된 답변

arich82
arich82 2015년 2월 19일
The following works under Linux. The command system should work to replace either dos or unix.
n = 3;
for k = 1:n
jobname{k} = ['job', num2str(k)];
end
for k = 1:n
cmd_str = ['abaqus job=', jobname{k}, ' input=', jobname{k}, '.inp interactive'];
disp(cmd_str);
system(cmd_str);
end
outputs:
abaqus job=job1 input=job1.inp interactive
abaqus job=job2 input=job2.inp interactive
abaqus job=job3 input=job3.inp interactive
Does this work for you?
  댓글 수: 3
Walter Roberson
Walter Roberson 2015년 6월 9일
PATHAN commented "great!!!"
Aravind Sasikumar
Aravind Sasikumar 2016년 4월 12일
Is it possible to run the abaqus jnl file through matlab instead of the inp file ?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

ELIAS ALI
ELIAS ALI 2016년 3월 24일
Hi all,
I am working on heat transfer MATLAB input file that will be used in Abaqus.However, I am getting error message "abaqus command line option "input" must have a value". Any one any idea?
Thank you in advance
  댓글 수: 1
George Papazafeiropoulos
George Papazafeiropoulos 2017년 5월 21일
The suitable syntax if the name of the job is JOB and the name of the input file is INPUTFILE.inp is:
!abaqus job=JOB input=INPUTFILE
or
system('abaqus job=JOB input=INPUTFILE')
For more information you can refer to the Abaqus2Matlab toolbox.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Energy Production에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by