Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
tar abu
tar abu am 15 Jun. 2020
Beantwortet: darova am 17 Jun. 2020
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 Kommentare
tar abu
tar abu am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

darova
darova am 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

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by