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.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ececd1d9c55df06f69d3fc0fe37740c6cdd26d44225b2c7a100bc655b55b42ef
MD5 56e24f699635c81e0da1a82e7a5a5153
BLAKE2b-256 76ddf5cf30c01ded702b1c8474f86948f2753fcbc8b3d9025d06c6b57dc03f75

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16d7f2ad12170eb22505e6dff41476f8b18dc12781b9aca0cc9e6125ee64eddd
MD5 609b8b4d0e649186422dab8ba5ccfc66
BLAKE2b-256 8998dbebc83d463096adb127b904041142c8f3884e9da4ab1b2e29ef90ac8198

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