Coder Social home page Coder Social logo

pmontalb / pdefinitedifferencekernels Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 41 KB

CUDA kernels for solving the most popular hyperbolic and parabolic PDEs

Home Page: https://pmontalb.github.io/PdeFiniteDifferenceKernels/

License: MIT License

C++ 13.86% Cuda 85.25% CMake 0.89%
pde-solver pde-equations hyperbolic-equations parabolic-equations

pdefinitedifferencekernels's Introduction

PdeFiniteDifferenceKernels

This API is a collection of CUDA kernels used for solving Partial Differential Equations (PDE) by means of Finite Difference.

The extent of this API is to provide a library for applying the Method of Lines (MoL) to (up to) 3D hyperbolic and parabolic PDEs. Note that I wrote no support for elliptic PDEs.

The goal was to write the smallest amount of lines of code, and re-use of all my existing CUDA code, see CudaLight and CudaLightKernels. For this reason I decided to focus my attention to just linear PDE with no source term, so that everything can be solved by the application of a linear operator.

Types

  • SolverType: defines the time discretization solver type: the most popular ODE methods are there
  • SpaceDiscretizerType: defines the space discretization type: One-sided, Centered and Lax-Wendroff-Style
  • BoundaryConditionType: defines the boundary conditions: Dirichlet, Neumann and Periodic

Convenience Structures

  • BoundaryCondition1D, BoundaryCondition2D: wrapper for left/right/up/down boundary conditions
  • FiniteDifferenceInput1D, FiniteDifferenceInput2D: wrapper for all the common inputs used by CUDA kernels

Kernels structure

I kept the same conventions used in CudaLightKernels

pdefinitedifferencekernels's People

Contributors

pmontalb avatar pmontalb7 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jifeixu mfkiwl

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.