Skip to content

A parallelized finite-difference module to solve for physics problems

Notifications You must be signed in to change notification settings

bumpwy/FDSolverPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FDSolverPy

Parallelized finite-difference module for solving physics problem.

Installation

The installation time is typically within 5 minutes on a normal local machine.

Dependencies:

  • numpy
  • mpi4py
  • matplotlib

An example for the installation process:

To install FDSolverPy, clone this repo:

git remote add origin [email protected]:bumpwy/FDSolverPy.git

and run:

pip install -e /path/to/the/repo

The -e option allows you to edit the source code without having to re-install.

To uninstall:

pip uninstall FDSolverPy

Test run

Examples can be found in the ./test directory. For instance, under ./tests/local/2d/microstruct contains examples for diffusion problem in a microstructure.

./run.py

and to plot the results do

./plot.py

and you shall obtain alt text

where $d(\bf{r})$ is the polycrystalline diffusivity, $\Delta c$'s are the perturbative concentration fields for driving force in $Q_0 = (1,0)$ and $Q_1 = (0,1)$ directions.

About

A parallelized finite-difference module to solve for physics problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published