Create an Abaqus material library using MATLAB

11 Ansichten (letzte 30 Tage)
Javier Romarís Villanueva
Beantwortet: MM KK am 3 Aug. 2024
I was wondering if it is possible to create a Material library for Abaqus directly from Matlab or an .inp file containing the material properties of my choice in order to optimize faster. I know it is possible using Python I have been trying with Matlab but I can't find a way. If someone has previous experience would be much appreciated.
So for example I create a Material library in Abaqus called "TestLib" with a material called "AL 2025" with a description ("algo que poner") and I defined the Young modulus ("70000") and the Yield Strength ("346.0"). The file that Abaqus creates is the one I attach, what I want is to create that in MATLAB without having to run Abaqus and complete the boxes manually.
Thanks in advance.
  1 Kommentar
Mario Malic
Mario Malic am 6 Aug. 2022
How is the material data stored in that textual file? Show an example.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mario Malic
Mario Malic am 8 Aug. 2022
Hey, this should work, alter the code as you wish.
clc; clear;
file = "TestLib.lib";
fileContents = strsplit(fileread(file), '\n');
youngMod = num2str(75e3);
fileContents{43} = strrep(fileContents{43}, 'AL 2025', 'New material name');
fileContents{43} = strrep(fileContents{43}, '70000.0', num2str(youngMod));
fileContents{43} = strrep(fileContents{43}, 'Algo que poner', 'New description');
newFile = "new file.txt";
FID = fopen(newFile, "w");
fprintf(FID, '%s\n', fileContents{:});
fclose(FID);
movefile(newFile, "NewLib.lib", 'f'); % change extension

Weitere Antworten (1)

MM KK
MM KK am 3 Aug. 2024
Use MatLib
https://en.banumusagr.com/abaqus-material-library-plugin/

Kategorien

Mehr zu Control System Toolbox finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by