Giter Site home page Giter Site logo

simonschoelly / poisson-solver Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 209 KB

A solver for a modified poisson equation using cuda.

C++ 95.16% Makefile 0.31% Cuda 4.53%
poisson-equation cuda thomas-algorithm gpgpu cpp pgc preconditioned-conjugate-gradient finite-difference

poisson-solver's Introduction

Poisson-Solver

This repository contains a solver for the the modified Poisson-equation

-Δu(x) + αu(x) = f(x), x∈Ω, ∂Ω = 0, α >0

where the domain Ω is either square or cubic.

The solver discretizes this equation using central finite differences to get a linear system and then runs the preconditioned conjugate gradient method to solve this system. For the preconditioner we use a tridiagonal matrix that we can efficiently invert using Cuda on a Nvidia graphic card.

I developed this code for my Bachelor thesis but did not look at it since then. It still seems to compile though. Maybe someone has a use for it.

Directory structure

├── README.md
├── cublas_wrapper.h          # wrapper functions around some cublas functions
├── makefile
├── misc.h                    # some small helper functions
├── preconditioner.h          # Cuda kernels that solve solve the linear system for the preconditioner
├── solver.h                  # functions that apply the preconditioned conjugate gradient to solve the problem
└── test.cu                   # demonstrates how to use the given code and runs tests for the different implementations.

poisson-solver's People

Contributors

simonschoelly avatar

Watchers

 avatar  avatar

Forkers

makberl nessyht

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.