%% 计算传导电流与位移电流的比值
% \nabla \times \nabla \times \mathbf{E}+{\left(\omega^2 \varepsilon \mu -i\omega \mu \sigma \right)}\mathbf{E}=0
% \mathit{\mathbf{r}}=\;\omega^2 \varepsilon /\omega \sigma =\omega \varepsilon /\sigma
%

eps0 = 8.854187817*10^-12;

f    = logspace(4,6,2);
epsr = linspace(1,50,2);
sig  = logspace(-2,-4,2);

[SIG,EPSR,F] = meshgrid(sig,epsr,f);
EPS          = eps0.*EPSR;
omega_eps    = (2*pi).*F.*EPS;
Ratio__disp_cond           = omega_eps./SIG;

f1=figure;
% f1.Visible="on";
s1 = slice(log10(SIG),(EPSR),log10(F),log10(Ratio__disp_cond), [-3 -4 ], [(25) (50)], [4 5]);
set(s1, 'FaceAlpha', 0)


f    = logspace(4,6,100);
epsr = linspace(1,50,100);
sig  = logspace(-2,-4,100);

[SIG,EPSR,F] = meshgrid(sig,epsr,f);
EPS          = eps0.*EPSR;
omega_eps    = (2*pi).*F.*EPS;
Ratio__disp_cond           = omega_eps./SIG;
hold on
s2 = slice(log10(SIG),(EPSR),log10(F),log10(Ratio__disp_cond), [-3 -4 ], [(25) (50)], [4 5]);
set(s2,'edgecolor','none')

xlabel('log_{10}{(\sigma)} {S/m} ','FontSize',8,'FontWeight','bold','Rotation',20,'Position',[-3,-5,3.8])
ylabel('log_{10}{(\epsilon_r)} {S/m} ','FontSize',8,'FontWeight','bold','Rotation',-30,'Position',[-1.67,26.5,3.85])
zlabel('log_{10}(Frequency) Hz','FontSize',8,'FontWeight','bold')

set(gca,'XDir','reverse','FontSize',12,'FontWeight','bold',LineWidth=1.5); %
ylim([0 50])
grid on
box  on
% grid minor

colormap(jet(30));
clim([-3,2])
h=colorbar('FontSize',16);
% set(gca,'BoxStyle','full')

set(get(h,'title'),'FontSize',14,'string', ...
    '$$\mathbf{ log_{10}(\frac{\omega^2\varepsilon}{{\omega\sigma}} })$$','Interpreter','latex', ...
    'Position', [-40 240 0])


set(gca,'Fontname','Times New Roman','FontWeight','bold')

%
%