multipoles | Python package for multipole expansions | Math library
kandi X-RAY | multipoles Summary
kandi X-RAY | multipoles Summary
multipoles is a Python package for multipole expansions of the solutions of the Poisson equation (e.g. electrostatic or gravitational potentials). It can handle discrete and continuous charge or mass distributions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Calculate the center of the particle distribution .
- Convert cartesian to spherical coordinates .
- Calculate the multipole coefficient .
- Calculate the multiprocessing contribution of a given mass .
- Assert that the charge distribution is well - formed .
- Check that keys are in the given dictionary .
multipoles Key Features
multipoles Examples and Code Snippets
from multipoles import MultipoleExpansion
import numpy as np
# First we set up our grid, a cube of length 10 centered at the origin:
npoints = 101
edge = 10
x, y, z = [np.linspace(-edge/2., edge/2., npoints)]*3
XYZ = np.meshgrid(x, y, z, indexing='
from multipoles import MultipoleExpansion
# Prepare the charge distribution dict for the MultipoleExpansion object:
charge_dist = {
'discrete': True, # point charges are discrete charge distributions
'charges': [
{'q': 1, 'xyz':
Community Discussions
Trending Discussions on multipoles
QUESTION
I am working on the plot of a (logscale,symlog) data. I have difficulties to make appear on x axis (logscale) the minor ticks with a visible height and width.
In x axis, I have values starting from 1e-8 to 1. At the beginning, because of a reason that I don't know, I had only a "2 power 10th" interval, i.e I was getting on the plot of x_axis the values of majors like this :
...ANSWER
Answered 2020-Jun-01 at 17:26You could generate the minor ticks like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install multipoles
You can use multipoles like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page