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.
26 lines
526 B
26 lines
526 B
1 year ago
|
clear
|
||
|
close all
|
||
|
format compact
|
||
|
set(groot,'defaulttextinterpreter','latex');
|
||
|
set(groot, 'defaultAxesTickLabelInterpreter','latex');
|
||
|
set(groot, 'defaultLegendInterpreter','latex');
|
||
|
|
||
|
poisson_mixed_3D_ghost_data;
|
||
|
I = types ~= 0; % ignore ghost nodes
|
||
|
x = positions(1, I);
|
||
|
y = positions(2, I);
|
||
|
z = positions(3, I);
|
||
|
|
||
|
scatter3(x, y, z, 10, solution(I), 'filled');
|
||
|
view([42.2 26.4])
|
||
|
title('$u(x, y, z)$');
|
||
|
xlabel('$x$')
|
||
|
ylabel('$y$')
|
||
|
zlabel('$z$')
|
||
|
o = 1.1;
|
||
|
xlim([-o o])
|
||
|
ylim([-o o])
|
||
|
zlim([-o o])
|
||
|
daspect([1 1 1])
|
||
|
colorbar
|
||
|
colormap jet
|