the C nbodymodule module

Defines some mathematical functions usefull in Nbody simulations

pNbody.nbodymodule.acceleration()

Calculate the acceleration at a given position, with a given softening.

pNbody.nbodymodule.am()

Calculate the angular momentum of the model.

pNbody.nbodymodule.ampmap()

Return a map of amplitude of the given points.

pNbody.nbodymodule.amxyz()

Calculate the angular momentum in x,y,z for all particles.

pNbody.nbodymodule.convol()

Return a 2d convolution of a with kernel b.

pNbody.nbodymodule.epot()

Calculate the total potential energy.

pNbody.nbodymodule.pamap()

Return a map of the given points.

pNbody.nbodymodule.pdmap()

Return a ponderated map of the given points.

pNbody.nbodymodule.perspective()

Return a 3d projection of the given points.

pNbody.nbodymodule.potential()

Calculate the potential at a given position, with a given softening.

pNbody.nbodymodule.rotx()

Rotation around the x axis.

pNbody.nbodymodule.roty()

Rotation around the y axis.

pNbody.nbodymodule.rotz()

Rotation around the z axis.

pNbody.nbodymodule.samxyz()

Calculate the specific angular momentum in x,y,z for all particles.

pNbody.nbodymodule.sphmap()

Return a sphmap of the given points.

pNbody.nbodymodule.spin()

Spin the model around an axis.