https://github.com/zerothi/multigrid
Simple multigrid method
https://github.com/zerothi/multigrid
Last synced: 4 months ago
JSON representation
Simple multigrid method
- Host: GitHub
- URL: https://github.com/zerothi/multigrid
- Owner: zerothi
- Created: 2015-03-24T13:26:36.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T14:39:56.000Z (over 9 years ago)
- Last Synced: 2025-04-14T17:16:50.973Z (about 1 year ago)
- Language: FORTRAN
- Size: 107 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Multigrid method for Poisson equation
This simple code solves the Poisson equation for open boundary problems
often encountered in DFT+NEGF calculations.
In particular can it solve problems with periodic, Dirichlet and Neumann
boundary conditions individually selected on each boundary.
### Method
We employ an adaptive/customizable multi grid method where every level
can be controlled arbitrarily by the user.
### Usage
Compile the MG library using
make
to compile the executable for solving input files, do
make mg
which creates the executable `src/mg` which can read input files.
In the `test` folder several examples exists of input files for
complex MG setups.
#### Precision
The precision can be controlled to arbitrary value. However, it is not
stringently following conventional multi-grid methods as we simply want
a reasonable guess for the Poisson solution.