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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b5c12642df575739cd6e42ced81b40ed1c9617d938d2df2d23be2f669becb505
MD5 f9a6167b14cd0ad803ebbc5ec267f378
BLAKE2b-256 c2dd6b6cdc7a640b6a304afcb449da728f0ec7bb175d582d8ed9325628b04154

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphericalHarmonicDecomposition-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f563fc5c365e23dad86436b30260ca7af71e1ef120d62f936dbc5f968b2a4e44
MD5 02f26919662fc690d4443ca8fbfffe38
BLAKE2b-256 17d343facfb3861d8312686205a49423e31cb6620b082b4e71b1eb3959771008

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