COSEν: A collective oscillation simulation engine for neutrinos
We introduce the implementation details of the simulation code COSEν, which numerically solves a set of non-linear partial differential equations that govern the dynamics of neutrino collective flavor conversions. We systematically provide the details of both finite difference method supported by Kreiss-Oliger dissipation and finite volume method with seventh order weighted essentially non-oscillatory scheme. To ensure the reliability of the code, we perform comparison of the simulation results with theoretically obtainable solutions. In order to understand and characterize the error accumulation behavior of the implementations when neutrino self-interactions are switched on, we also analyze the evolution of the deviation of the conserved quantities for different values of simulation parameters. We report the performance of our code with both CPUs and GPUs. The public version of the COSEν package is available at https://github.com/COSEnu/COSEnu.