Skip to main content

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

3-Clause BSD

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 details)

Uploaded Source

File details

Details for the file movel-0.1.2.tar.gz.

File metadata

  • Download URL: movel-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.6

File hashes

Hashes for movel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 db5affe0de22d6cb1c5109cbe8d3921e42b35d0198c24d44b4221cb6fca9f0c5
MD5 14b9e71189d761c0e295347d5aeb4947
BLAKE2b-256 05107431a77e29eba69f62ec9c43dcaa2413f65b5b788425cb788309a794f5cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page