Hi,
First of all thank you for sharing this comprehensive tool.
I am considering using A2M to only import a finite element model from Abaqus (.inp file) into my own FE code in matlab. Would that be possible?
I would like to use Abaqus for generating/postprocessing the geometry, material distribution, material coordinate systems, mesh, and boundary conditions. Then use A2M to convert/import it into matlab and to use the A2M plotting functions if this is possible.
Best regards,
Brian
Thank you very much for your interest and nice comments about Abaqus2Matlab!
You can use the function nSetExtract.m that can be downloaded from the following link:
https://www.dropbox.com/s/wek2czmo6rde10w/nSetExtract.m?dl=0
Do not hesitate to ask more questions if you have.
If using Abaqus2Matlab for research or industrial purposes, please cite the Abaqus2Matlab paper: https://doi.org/10.1016/j.advengsoft.2017.01.006
Best regards and apologies for the delayed answer.
It works like a charm! I'm really looking forward to v.3.0!! If it's not too much to ask, i could also benefit a lot from the nodeSetExtract.m (assuming that's the name).
Either way, amazing work and so very grateful!
You can use the function elSetExtract.m for this purpose, which, like the functions tempAbaqusInpFile.m and readDataLines.m above, is part of the library of Abaqus2Matlab v.3.0 and can be downloaded from the following link, until Abaqus2Matlab v.3.0 is officially released:
https://www.dropbox.com/s/9gtykf2byb6b79n/elSetExtract.m?dl=0
Please let me know if you manage to do your task.
Best regards!
Dear George,
How about if we want the elements of each set of elements? Is there an easy way to do so? Kind regards
Dear George,
Thank you! it works exactly as intended :-)
Dear Brian,
Thank you for your consideration.
A2M can be used for importing:
(1) the modeling information and
(2) the FEA results
of an Abaqus model into Matlab and vice versa. Importing the modeling information is not yet supported by Abaqus2Matlab v.2.0; this capability will be included in Abaqus2Matlab v.3.0 which is expected to be released this year.
However, you can use the following code template in order to import the various modeling information from the Abaqus input file abaqusInputFile.inp to Matlab:
% Name of the input file fname = 'abaqusInputFile.inp'; % Compress and clean Abaqus input file [fname2,tempFileOpts] = tempAbaqusInpFile(fname); % Read nodes and store in LN [~,DL] = readDataLines(fname2,'*node'); LN=DL{1}; % Read elements and store in LE [~,DL] = readDataLines(fname2,'*element'); LE=DL{1};
The functions tempAbaqusInpFile.m and readDataLines.m are part of the library of Abaqus2Matlab v.3.0 and can be downloaded from the following links, until Abaqus2Matlab v.3.0 is officially released:
tempAbaqusInpFile.m
readDataLines.m
Please let me know if you manage to import the modeling information from your Abaqus model into your Matlab FE code.
Best regards!