Running Abaqus from Matlab and do the evaluation
25 views (last 30 days)
Show older comments
Patrick Benz
on 26 Feb 2021
Answered: Patrick Benz
on 26 Feb 2021
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 Comments
Mario Malic
on 26 Feb 2021
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)?
Accepted Answer
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!