Skip to content

gitansh95/Poisson_Solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poisson Solver:

This project contains the files which solve the Maxwell's constraint equation for electric fields:

This is done in the electrostatic limit:

Hence the reduced equation we need to solve is:

Dependencies:

The solver makes use of ArrayFire and requires it to be built and installed on the system of usage in addition to the python interface(arrayfire-python. The following Python packages are also required:

  • numpy
  • pytest

Once ArrayFire is installed successfully, all other dependencies can be installed using pip install -r requirements.txt

Usage:

The function fft_poisson assumes that in the density array, x varies along axis 0, y varies along axis 1, z varies along axis 2. Additionally, we consider cell centered formulation to be used throughout. Hence the density array needs to be passed to the function following these conventions:

from fft_poisson_3d import fft_poisson
Ex, Ey, Ez = fft_poisson(rho, dx, dy, dz)

Testing:

The solver can be tested by running:

py.test test_fft_poisson_3d.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%