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.
29 lines
601 B
29 lines
601 B
2 years ago
|
clear
|
||
|
close all
|
||
|
format compact
|
||
|
set(groot,'defaulttextinterpreter','latex');
|
||
|
set(groot, 'defaultAxesTickLabelInterpreter','latex');
|
||
|
set(groot, 'defaultLegendInterpreter','latex');
|
||
|
|
||
|
custom_operators_biharmonic_data;
|
||
|
x = positions(1, :);
|
||
|
y = positions(2, :);
|
||
|
% z = positions(3, :);
|
||
|
|
||
|
analytical = 1/2*(1+sum(positions.^2))';
|
||
|
|
||
|
err = norm(solution - analytical) / norm(analytical)
|
||
|
|
||
|
scatter(x, y, 10, solution, 'filled');
|
||
|
% scatter3(x, y, z, 10, solution, 'filled');
|
||
|
daspect([1 1 1])
|
||
|
title('$u(x,y,z)$');
|
||
|
xlabel('$x$')
|
||
|
ylabel('$y$')
|
||
|
zlabel('$z$')
|
||
|
xlim([-1 1])
|
||
|
ylim([-1 1])
|
||
|
zlim([-1 1])
|
||
|
colorbar
|
||
|
colormap jet
|