Skip to main content

No project description provided

Project description

Spherical Harmonic Decomposition

This project contains a python class SHD that provides functionalities to perform Spherical Harmonic Decompositions on trajectories.

Features:

  • Convert cartesian coordinates to spherical and vice versa.
  • Load trajectory data from different file formats.
  • Distribute trajectory points along a generated grid.
  • Compute the spherical harmonic expansion of the trajectory.
  • Compute tension and bending coefficients.
  • Plot the spectrum of the spherical harmonic expansion.

Installation

The package can be installed using pip:

pip install sphericalHarmonicDecomposition

Requirements:

This class leverages several libraries including:

  • numpy
  • matplotlib
  • icosphere
  • orthopoly
  • MDAnalysis
  • scipy

Make sure these libraries are installed to use this class effectively.

Usage:

To use the class, instantiate an object of SHD and then call the desired methods. For instance:

from sphericalHarmonicDecomposition import SHD

sph = SHD(name="SPH",
          Lmin=2,Lmax=10,
          expansionMode="abs",
          radiusMode="expansion")

sph.loadSPtraj("traj.sp")

sph.generateIcosahedralGrid(2)
sph.distributeTrajPointsAlongGrid()

sph.sphericalHarmonicExpansion()
sph.compute()

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

sphericalHarmonicDecomposition-1.0.2.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sphericalHarmonicDecomposition-1.0.2.tar.gz.

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a5161e0ba7c4185796cab27c4b45a40fd60185f0ca9279e06867b70575cb9d98
MD5 923439f057faf693d6f170b57f5a47eb
BLAKE2b-256 e89f7a1ffa41af17623377d1a92b3e0783efdaeb903c9465b496945029985de4

See more details on using hashes here.

File details

Details for the file sphericalHarmonicDecomposition-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd4af95385821d9f876c739efa3a128295e04e1c68e4c5a86f7ae4bf9c892368
MD5 2b817bbe6acb97a3dbdf1b08baa0af90
BLAKE2b-256 1b201f7a98640d7c367c2bae11fe4dca750e06daf95d9d725a7151bca6125d72

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