L_x=1; % x-dimensions of resonant cavity in m L_y=0.5; % ditto y L_z=0.75; % ditto z N_x = 8; % Number of Yee cells in x, y and z directions. c= 1/sqrt(eps_0*mu_0); CFL = Delta_s/(sqrt(3)*c); % ...