|
peclet-dem
Performance-portable XPBD Discrete Element Method (Kokkos + ArborX)
|
dem — portable (CUDA-free) I/O helpers for the Kokkos dem module: a LAMMPS dump writer and a scalar-SDF VTI writer. More...
#include <algorithm>#include <cstdio>#include <fstream>#include <iomanip>#include <limits>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | peclet |
| namespace | peclet::dem |
Functions | |
| void | peclet::dem::writeLammpsDump (const std::string &filename, int step, const std::vector< float > &pos, const std::vector< float > &vel, const std::vector< float > &quat, const std::vector< float > &radii, const float *boxMin, const float *boxMax, bool pbcEnabled) |
| void | peclet::dem::writeSdfVti (const std::string &filename, const std::vector< float > &grid, int rx, int ry, int rz, const float *minB, const float *maxB) |
dem — portable (CUDA-free) I/O helpers for the Kokkos dem module: a LAMMPS dump writer and a scalar-SDF VTI writer.
Operate on flat std::vector<float> host arrays (no CUDA vector_types), so they compile on every Kokkos backend. Faithful to the CUDA io/Exporter.cpp LAMMPS format and Simulation:: export_sdf VTI convention.
Definition in file io.hpp.