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 CenterFile Exchange에서 STL (STereoLithography)에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by