Functions
The axinite module's API reference.
All the functions listed on this page can be found in axinite.functions
. axinite.functions
also includes a G
constant.
body_dtype
body_dtype
Returns the data type for a body.
limit
(np.float64
): The length of the simulation in seconds.delta
(np.float64
): The frequency at which the simulation should be computed in seconds.
Returns:
_body
_body
Creates a new body.
limit
(np.float64
): The length of the simulation in seconds.delta
(np.float64
): The frequency at which the simulation should be computed in seconds.name
(str
): The name of the body.mass
(np.float64
): The mass of the body in kilograms.
Returns: A new inner body.
get_inner_bodies
get_inner_bodies
Returns the inner representations of a list of bodies.
bodies
(list[ax.Body]
): A list of Body objects.
Returns: An array of inner bodies.
create_outer_bodies
create_outer_bodies
Creates outer body representations from inner bodies.
bodies
(np.ndarray
): An array of inner body representations.limit
(np.float64
): The length of the simulation in seconds.delta
(np.float64
): The frequency at which the simulation should be computed in seconds.
Returns: A list of body objects.
vector_magnitude_jit
vector_magnitude_jit
Calculates the magnitude of a vector.
vec
(np.float64
): The vector to calculate the magnitude of.
Returns: The magnitude of the vector.
Last updated