<jupyter_start><jupyter_text>Variable Definitions<jupyter_code>nx = 300  # grid points in x direction
nz = 300  # grid points in z direction
nt = 1000  # number of time steps

dx = dz = 10.0  # grid spacing
dt = 0.001  # temporal spacing

c_0 = 3500  # background velocity (m/s)
f_0 = 150  # dominant freq. of source-time function
t_0 = 0.01  # start time of source


# assert CFL criteria is met
cfl = c_0 * (dt / dx)
cfl_limit =  1 / np.sqrt(2)
assert cfl < cfl_limit<jupyter_output><empty_output><jupyter_text>Init arrays<jupyter_code>space = np.zeros((nx, nz))
time = np.arange(0, nt * dt, step=dt)

source_time =<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10973724884080371, 'fraction_numerical': 0.05255023183925812, 'mean_word_length': 4.184, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '131929', 'license': 'Apache-2.0', 'n_tokens_mistral': 280, 'n_tokens_neox': 251, 'n_words': 73, 'path': '030_2D_finite_diff.ipynb', 'repo_name': 'd-chambers/splashy', 'size': '647'}