Code Monkey home page Code Monkey logo

heat-solver's Introduction

Heat Solver

A C++ library for numerically solving the heat partial differential equation in an arbitrary number of spatial dimensions. A second-order Finite Difference method is used for the spatial discretization, and the Backward Euler method is used for time-stepping. The variable m sets the number of internal nodes per axis, which are equally spaced in n dimensions. Horizontal numbering is used, meaning e.g. the single index j = x + m y +m^2 z represents a single point in 3 dimensions. The domain here is [0, 1]^n. Initial and boundary conditions:

u(x, t) = 0 for all x at boundary u(x, 0) = \prod_{k=0}^{n-1} sin(pi x_k) for all x in domain

The numerical solution is found to converge with dx^(1.426 +- 0.213) in space and dt^(1.337 +- 0.671) in time.

heat-solver's People

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.