Running Abaqus from Matlab and do the evaluation
조회 수: 40 (최근 30일)
이전 댓글 표시
Good Morning all.I have a problem with the connection between Matlab and Abaqus. I wrote a script for a simulation in Abaqus. This script should be executed in Abaqus and then I want to do the evaluation in Matlab. The other obstacle is that I want to do a parameter study at the same time. In the end, the script is executed 50 times and the input parameters are slightly changed with each pass.
with
jobname=[num2str(job(1)) 'l' num2str(Parameter(1,1)) 'l' num2str(Parameter(1,2))];
cmd_str=['abaqus cae noGUI=' num2str(Skript(1))]; % num2str(Parameter(j,1)) ' ' num2str(Parameter(j,2))]; ' ' num2str(Parameter(j,3)) ' ' num2str(Parameter(j,4)) ' ' num2str(Parameter(j,5)) ' ' num2str(jobname)]
system(cmd_str);
do I manage to start the job and then I get a message in Matlab that the job has been completed.However, the commands in the postprocessing of the script are not executed.
leaf = dgo.LeafFromNodeSets(nodeSets=('UNGEKERBTEPROBE-1.AUSWERTUNG_NODES',))
dg_Auswertung=session.DisplayGroup(leaf=leaf, name='Nodes_Auswertung')
dg1=session.displayGroups['Nodes_Auswertung']
session.viewports['Viewport: 1'].odbDisplay.setValues(visibleDisplayGroups=(dg1,))
session.writeFieldReport(fileName='Auswertung_S11.txt', append=OFF,sortItem='Node Ladel', odb=odbPath,
step=0, frame=1, outputPosition=NODAL,variable=(('S', INTEGRATION_POINT, ((COMPONENT,'S11'), )), ))
If I run the entire script directly in Abaqus, it provides me with a txt file with the node stress S11, S22, S33 in my set 'Nodes_Ausicherung'.This part is apparently not taken into account when I call up the job via Matlab.Is there a way to request this FieldReport of a special node set via Matlab?I have also dealt roughly with Abaqus2Matlab, but there I only find one way to display the tensions on the elements.But since I want to evaluate the direct node tensions, that doesn't really help me.
댓글 수: 4
Mario Malic
2021년 2월 26일
Instead of Auswertung_S11.txt, type the location where you want the file to be C:\user\...\Auswertung_S11.txt
If you have Windows 10, check the quick access folder, maybe the file is saved but in other location that you would not expect it to be.
I am not familiar with ABAQUS scripting, do you call the Python script in the input file Skript(1)?
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!