Skip to content

A Multigrid gauss-seidel code to solve Poisson type equations.

Notifications You must be signed in to change notification settings

florpi/MGPoissonSolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MGPoissonSolver

An efficient 2d Multigrid gauss-seidel code to solve Poisson type equations. Gauss-seidel iterations are computationaly expensive, however using multiple grids with different resolutions helps convergence and brings execution times to reasonable levels. One of the main advantages to solve the gravitational force equation with a multigrid method is that it can be extended to non-linear equations.

Table of contents

Requirements

git (optional)
make
g++

## Build
```shell
$ git clone https://github.com/florpi/MGPoissonSolver.git 
$ cd MGPoissonSolver
$ make

Usage

USAGE: 

   ./acceleration   [-p ] [-h] 


Where: 
	-p <int>,  --parallel_flag 
		if flagged executes parallel code, if not  executes sequential code.
 		Default: False 

	-h, --help
		Displays information 

Tests

For a point particle we obtain the following acceleration-distance relation in two dimensions: Alt text

About

A Multigrid gauss-seidel code to solve Poisson type equations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published