The presented program was designed to simulate the passage of relativistic nuclei through a bent crystal. Namely, the input data is related to a nuclei beam. The nuclei move into the crystal under planar channeling and quasichanneling conditions. The program realizes the numerical algorithm to evaluate the trajectory of nucleus in the bent crystal. The program output is formed by the projectile motion data including the angular distribution of nuclei behind the crystal. The program could be useful to simulate the particle tracking at the accelerator facilities used the crystal collimation systems. The code has been written on C++ and designed for the multiprocessor systems (clusters). Program summaryProgram title: NSBC (Nuclei Scattering by Bent Crystal)Licensing provisions: Standard CPC license, http://cps.cs.qub.ac.uk/license/license.htmlProgramming language: C++ (g++, icc compilers)Computer: multiprocessor systems (clusters)Operating system: any OS based on LINUX; the program was tested under Novell SLES 10Has the code been vectorized or parallelized?: Yes. The code contains MPI directivesRAM: about 1 MB per processorNumber of processors: >1Supplementary material: the user manual readme.pdf, utility to generate the beam of particles Beam_Generator.exe, the pdf presentation that is commented in the Sample A.Classification: 7.10, 11.10External routines: MPI library for GNU C++, Intel C++ compilersRunning time:In general, the running time T depends on the number of both processors N and particles P hitting the crystal, as well as on the crystal thickness. It can be estimated by the ratio T[min]=3⋅10−5⋅αR[μrad]⋅P/(N−1) for the 2.66 GHz processors, where αR is the crystal bending angle. In our tests the simulations were performed for a few thousands of particles into the crystal up to several mm thickness. The number of the 2.66 GHz processors used counted up to 30. The running time of about 5 min was registered at above mentioned conditions.Nature of problem:Here we deal with planar channeling of fast particles in a bent crystal. The channeled projectile moves along bent planes being in such a way deflected at large angles from the initial direction of motion. This effect is recognized as accelerator techniques to shape the beam. Another attractive phenomenon is known as the volume reflection of quasichanneled projectiles. Volume reflected projectiles can also be deflected at essential angles. In general, channeled and reflected particles are deflected in opposite directions and the initial beam is split into two beams. Hence, there is the practical interest to model the beam tracking in a bent crystal, to obtain the characteristic angles of deflection, to estimate the number of particles, which can be effectively deflected at large angles.Solution method:Initially the beam of relativistic nuclei hitting the bent crystal is considered. The velocity of a particle is defined by two components. The component along the beam direction is relativistic, while the transverse component is nonrelativistic. The particle trajectory in a crystal is defined by the continuous potential of bent planes. Hence, to obtain the trajectory the classical equation of motion is solved numerically. The initial position of a nucleus in the channel is suggested to be random that can be obtained from the uniform distribution. To take into account the multiple scattering of projectiles on crystal both electrons and nuclei the corrections to the trajectory is introduced from time to time. Finally, at the projectile fly-out from the crystal one can obtain the transverse velocity as well as the deflection angle.Restrictions:As known the theory of the channeling effect implies the critical Lindhard angle θL. Channeling takes place when the angle θ0 between the bent planes and the velocity of a particle at the crystal entrance face undergoes the condition |θ0|<θL. The quasichanneling appears when |θ0| exceeds the value θL but remains close to this value. Thus, it is not recommended to input large values of the crystal orientation angle |θC| which defines the range of angles θ0 (see in Section 2). Nevertheless, in our simulations we found the program gives correct results in the broad range of crystal orientation angles, for example, −18θL≤θC≤4θL for 400 GeV protons. Characteristic values of critical angle θL are about 10 μrad for the energy of projectile about 100 GeV/uamu.