

. In addition, there is an area
in which the initial positions of the particles are generated. In accordance with the GS work plan, everything begins with the generation of a particle system
where
- The maximum number of particles in the system.
on
particle from the side
th, calculated by the formula
where
- active gravitational mass
particles
- passive gravitational mass
particles
- gravitational constant at the appropriate time,
- small constant
- Euclidean distance between particles.
random variables are added
(evenly distributed from zero to one). Then the resultant force is
.
where
- operation of component multiplication of vectors,
- random variable uniformly distributed from zero to one,
- inert mass
particles
.
and time points
i.e.
.
where
:
,
where
:
,
where
:
.
. Then the value of the masses can be recalculated by the formula:
where
.Source: https://habr.com/ru/post/194674/
All Articles