[X,Y]=meshgrid(0:1.5:12);
press=getNeu([X(:),Y(:)]);
press=reshape(press,size(X));

figure
s=surf(X,Y,press);
colorbar
colormap("jet");
s.EdgeColor = 'none';
set(gca,'xtick',[])
set(gca,'ytick',[])
A=[X(:),Y(:),ones(size(X(:),1),1)*6,press(:)];
head=["x" "y" "z" "press"];
writematrix(head,'press.csv');
A(1,4)=1e-15;
writematrix(A,'press.csv','WriteMode','append');

%

function ret=getNeu(X)
lenX=size(X,1);
coef=(1-sin(vecnorm(X(:,1:2)-[9,9],2,2)./(9*sqrt(2)).*(pi/2))).^8;
ret=-ones(lenX,1)*-50.*coef;
end