convert mesh to meters, more coefficients

This commit is contained in:
dino.celebic 2026-01-24 00:45:46 +01:00
commit 2c4e8ea79c
8 changed files with 33016 additions and 32624 deletions

View file

@ -2,12 +2,12 @@
clear all
clc
diam_bottom = 50.0;
diam_top = 83.0;
wall_thickness = 3.0;
bottom_thickness = 6.0;
top_level = 105.0;
fluid_level = 66.0;
diam_bottom = 0.05;
diam_top = 0.083;
wall_thickness = 0.003;
bottom_thickness = 0.006;
top_level = 0.105;
fluid_level = 0.066;
floor_level = 0.0;
inner_diam = @(height) diam_bottom - 2*wall_thickness + (diam_top - diam_bottom)/(top_level - bottom_thickness)*(height - bottom_thickness);
@ -34,7 +34,7 @@ g=[2 -diam_bottom/2 diam_bottom/2 floor_level floor_level 1 0; % #vert
]';
[p,e,t] = initmesh(g,'hmax',1.5);
[p,e,t] = initmesh(g,'hmax',0.0015);
pdemesh(p,e,t)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -15,6 +15,14 @@ fname = 'uv.txt';
[xc,ia,v] = ascii_read_meshvector(fname);
h = trisurf(ia, xc(:,1), xc(:,2), v);
%h = trisurf(ia, xc(:,1), xc(:,2), v);
figure;
h = patch('Faces', ia, 'Vertices', xc, 'FaceVertexCData', v, ...
'FaceColor', 'interp', 'EdgeColor', 'k');
axis equal tight;
colorbar;
colormap(jet);
title('Heat distribution');
waitfor(h) % wait for closing the figure