calculating the moment of velocity
Project description
Finding the first, second, and third moments of velocity
This package can be used to calculate moments of velocity in accordance with Briquet and Aerts (2002).
Installation
Use the package manager pip to install movel.
pip install movel
Usage
import movel
# calculates all multi modes for <v>, <v^2>, <v^3>
movel.multi_mode(t, omega, psi, A, B, sigma, vrot)
# with this, we can plot <v> <v^2> <v^3>
import matplotlib.pyplot as plt
label = ["<v>", "<v^2>", "<v^3>"]
for i in range(3):
plt.plot(t, multi_mode(t, omega, psi, A, B, sigma, vrot)[i], label = label[i])
plt.legend()
plt.xlabel("times")
plt.ylabel("average")
Contributing
Pull requests are welcome.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
movel-0.1.2.tar.gz
(4.1 kB
view hashes)