XGCa
|
#include <string>
#include <stdexcept>
#include <vector>
#include "space_settings.hpp"
#include "xgc_io.hpp"
#include "domain_decomposition.hpp"
Go to the source code of this file.
Classes | |
struct | DiffusionCoeffData |
Functions | |
DiffusionCoeffData | ReadDiffCoeffData (const DomainDecomposition< DeviceType > &pol_decomp, const int n_species, XGC_IO_Stream &stream) |
Reads diffusion coefficients for multiple particle species from an ADIOS2 BP file. More... | |
DiffusionCoeffData ReadDiffCoeffData | ( | const DomainDecomposition< DeviceType > & | pol_decomp, |
const int | n_species, | ||
XGC_IO_Stream & | stream | ||
) |
Reads diffusion coefficients for multiple particle species from an ADIOS2 BP file.
This function reads a common 1D x variable and four types of y variables, each having an additional species dimension. The y variable names are constructed from a base name and a species name using the convention: "<base>_<species>".
The base names are:
The species names are (in order):
The y data is stored in a 3D Kokkos::View with dimensions [4, n_species, N], where N is the length of the x variable obtained from the ADIOS2 file.
ioName | Name of the ADIOS2 I/O object. |
n_species | Number of particle species (must be between 1 and 7). |
stream | XGC_IO_Stream for reading the diffusion coefficients. |