
% Earth volume
v_e = 4/3 * pi * 6371^3;

% smallest velocity (ie, wavelength)
vp=10; % km/s
vs=vp/sqrt(3);

% Wavelength
T=100; % Period 

% Shortest Wavelength
lam=vs*T;

% Number of points per wavelength and 
% required grid spacing
np_lambda=20;
dx=lam/np_lambda;

% Required number of grid cells
nc = v_e/(dx^3);

% Memory requirement (TBytes)
mem = nc * 8 /1000 /1000 /1000 /1000;
