You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
597 B
24 lines
597 B
clear
|
|
close all
|
|
format compact
|
|
set(groot,'defaulttextinterpreter','latex');
|
|
set(groot, 'defaultAxesTickLabelInterpreter','latex');
|
|
set(groot, 'defaultLegendInterpreter','latex');
|
|
|
|
% h5disp('poisson_dirichlet_3D_irregular.h5')
|
|
solution = h5read('poisson_dirichlet_3D_irregular.h5','/solution');
|
|
positions = h5read('poisson_dirichlet_3D_irregular.h5','/positions');
|
|
|
|
x = positions(:, 1);
|
|
y = positions(:, 2);
|
|
z = positions(:, 3);
|
|
scatter3(x, y, z, 10, solution, 'filled');
|
|
title('$u(x,y,z)$');
|
|
xlabel('$x$')
|
|
ylabel('$y$')
|
|
zlabel('$z$')
|
|
% xlim([0 1])
|
|
% ylim([0 1])
|
|
% ylim([0 1])
|
|
colorbar
|
|
colormap jet
|