123456789101112131415161718192021222324252627282930313233343536373839 |
- from charged_shells import charge_distributions, potentials
- from charged_shells.parameters import ModelParams
- import numpy as np
- import matplotlib.pyplot as plt
- def main():
- params = ModelParams(R=150, kappaR=3)
- ex1 = charge_distributions.create_mapped_quad_expansion(0.44, params.kappaR, 0.001, l_max=30)
-
- theta = np.linspace(0, np.pi, 1000)
- phi = 0.
- dist = 1
- potential_ic = potentials.inverse_patchy_particle_potential(theta, dist, 0.44, -0.002, (0.001, 0.001), params)
- potential1 = potentials.charged_shell_potential(theta, phi, dist, ex1, params)
-
-
-
- plt.plot(theta, potential_ic)
- plt.plot(theta, potential1.T)
-
- plt.show()
- if __name__ == '__main__':
- main()
|