LPSE data for ray-based CBET test cases
收藏资源简介:
This dataset contains field data from LPSE simulations for the purpose of validating ray-based CBET models. The input parameters required to replicate these results are given in the Physics of Plasmas paper "Validation of ray-based cross-beam energy transfer models." All of the data is stored in HDF5 files. Each file has three data sets: Ez, xAxis, and yAxis (the 1-D datset does not have yAxis). Here is an example of the Matlab code to open and plot one of the 2-D files: <pre><code>filename = 'two_beam_at_caustic.h5'; hInfo = h5info(filename ); data = h5read(filename , '/Ez'); xAxis = h5read(filename , '/x_axis'); yAxis = h5read(filename , '/y_axis'); figure(1); clf; imagesc(yAxis, xAxis, data), colorbar, axis xy </code></pre> Here is an example of the Python code to open and plot one of the 2-D files: <pre><code class="language-python">import h5py import matplotlib.pyplot as plt filename = 'two_beam_at_caustic.h5' f = h5py.File(filename, 'r') Ez = list(f["Ez"]) x_axis = list(f["x_axis"]) y_axis = list(f["y_axis"]) plt.figure() plt.pcolormesh(x_axis,y_axis,Ez) plt.colorbar() plt.show() </code></pre>



