Clear Filters
Clear Filters

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

2 views (last 30 days)
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 Comments
tar abu
tar abu on 17 Jun 2020
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 on 17 Jun 2020
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.

Sign in to comment.

Answers (1)

darova
darova on 17 Jun 2020
  • 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

Products

Community Treasure Hunt

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

Start Hunting!