This commit is contained in:
Yael-II
2025-01-19 17:31:02 +01:00
parent 34371f3532
commit 6b06be4a6b
27 changed files with 337 additions and 32 deletions

View File

@@ -1,9 +1,23 @@
#!/usr/bin/env python
"""
Energies
Compute energies (kinetic or total)
@ Author: Moussouni, Yaël (MSc student) & Bhat, Junaid Ramzan (MSc student)
@ Institution: Université de Strasbourg, CNRS, Observatoire astronomique
de Strasbourg, UMR 7550, F-67000 Strasbourg, France
@ Date: 2024-12-13
"""
import numpy as np
def kinetic(W: np.ndarray) -> np.ndarray:
"""Computes the kinetic energy.
:param W: Phase-space vectors
:returns T: Kinetic energy
@param
- W: Phase-space vectors
@returns
- T: Kinetic energy
"""
U = W[1,0]
V = W[1,1]