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
Built Distribution
File details
Details for the file sphericalHarmonicDecomposition-1.0.2.tar.gz
.
File metadata
- Download URL: sphericalHarmonicDecomposition-1.0.2.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5161e0ba7c4185796cab27c4b45a40fd60185f0ca9279e06867b70575cb9d98 |
|
MD5 | 923439f057faf693d6f170b57f5a47eb |
|
BLAKE2b-256 | e89f7a1ffa41af17623377d1a92b3e0783efdaeb903c9465b496945029985de4 |
File details
Details for the file sphericalHarmonicDecomposition-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: sphericalHarmonicDecomposition-1.0.2-py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd4af95385821d9f876c739efa3a128295e04e1c68e4c5a86f7ae4bf9c892368 |
|
MD5 | 2b817bbe6acb97a3dbdf1b08baa0af90 |
|
BLAKE2b-256 | 1b201f7a98640d7c367c2bae11fe4dca750e06daf95d9d725a7151bca6125d72 |