フィルターのクリア

How can I import a mesh / nodes from Matlab into Ansys?

8 ビュー (過去 30 日間)
Florian
Florian 2023 年 12 月 8 日
コメント済み: Florian 2023 年 12 月 8 日
Hi there
May you have any advice how I can create an input file which can be used by Ansys for further analysis?
My aim is to set-up a script to parametrise my model and then automatically alter all the parameters and execute the analysis in Ansys.
My initial draft from last year is generating an ABAQUS input file, but I couldn´t find any information how I can import into Ansys.
Example of my draft (Matlab + main file) and the import of the rolled-up structure in ABAQUS attached:
  2 件のコメント
Dyuman Joshi
Dyuman Joshi 2023 年 12 月 8 日
Please copy and paste the code here, as the image is not clear.
Florian
Florian 2023 年 12 月 8 日
Code in Matlab:
file=fopen('nodes.inp','w');
fprintf(file,'%12.f, %12.8f, %12.8f, %12.8f\n',nodes');
fclose(file);
file=fopen('elements.inp','w');
fprintf(file,'%12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f\n',elements');
fclose(file);
file=fopen('sets.inp','w');
for i=1:1:length(sets)
fprintf(file,['*Elset, elset=set',num2str(i),'\n'],elements');
fprintf(file,'%12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f, %12.f\n',sets{1,i}');
fprintf(file,'\n');
end
fclose(file);
Code in main:
*Node
*Include, input=nodes.inp
*Element, type=C3D8
*Include, input=elements.inp
*Include, input=sets.inp

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAutomotive についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by