Simulation of the beam dynamics is an important stage in the design and launch of a charged particle accelerator. To solve this problem, many methods and software packages have been developed.Standard approaches to modeling accelerators require the use of not only ready-made libraries but exact theory and clearly formalized mathematical models. However, now such accelerator systems are emerging, where they plan to study phenomena, the physics of which is not completely clear.Therefore, a new type of accelerator requires a different approach to beam modeling. This article describes an approach to creating a virtual accelerator that will allow simulating particle physics,taking into account the peculiarities of the latest accelerators and the problem of the lack of an accurate theory for various phenomena planned to be detected at the accelerator.