フィルターのクリア

how to find thermal analysis and heating in a 3D structure

2 ビュー (過去 30 日間)
tar abu
tar abu 2020 年 6 月 15 日
回答済み: darova 2020 年 6 月 17 日
hello,
i have this image and i need to change it to a STL file, after change it i need to find the thermal analysis for this structre.
the problem is i dont know how to change files from jpg to stl.
and i tried started written the code for another image but the code isn't working
so can you help me
thanks
  4 件のコメント
tar abu
tar abu 2020 年 6 月 17 日
hey darova, if you have any model in stl file can u put in the comment below please
the problem is i don't know how to creat my own model so i need a model in stl format to write a code with.
KSSV
KSSV 2020 年 6 月 17 日
To create stl file, first you have to mesh it. For meshing you can use pde tollbox. Have a look on it.
Or generate the mesh in external meshing softwares and import it to MATLAB.

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

回答 (1 件)

darova
darova 2020 年 6 月 17 日
  • Create surface
  • Convert it to patch using surf2patch
example
clc,clear
% main model
[x,y] = pol2cart(deg2rad(-90:10:90),1); % half arc
x = [x+1 -x-1 x(1)+1];
y = [y flip(y) y(1)];
x1 = [x*0; x; 2*x; x*0]';
y1 = [y*0; y; 2*y; x*0]';
z1 = [x*0+1; x*0+1; x*0; x*0]';
% semisphere
% [x1,y1,z1] = sphere(8);
% z1(z1<0) = 0;
h = surf(x1,y1,z1);
ff = surf2patch(h,'triangle'); % convert surface to patch
stlwrite('test.stl',ff) % write model as stl format
axis equal vis3d

カテゴリ

Help Center および File ExchangeSTL (STereoLithography) についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by